/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Color Scheme */
    --primary-color: #1a365d;          /* Dark Navy */
    --primary-light: #2b77e6;          /* Professional Blue */
    --secondary-color: #4a5568;        /* Professional Gray */
    --accent-color: #3182ce;           /* Modern Blue */
    --accent-light: #63b3ed;           /* Light Blue */
    --text-primary: #1a202c;           /* Dark Gray */
    --text-secondary: #4a5568;         /* Medium Gray */
    --text-light: #718096;             /* Light Gray */
    --bg-primary: #ffffff;             /* Pure White */
    --bg-secondary: #f7fafc;           /* Light Gray BG */
    --bg-dark: #1a202c;                /* Dark BG */
    --border-color: #e2e8f0;           /* Light Border */
    --border-dark: #cbd5e0;            /* Dark Border */

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html, body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* iOS Safari specific fixes */
* {
    -webkit-overflow-scrolling: touch;
}

html {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    position: relative;
}

/* Prevent horizontal scrolling on all elements */
* {
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

/* Header */
.main-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    height: 60px;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .main-header {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
    }

    .navbar {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-brand {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex !important;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;
    }
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
    object-fit: contain;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 1px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
}

.lang-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.lang-current {
    font-size: 14px;
    font-weight: 600;
}

.lang-arrow {
    font-size: 10px;
    transition: var(--transition-fast);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    min-width: 60px;
    max-width: 200px;
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block !important;
    padding: 12px 16px;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: var(--transition-fast);
    text-align: center;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: var(--primary-color);
    color: white !important;
}

.lang-dropdown a:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lang-dropdown a:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.lang-dropdown a:only-child {
    border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-logo {
    text-align: center;
    margin-bottom: 24px;
}

.hero-logo-image {
    width: 600px;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 16px;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ai-note {
    font-size: 18px;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
    max-width: 160px;
    flex: 1;
    transition: var(--transition-normal);
}

.stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Apps Section */
.apps-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.apps-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    opacity: 0;
    transition: var(--transition-normal);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-dark);
}

.app-card:hover::before {
    opacity: 1;
}

.app-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.app-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.app-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 13px;
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 24px;
}

.features-list li {
    padding: 4px 0;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.3;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* About Section */
.about-section {
    padding: 120px 0;
    text-align: center;
    background: var(--bg-primary);
}

.about-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
}

.ai-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    background-color: rgba(49, 130, 206, 0.05);
    border: 1px solid rgba(49, 130, 206, 0.1);
}

