/* --- PREMIUM CSS DESIGN SYSTEM & RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root[data-theme="light"] {
    --bg-main: #F2F2F7;
    --bg-secondary: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.75);
    --primary: #4F7CFF;
    --accent: #F59E0B;
    --text-main: #1C1C1E;
    --text-muted: #636366;
    --border-color: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 12px 34px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    --glow: rgba(79, 124, 255, 0.15);
    --radial-glow-1: rgba(79, 124, 255, 0.14);
    --radial-glow-2: rgba(245, 158, 11, 0.09);
}

:root[data-theme="dark"] {
    --bg-main: #0B0D12;
    --bg-secondary: #141821;
    --bg-header: rgba(20, 24, 33, 0.75);
    --primary: #6B93FF;
    --accent: #F4AC0B;
    --text-main: #F2F2F7;
    --text-muted: #8E8E93;
    --border-color: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
    --glow: rgba(107, 147, 255, 0.2);
    --radial-glow-1: rgba(107, 147, 255, 0.18);
    --radial-glow-2: rgba(244, 172, 11, 0.12);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    /* Set Urbanist as your primary text font */
    font-family: 'Outfit', sans-serif; 
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    transition: background-color 0.4s ease, color 0.3s ease;
}

/* Use Outfit for a modern, bold heading aesthetic */
h1, h2, h3, .logo, .btn-primary, .pricing-badge {
    font-family: 'Urbanist', sans-serif;
}

/* --- ALTERNATING BACKDROP SOFT LIGHT BLURS --- */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}
.hero-glow {
    top: 2%;
    left: 15%;
    margin-left: -325px; /* Safely centers the 650px width */
    width: 100%;
    max-width: 650px;
    height: 650px;
    /* Uses your primary brand color */
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 45%);
}

.features-glow {
    top: 26%;
    right: 0; 
    width: 100%;
    max-width: 600px;
    height: 600px;
    /* Uses your secondary/accent brand color */
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 50%);
}

.insights-glow {
    top: 40%;
    left: 0; 
    width: 100%;
    max-width: 650px;
    height: 650px;
    /* Reverts back to primary for alternating visual rhythm */
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 40%);
}

.showcase-glow {
    top: 58%;
    right: 0; 
    width: 100%;
    max-width: 600px;
    height: 600px;
    /* Uses your secondary/accent brand color */
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 40%);
}

.cta-glow {
    top: 80%;
    right: 0; 
    width: 100%;
    max-width: 600px;
    height: 600px;
    /* Uses your secondary/accent brand color */
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 40%);
}

.cta-glow2 {
    top: 80%;
    left: 0; 
    width: 100%;
    max-width: 600px;
    height: 600px;
    /* Uses your secondary/accent brand color */
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 40%);
}

.pricing-glow1 {
    top: 2%;
    left: 15%;
    margin-left: -325px; /* Safely centers the 650px width */
    width: 100%;
    max-width: 650px;
    height: 650px;
    /* Uses your primary brand color */
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 45%);
}

.pricing-glow2 {
    top: 36%;
    right: 0%;
    margin-left: -325px; /* Safely centers the 650px width */
    width: 100%;
    max-width: 650px;
    height: 650px;
    /* Uses your primary brand color */
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 45%);
}

