/* ===== EIAIX - Global Styles ===== */
:root {
    --primary: #1b6ec2;
    --primary-dark: #145a9e;
    --primary-light: #e8f1fb;
    --accent: #00c896;
    --accent-dark: #00a67a;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --bg-dark: #0f1b2d;
    --bg-dark-card: #162338;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --gradient: linear-gradient(135deg, #1b6ec2 0%, #00c896 100%);
    --gradient-dark: linear-gradient(135deg, #0f1b2d 0%, #1a3a5c 100%);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(27,110,194,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,110,194,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,200,150,0.3);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-alt);
    border-radius: 50px;
    padding: 4px;
    margin-left: 8px;
}

.nav-lang button {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-muted);
}

.nav-lang button.active {
    background: var(--primary);
    color: #fff;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(170deg, #f0f7ff 0%, #ffffff 40%, #f0fff8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(27,110,194,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--text);
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hero Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    width: 280px;
    height: 570px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
    transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-app-header {
    background: var(--gradient);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: -8px;
    padding-top: 16px;
}

.phone-app-content {
    padding: 12px;
    flex: 1;
    font-size: 0.7rem;
}

.phone-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
}

.phone-table th {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 4px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.phone-table td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.phone-table .price-low {
    color: var(--accent);
    font-weight: 700;
}

.phone-table .price-high {
    color: #e74c3c;
}

.phone-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
}

.phone-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.55rem;
    color: var(--text-muted);
    gap: 2px;
}

.phone-nav-item.active {
    color: var(--primary);
}

.phone-nav-item span:first-child {
    font-size: 1rem;
}

/* Floating elements around phone */
.floating-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-card.card-1 {
    top: 15%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    left: -5%;
    animation-delay: 1s;
}

.floating-card .card-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.floating-card .card-value {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
}

.floating-card .card-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--primary-light);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: var(--border);
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(27,110,194,0.25);
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Pricing ===== */
.pricing {
    padding: 100px 0;
    background: var(--bg);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 2px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--primary-light) 0%, #fff 30%);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 16px 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    margin: 24px 0 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✕';
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
}

/* ===== CTA / Download ===== */
.cta {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,200,150,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 12px 24px;
    color: #fff;
    transition: all var(--transition);
    cursor: pointer;
}

.store-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.store-badge-icon {
    font-size: 2rem;
}

.store-badge-text {
    text-align: left;
}

.store-badge-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-badge-store {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ===== Legal Pages (Privacy/Terms) ===== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    margin-bottom: 8px;
}

.legal-page .legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-page p,
.legal-page li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-page ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page ul li {
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.3rem;
    font-weight: 600;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 20px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .phone-mockup {
        transform: none;
        width: 240px;
        height: 490px;
    }

    .floating-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