.tech-stack {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Tech stack wraps on smaller screens */
@media (max-width: 768px) {
    .tech-stack {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.tech-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.tech-badge-small {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: inline-block;
    margin: 0.125rem;
    white-space: nowrap;
}

/* Tech badges in dark footer */
.main-footer .tech-badge-small {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-decline:hover {
    background: var(--bg-dark);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.footer-section h4 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section p {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: var(--transition-normal);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 48px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-ai-note {
        font-size: 16px;
        padding: 12px 20px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat {
        min-width: 120px;
        padding: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .main-header {
        height: 52px;
    }

    .navbar {
        padding: 12px 0;
        height: 52px;
    }

    .brand-logo {
        height: 32px;
    }

    .brand-text {
        font-size: 24px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 24px 0;
        gap: 16px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu {
        text-align: right;
    }

    .nav-link {
        text-align: right;
        display: block;
        padding: 12px 24px;
    }


    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 8px;
    }

    .lang-dropdown a {
        padding: 8px 16px;
        text-align: center;
    }

    .apps-section {
        padding: 80px 0;
    }

    .apps-section h2 {
        font-size: 36px;
        margin-bottom: 48px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .app-card {
        padding: 24px 20px;
    }

    .app-card h3 {
        font-size: 16px;
    }

    .app-card p {
        font-size: 12px;
    }

    .features-list li {
        font-size: 11px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .about-section {
        padding: 80px 0;
    }

    .about-section h2 {
        font-size: 36px;
        margin-bottom: 32px;
    }

    .about-section p {
        font-size: 18px;
    }

    .ai-highlight {
        font-size: 16px;
        padding: 12px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        align-items: start;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        justify-content: center;
    }

    .tech-stack {
        justify-content: center;
    }

    .footer-section h4 {
        margin-bottom: 16px;
    }

    .footer-section p {
        text-align: center;
    }
}


@media (max-width: 480px) {
    .main-header {
        height: 44px;
    }

    .navbar {
        padding: 10px 0;
        height: 44px;
    }

    .brand-logo {
        height: 28px;
    }

    .hero-logo-image {
        width: 450px;
        height: 225px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-logo-image {
        width: 250px;
        height: 125px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat {
        min-width: 100px;
        padding: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .apps-section h2 {
        font-size: 28px;
    }

    .about-section h2 {
        font-size: 28px;
    }
}

/* App Detail Pages */
.app-detail-header {
    padding: 160px 0 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.app-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.app-detail-intro {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-icon-large {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-xl);
}

.app-info h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
}

.app-subtitle {
    font-size: 24px;
    opacity: 0.95;
    margin-bottom: 24px;
    font-weight: 400;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.features-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    padding: 48px 32px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-dark);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

/* Screenshots Section */
.screenshots-section {
    padding: 120px 0;
}

.screenshots-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot {
    text-align: center;
    transition: var(--transition-normal);
}

.screenshot:hover {
    transform: translateY(-4px);
}

.screenshot img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
    transition: var(--transition-normal);
}

.screenshot:hover img {
    box-shadow: var(--shadow-xl);
}

.screenshot p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
}

/* Tech Section */
.tech-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.tech-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-column h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.tech-column ul {
    list-style: none;
    padding: 0;
}

.tech-column li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tech-column li:last-child {
    border-bottom: none;
}

.tech-column strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
}

/* Exchanges Section */
.exchanges-section {
    padding: 120px 0;
}

.exchanges-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.exchanges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.exchange-item {
    background: var(--primary-color);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-light);
}

.exchange-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Download Section */
.download-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.download-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.download-section p {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.btn-large span {
    margin-right: 12px;
    font-size: 20px;
}

.download-note {
    margin-top: 24px;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.ai-app-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

/* Legal Pages */
.legal-section {
    padding: 120px 0 80px;
    background: var(--bg-secondary);
}

.legal-section h1 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.legal-block:last-child {
    border-bottom: none;
}

.legal-block h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.legal-block h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    margin-top: 32px;
}

.legal-block h3:first-child {
    margin-top: 0;
}

.legal-block p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 16px;
}

.legal-block ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-block li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages Mobile Optimization */
@media (max-width: 768px) {
    .legal-section {
        padding: 80px 0 60px;
    }

    .legal-section h1 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .legal-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .legal-block {
        margin-bottom: 32px;
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }

    .legal-block h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .legal-block h3 {
        font-size: 18px;
        margin-bottom: 12px;
        margin-top: 24px;
    }

    .legal-block p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .legal-block ul {
        margin-left: 16px;
    }

    .legal-block li {
        font-size: 15px;
        margin-bottom: 6px;
    }
}

/* Additional Footer Responsive Rules */
@media (max-width: 480px) {
    .footer-content {
        gap: 20px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        justify-content: center;
    }

    .tech-stack {
        justify-content: center;
        gap: 0.5rem;
    }

    .tech-badge-small {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }

    .footer-section p {
        text-align: center;
        font-size: 14px;
    }

    /* Legal pages extra small screens */
    .legal-section h1 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .legal-block {
        padding: 20px 12px;
        margin-bottom: 24px;
    }

    .legal-block h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .legal-block h3 {
        font-size: 16px;
        margin-bottom: 8px;
        margin-top: 20px;
    }

    .legal-block p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .legal-block li {
        font-size: 14px;
        margin-bottom: 4px;
    }
}

.app-card, .feature-card, .screenshot, .exchange-item {
    animation: fadeInUp 0.6s ease-out;
}

.app-card:nth-child(1), .feature-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2), .feature-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3), .feature-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4), .feature-card:nth-child(4) { animation-delay: 0.4s; }
.screenshot:nth-child(1) { animation-delay: 0.1s; }
.screenshot:nth-child(2) { animation-delay: 0.2s; }
.screenshot:nth-child(3) { animation-delay: 0.3s; }