/* --- HARDWARE ACCELERATED APPREVEAL ENGINE --- */
.reveal-el {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.reveal-el.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- REUSABLE STRUCTURAL SYSTEM --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.card-lg {
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.card-lg:hover {
    transform: translateY(-4px) scale(1.01);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--glow);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 6px 20px var(--glow);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover {
    transform: rotate(15deg);
}

/* --- STICKY NAVIGATION HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;

    img {
        width: 100%;
        height: 100%;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--text-main);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mobile-menu-toggle {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
    padding: 170px 0 80px 0;
    text-align: center;
}
.badge-premium {
    background: rgba(79, 124, 255, 0.08);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 124, 255, 0.15);
}
.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    max-width: 850px;
    margin: 0 auto 24px auto;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px auto;
}
.hero-mockup-wrapper img {
    width: 70%;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

/* --- ASYMMETRIC FEATURES SHOWCASE MODULE --- */
.showcase-module {
    padding: 90px 0;
}
.showcase-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.showcase-header-block h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0;
    letter-spacing: -1px;
}
.showcase-subtext-para {
    color: var(--text-muted);
    font-size: 1.05rem;
}
.collage-wrapper-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin-top: 24px;
}
.collage-element {
    position: absolute;
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
}
.main-photo-card {
    width: 65%;
    height: 320px;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.main-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.secondary-photo-card {
    width: 48%;
    height: 210px;
    top: 12%;
    right: 0;
    z-index: 3;
    padding: 12px;
    border: 1px solid var(--border-color);
}
.secondary-photo-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    padding: 16px;
}
.decorative-matrix-dots {
    position: absolute;
    top: 38%;
    left: 56%;
    width: 60px;
    height: 60px;
    z-index: 1;
    background-image: radial-gradient(var(--accent) 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.5;
}
.active-app-overlay-card {
    width: 52%;
    bottom: 6%;
    left: 32%;
    z-index: 4;
    box-shadow: none;
}
.active-app-overlay-card img, .interaction-message-bubble img {
    display: block;
    width: 100%;
    height: 100%;
}
.interaction-message-bubble {
    width: 48%;
    bottom: 0;
    left: -20px;
    z-index: 5;
    /* box-shadow: none; */
    background: transparent;
}
.showcase-features-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.showcase-row-module {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
}
.row-icon-envelope {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.row-body-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.row-body-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- APPLE INTELLIGENCE MODULE --- */
.insights-showcase {
    padding: 90px 0;
}
.insights-split-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: center;
}
.insights-top-header h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}
.insights-card-frame-wrapper {
    width: 100%;
    max-width: 180px;
    margin-bottom: 40px;
}
.single-showcase-photo-card {
    background: transparent;
    border: none;
    box-shadow: none;
}
.single-showcase-photo-card img {
    width: 100%;
    height: auto;
}
.insights-footer-narrative h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.dual-mockup-wrapper-box {
    display: flex;
    flex-direction: row;
    justify-content: right;
}

.dual-mockup-wrapper-box img {
    width: 86%;
    max-width: 86%;
    height: auto;
}

/* --- DETAILS SECTION WITH MOBILE CAROUSEL --- */
.gallery-showcase {
    padding: 90px 0;
}
.gallery-header-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: flex-end;
    margin-bottom: 56px;
}
.gallery-header-left h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}
.gallery-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.gallery-visual-canvas-grid {
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}
.gallery-device-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-device-card:hover {
    transform: scale(1.03);
}
.gallery-device-card img {
    width: 100%;
    height: auto;
    display: block;
}
.carousel-indicators {
    display: none;
}

