:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #0d1117;
    --accent: #2A85FF;
    --accent-hover: #4096FF;
    --accent-glow: rgba(42, 133, 255, 0.3);
    --cyan: #00D4AA;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --border: #1a2332;
    --gradient: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

/* Header & Nav */
.header {
    height: 80px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 10001;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--cyan);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.btn-header {
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-header:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    transition: all 0.2s ease;
}

.mobile-toggle:active {
    transform: scale(0.9);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(42, 133, 255, 0.15) 0%, transparent 60%);
}

.trial-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 24px;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: inset 0 0 10px rgba(0, 212, 170, 0.05);
}

.hero-title {
    font-size: 84px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 24px;
    max-width: 900px;
}

.gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(42, 133, 255, 0.2));
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-large {
    padding: 18px 36px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.btn-large.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-large.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(42, 133, 255, 0.4);
}

.btn-large.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid var(--border);
}

.btn-large.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* Sections Global */
.section-container {
    padding: 100px 5%;
    max-width: 100vw;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

/* Layout fixing overflow */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    /* Ensure text never stretches card */
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* Flow Infographic - Isolate for mobile */
.flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 80px;
    padding: 60px;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 32px;
    border: 1px solid var(--border);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.flow-step {
    flex: 1;
    text-align: center;
}

.flow-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.flow-arrow {
    font-size: 24px;
    color: var(--accent);
}

/* Dynamic Pricing fixes */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 48px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(42, 133, 255, 0.15);
    background: linear-gradient(180deg, rgba(42, 133, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.plan-price {
    font-size: 56px;
    font-weight: 800;
    margin: 20px 0 40px;
    letter-spacing: -2px;
}

.btn-pricing {
    background: #fff;
    color: #000;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-pricing:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.02);
}

/* Footer Section */
.footer {
    padding: 100px 5% 40px;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 48px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* PREMIUM MOBILE UI (NEON GLASS OVERHAUL)                                    */
/* -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }

    /* NEON GLASS OVERLAY */
    .header-nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(30px) saturate(150%);
        -webkit-backdrop-filter: blur(30px) saturate(150%);
        padding: 60px 40px;
        gap: 0;
        z-index: 10000;
        animation: menuFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
            backdrop-filter: blur(0px);
        }

        to {
            opacity: 1;
            backdrop-filter: blur(30px);
        }
    }

    .header-nav.active .nav-link {
        font-size: 32px;
        font-weight: 900;
        color: rgba(255, 255, 255, 0.6);
        padding: 15px 0;
        width: 100%;
        text-align: center;
        letter-spacing: -1px;
        transition: all 0.3s ease;
        animation: linkSlideUp 0.5s cubic-bezier(0.19, 1, 0.4, 1) both;
    }

    .header-nav.active .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .header-nav.active .nav-link:nth-child(2) {
        animation-delay: 0.15s;
    }

    .header-nav.active .nav-link:nth-child(3) {
        animation-delay: 0.2s;
    }

    .header-nav.active .nav-link:nth-child(4) {
        animation-delay: 0.25s;
    }

    @keyframes linkSlideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .header-nav.active .nav-link:hover {
        color: #fff;
        text-shadow: 0 0 20px var(--accent);
        transform: scale(1.05);
    }

    .header-nav.active .btn-header {
        margin-top: 40px;
        width: 100%;
        padding: 24px;
        text-align: center;
        font-size: 20px;
        font-weight: 800;
        box-shadow: 0 10px 40px rgba(42, 133, 255, 0.3);
        border-radius: 20px;
        animation: linkSlideUp 0.6s cubic-bezier(0.19, 1, 0.4, 1) both;
        animation-delay: 0.3s;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Elegant Hamburger -> X */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--cyan);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--cyan);
    }

    /* Scaling fix for overflow */
    .hero-title {
        font-size: 56px;
        line-height: 1.0;
    }

    .section-title {
        font-size: 36px;
    }

    /* Fix infographic for mobile */
    .flow-container {
        flex-direction: column;
        gap: 0;
        padding: 40px 20px;
        background: rgba(255, 255, 255, 0.02);
        width: 100% !important;
        max-width: 100% !important;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
        opacity: 0.5;
    }

    .flow-step {
        width: 100%;
        max-width: 100% !important;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .header {
        height: 74px;
    }

    .hero {
        padding: 110px 5% 50px;
    }

    .hero-title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-large {
        width: 100%;
        padding: 18px 20px;
        font-size: 15px;
    }

    .section-container {
        padding: 80px 5%;
    }

    .section-title {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .feature-card {
        padding: 30px 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .plan-price {
        font-size: 44px;
    }

    /* Force overflow isolation */
    .features-grid,
    .pricing-grid,
    .section-container,
    .feature-card,
    .pricing-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .section-container {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .feature-card,
    .pricing-card {
        padding: 30px 20px !important;
        margin-bottom: 20px;
    }
}

/* Ensure Safari smooth scrolling */
* {
    -webkit-overflow-scrolling: touch;
}