/* --- CTA ACTION BANNER --- */
.cta-banner {
    margin: 80px auto;
    background: linear-gradient(135deg, #141821, #0B0D12);
    border-radius: 28px;
    padding: 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
}
.cta-banner .cta-mockup {
    position: absolute;
    width: 30%;
    right: 48px;
    top: 32px;
}

.app-store-badge {
    display: block;
    position: relative;
    z-index: 10;
}

.app-store-badge img {
    display: block;
    width: auto;
    height: 60px; /* adjust to your badge size */
}
.cta-content { max-width: 550px; }
.cta-content h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; color: #FFFFFF; }
.cta-content p { color: #8E8E93; margin-bottom: 32px; font-size: 1.1rem; }

/* --- ARCHITECTURE FOOTER --- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 { font-size: 0.85rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--text-main); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   GLOBAL SECTION SPACING VARIABLES
   ========================================================================== */
:root {
    --section-padding-desktop: 120px;
    --section-padding-tablet: 48px;
    --section-padding-mobile: 48px;
}

section {
    padding: var(--section-padding-desktop) 0;
    width: 100%;
}

/* ==========================================================================
   ADAPTIVE DESIGN & MEDIA BREAKPOINTS
   ========================================================================== */

/* --- TABLET ADAPTIVE REALIGNMENT (max-width: 1024px) --- */
@media (max-width: 1024px) {
    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Prevent global side-scrolling */
    }

    /* .container { 
        padding: 0 24px !important; 
    } */

    section {
        padding: var(--section-padding-tablet) 24px !important;
    }

    .showcase-split-grid, 
    .insights-split-grid, 
    .gallery-header-split { 
        grid-template-columns: 1fr; 
        gap: 48px; 
    }

    .showcase-header-block, 
    .insights-content-canvas,
    .gallery-header-right { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center; 
    }

    .gallery-header-right {
        align-items: center;
    }

    .insights-card-frame-wrapper { 
        margin: 0 auto 32px auto; 
    }

    /* Resolves Grid Layout Overflows on Tablet */
    .gallery-visual-canvas-grid { 
        grid-template-columns: repeat(3, 1fr); 
        padding: 32px; 
    }

    .cta-banner { 
        flex-direction: column; 
        text-align: center; 
        padding: 48px 32px; 
        gap: 40px; 
    }

    .cta-banner .cta-mockup { 
        position: relative; 
        width: 55%; 
        right: auto; 
        top: auto; 
    }

    .footer-grid { 
        grid-template-columns: 2fr repeat(3, 1fr); 
    }

    .tablet-center {
        text-align: center;
    }

    .mobileCTA {
        margin-top: -68px;
        margin-bottom: -48px;
    }

    .dual-mockup-wrapper-box {
        justify-content: center;
    }

    .dual-mockup-wrapper-box img {
        width: 60%;
    }
}

/* --- SMARTPHONE RESPONSIVENESS OVERHAUL (max-width: 768px) --- */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        padding-top: 48px;
        overflow-x: hidden; /* Prevent global side-scrolling */
    }

    .container { 
        padding: 0 16px; /* Strict Phone Horizontal Spacing */
        width: 100%;
        box-sizing: border-box;
    }

    section {
        padding: var(--section-padding-mobile) 16px !important;
    }

    header {
        width: 100%;
        box-sizing: border-box;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 80px;
    }

    /* Keep waitlist button visible, hide only the desktop moon button */
    .nav-actions {
        display: flex !important;
        align-items: center;
        gap: 12px;
        order: 2;
        margin-left: auto;
        margin-right: 8px;
    }

    .theme-toggle {
        margin-right: -8px;
    }

    /* .nav-actions .theme-toggle {
        display: none !important; Hide old toggle location
    } */

    .nav-actions .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Burger Menu placement to the right of Join Waitlist */
    .mobile-menu-toggle {
        display: flex !important;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1.35rem;
        cursor: pointer;
        padding: 8px 4px;
        order: 3;
    }

    .logo {
        order: 1;
    }

    /* Absolute mobile dropdown box container panel */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%; /* Fixes the horizontal 100vw stretch breakage */
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 32px 16px;
        gap: 24px;
        box-sizing: border-box;
        
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        z-index: 999;
        box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    }

    .nav-links.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Dark Mode Wrapper Container Inside Hamburger Stack */
    .nav-links .mobile-theme-wrapper {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        margin-top: 8px;
    }

    .nav-links .mobile-theme-wrapper .theme-toggle {
        display: flex !important; /* Ensure it overrides display rules */
        width: 48px;
        height: 48px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero { 
        padding: 120px 0 40px 0; 
    }

    .hero h1 { 
        font-size: 2.1rem; 
        letter-spacing: -0.5px; 
    }

    .hero p { 
        font-size: 1rem; 
    }

    .hero-mockup-wrapper img { 
        width: 100%; 
    }

    .collage-wrapper-box { 
        max-width: 100%; 
        height: 280px; 
    }

    .main-photo-card { 
        width: 85%; 
        height: 240px; 
    }

    .secondary-photo-card, 
    .decorative-matrix-dots, 
    .interaction-message-bubble { 
        display: none !important; 
    }

    .dual-mockup-wrapper-box img {
        width: 100%;
    }

    .active-app-overlay-card { 
        width: 55%; 
        bottom: 0; 
        left: 40%; 
    }

    /* ==========================================================================
       CAROUSEL SNAP SYSTEM 
       ========================================================================== */
    .stories-carousel-wrapper { 
        position: relative; 
        width: 100%; 
        overflow: hidden; 
        padding: 10px 0;
        box-sizing: border-box;
    }

    .gallery-visual-canvas-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding: 16px !important;
        gap: 16px !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--card-shadow) !important;
        scrollbar-width: none;
        width: 100% !important;
        border-radius: 24px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-visual-canvas-grid::-webkit-scrollbar { 
        display: none; 
    }

    .gallery-device-card {
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center !important;
        flex-shrink: 0 !important;
        display: block !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .gallery-device-card img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .carousel-indicators {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
        width: 100%;
    }

    .carousel-indicators .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text-muted);
        opacity: 0.3;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .carousel-indicators .dot.active {
        background: var(--primary);
        opacity: 1;
        width: 20px;
        border-radius: 4px;
    }

    .cta-banner h2 { 
        font-size: 1.8rem; 
    }

    .cta-banner .cta-mockup { 
        width: 80%; 
    }

    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 32px; 
    }

    .footer-bottom { 
        flex-direction: column; 
        gap: 12px; 
        text-align: center; 
    }
}

/* ==========================================================================
   PRICING LAYOUT SYSTEM & COMPONENTS
   ========================================================================== */
.pricing-wrapper {
    padding-top: 140px; /* Accounts for fixed layout navigation clear space */
    padding-bottom: var(--section-padding-desktop);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-top: 8px;
}

/* Base structural grid layout for desktop viewports */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 40px;
    width: 100%;
}

.pricing-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

/* Interior layout wrapper to prevent vertical flexing bugs */
.card-content-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Highlighting systems for premium layout tiers */
.pricing-card.popular {
    border: 2px solid var(--accent);
    transform: translateY(-8px);
}
.pricing-card.popular:hover {
    transform: translateY(-12px) scale(1.01);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000000;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Micro-Typography Element Grouping Styles */
.price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.price-box .amt {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.price-box .period {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.price-discount-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -4px;
}

.price-discount-row s {
    color: var(--text-muted);
    font-size: 1rem;
}

.discount-pill {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.lock-in-note {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: -4px;
}

/* Feature Item Checklist Trees */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.feature-list li {
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.feature-list li i {
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Custom design variations for outline action paths */
.secondary-outline-btn:hover {
    background: var(--border-color) !important;
}

/* ==========================================================================
   PRICING RESPONSIVE ADAPTATIONS (ADD INSIDE EXISTING MEDIA QUERIES)
   ========================================================================== */

/* Tablet Rules: Append these properties inside your existing @media (max-width: 1024px) block */
@media (max-width: 1024px) {
    .pricing-wrapper {
        padding-top: 120px;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr); /* Collapses 4 columns cleanly to a 2x2 grid */
        gap: 24px;
    }
    .pricing-card.popular {
        transform: translateY(0); /* Clear desktop vertical displacement bug */
    }
    .pricing-card.popular:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Phone Rules: Append these properties inside your existing @media (max-width: 768px) block */
@media (max-width: 768px) {
    .pricing-wrapper {
        padding-top: 24px;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .pricing-grid {
        grid-template-columns: 1fr; /* Stacks layout cards smoothly to avoid breaking viewport bounds */
        gap: 20px;
    }
}

/* ==========================================================================
   WAITLIST INTERFACE DESIGNS
   ========================================================================== */
.waitlist-wrapper {
    padding-top: 160px;
    padding-bottom: var(--section-padding-desktop);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.waitlist-intro h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.waitlist-intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Form Container Controls */
.form-card {
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Action Submission Mechanics */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn-submit:active {
    transform: translateY(0);
}

/* ==========================================================================
   WAITLIST RESPONSIVE OVERRIDES (PLACE INSIDE EXISTING MEDIA QUERIES)
   ========================================================================== */

/* Tablet Configuration: Merge into your @media (max-width: 1024px) breakpoint block */
@media (max-width: 1024px) {
    .waitlist-wrapper {
        padding-top: 130px;
        grid-template-columns: 1fr; /* Stacks column grids completely safely */
        gap: 48px;
        text-align: center;
    }
    .waitlist-intro h1 {
        font-size: 2.8rem;
    }
    .form-group label {
        align-self: flex-start;
    }
    .card-tablet {
        align-self: center;
        justify-self: center;
        width: 60%;
    }
}

/* Phone Configuration: Merge into your @media (max-width: 768px) breakpoint block */
@media (max-width: 768px) {
    .waitlist-wrapper {
        padding-top: 16px;
        padding-bottom: var(--section-padding-mobile);
        gap: 32px;
    }
    .waitlist-intro h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .waitlist-intro p {
        font-size: 1rem;
    }
    .form-card {
        padding: 24px 16px;
        width: 100%;
    }
}

/* ==========================================================================
   PRIVACY POLICY RESPONSIVE OVERRIDES (PLACE INSIDE EXISTING MEDIA QUERIES)
   ========================================================================== */

.privacy-top-space {
    margin-top: 48px !important;
}

@media (max-width: 1024px) {
    .privacy-top-space {
        margin-top: 48px !important;
    }
}

@media (max-width: 768px) {
    .privacy-top-space {
        margin-top: -32px !important;
    }
}

/* ==========================================================================
   TERMS & SERVICES RESPONSIVE OVERRIDES (PLACE INSIDE EXISTING MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 768px) {
    .legal-wrapper {
        margin-top: -32px !important;
    }
}

/* ==========================================================================
   SUBTLE VECTOR GRID ACCENT BACKGROUND
   ========================================================================== */
/* 1. Remove the background-image/size from your current body block */
body {
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-main);
}

/* 2. Create the grid as a fixed, non-interactive overlay layer */
body::before {
    content: "";
    position: fixed; /* Ensures it stays behind everything while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keeps it behind all your content */
    pointer-events: none; /* Allows clicks to pass through to buttons/links */
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* --- THEME VARIATION MAPPINGS FOR THE GRID STROKES --- */
:root[data-theme="light"] {
    /* Super clean, faint gray grid line for light mode */
    --grid-color: rgba(0, 0, 0, 0.025); 
}

:root[data-theme="dark"] {
    /* Gentle, low-contrast slate-white stroke line for dark mode */
    --grid-color: rgba(255, 255, 255, 0.015); 
}

/* ==========================================================================
   MOUSE CURSOR
   ========================================================================== */

/* Hide the default system mouse pointer globally on desktop screens */
@media (min-width: 1025px) {
    html, body {
        cursor: none;
    }
    
    a, button, .theme-toggle, .mobile-menu-toggle {
        cursor: none !important;
    }

    /* Core Cursor Core Dot */
    .custom-cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--primary);
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        will-change: transform;
    }

    /* Outer Trailing Canvas Ring */
    .custom-cursor-ring {
        width: 36px;
        height: 36px;
        border: 1.5px solid var(--primary);
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        /* Gives it a delayed, ultra-smooth spring motion transition */
        transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s, height 0.3s, background-color 0.3s;
        will-change: transform;
    }

    /* High-contrast scaling state triggered when hovering over active choice links */
    .custom-cursor-ring.hover-active {
        width: 50px;
        height: 50px;
        background-color: rgba(99, 102, 241, 0.1); /* Subtle primary tint */
        border-color: var(--accent);
    }
}

/* Hard rule: Touchscreen mobile devices don't have mice, so hide the tracking indicators completely */
@media (max-width: 1024px) {
    .custom-cursor-dot, .custom-cursor-ring {
        display: none !important;
    }
}

@media (max-width: 1024px) {

    .app-store-badge {

        display: flex;

        justify-content: center;

    }

}