/* ========================================
   1. FONT FACE & DESIGN TOKENS
   ======================================== */
@font-face {
    font-family: 'Transducer Medium';
    src: url('font/transducer-medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --bg-deep: #050507;
    --bg-primary: #09090c;
    --bg-elevated: #0f0f14;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.045);
    --accent: #5e6ad2;
    --accent-hover: #6e7be2;
    --accent-light: #7c8aff;
    --accent-glow: rgba(94, 106, 210, 0.12);
    --ice: #7dd3fc;
    --ice-glow: rgba(125, 211, 252, 0.06);
    --gold: #f5c518;
    --text-primary: #eaeaf0;
    --text-secondary: #64687a;
    --text-muted: #3d4052;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(94, 106, 210, 0.3);

    /* Typography */
    --font-display: 'Transducer Medium', 'Outfit', system-ui, sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --text-hero: clamp(3rem, 8vw, 5.5rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.75rem, 3vw, 2.5rem);
    --text-h3: clamp(1.125rem, 2vw, 1.375rem);
    --text-body: clamp(0.925rem, 1.5vw, 1.05rem);
    --text-small: clamp(0.8rem, 1.2vw, 0.875rem);

    /* Spacing */
    --space-section: clamp(4rem, 8vw, 7rem);
    --space-lg: 3rem;
    --space-md: 1.5rem;
    --space-sm: 0.75rem;
    --space-xs: 0.375rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.6s;

    /* Content */
    --content-max: 1200px;
}

/* ========================================
   2. RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

#app-status, #status { scroll-margin-top: 100px; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   3. LAYOUT
   ======================================== */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   4. TYPOGRAPHY
   ======================================== */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }

.section-header {
    font-size: var(--text-h2);
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header i { color: var(--accent); font-size: 0.9em; }

.section-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg) auto;
    line-height: 1.7;
}

/* ========================================
   5. BUTTONS
   ======================================== */
.btn {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-small);
    border: none;
    cursor: pointer;
    transition: background var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    height: 40px;
    white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }

header nav .btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 24px rgba(94, 106, 210, 0.35), 0 0 8px rgba(94, 106, 210, 0.2);
}
header nav .btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 32px rgba(94, 106, 210, 0.5), 0 0 12px rgba(94, 106, 210, 0.3);
}

/* ========================================
   6. HEADER & NAVIGATION
   ======================================== */
.header-wrapper {
    position: sticky;
    top: 0;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(9, 9, 12, 0.82);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity var(--duration-normal);
    z-index: 1;
}
.logo:hover { opacity: 0.85; }
.logo img { height: 70px; width: auto; display: block; }

nav { display: flex; align-items: center; gap: 0.25rem; }

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast), background var(--duration-fast);
    display: flex;
    align-items: center;
    gap: 0.3em;
}
nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* Nav dropdowns */
.nav-item { position: relative; }
.nav-item > a .nav-chevron { font-size: 0.55em; margin-left: 0.3em; transition: transform var(--duration-fast); opacity: 0.4; }
.nav-item:hover > a .nav-chevron { transform: rotate(180deg); opacity: 1; }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-fast), visibility var(--duration-fast), transform var(--duration-fast);
    z-index: 200;
    box-shadow: var(--shadow-lg);
}
.nav-dropdown.nav-dropdown-wide { min-width: 420px; padding: 1rem; }
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.nav-dropdown-item {
    display: block;
    padding: 0.45rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }

.nav-dropdown-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }

.nav-dropdown-column-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    margin: 0 0.75rem 0.25rem 0.75rem;
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-pill);
}

/* ========================================
   7. HAMBURGER & MOBILE NAV
   ======================================== */
.hamburger { display: none; }

.mobile-get-app-btn { display: none !important; }

@media (max-width: 900px) {
    nav { display: none; }
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
        z-index: 1002;
        position: relative;
    }
    .hamburger i { font-size: 1.6rem; color: var(--text-primary); transition: 0.3s ease; position: absolute; }
    .hamburger .fa-bars { opacity: 1; transform: rotate(0deg); }
    .hamburger .fa-xmark { opacity: 0; transform: rotate(90deg); }
    .hamburger.open .fa-bars { opacity: 0; transform: rotate(-90deg); }
    .hamburger.open .fa-xmark { opacity: 1; transform: rotate(0deg); }

    .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .logo img { height: 50px !important; }
    .logo:hover { opacity: 1; }

    .mobile-get-app-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--accent) !important;
        color: #fff !important;
        border-radius: var(--radius-md);
        text-decoration: none;
        font-size: 1.1rem;
        box-shadow: var(--shadow-sm);
        transition: background var(--duration-normal);
    }
    .mobile-get-app-btn:hover { background: var(--accent-hover) !important; }
    .mobile-get-app-btn .mobile-btn-text { display: none; }
    .mobile-get-app-btn i { margin-right: 0 !important; }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 7, 0.96);
        backdrop-filter: blur(24px);
        z-index: 1001;
        transition: opacity 0.4s var(--ease-out), visibility 0.4s;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .mobile-nav.open { opacity: 1; visibility: visible; pointer-events: auto; }

    .mobile-nav a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.05rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 240px;
        padding: 1rem 1.5rem;
        margin: 0 auto 0.5rem auto;
        border-radius: var(--radius-md);
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s var(--ease-out);
    }
    .mobile-nav a i { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
    .mobile-nav a:hover { background: rgba(94,106,210,0.12); border-color: rgba(94,106,210,0.25); }

    .mobile-nav.open a:nth-child(1) { animation: slideUp 0.5s var(--ease-out) 0.05s forwards; }
    .mobile-nav.open a:nth-child(2) { animation: slideUp 0.5s var(--ease-out) 0.1s forwards; }
    .mobile-nav.open a:nth-child(3) { animation: slideUp 0.5s var(--ease-out) 0.15s forwards; }
    .mobile-nav.open a:nth-child(4) { animation: slideUp 0.5s var(--ease-out) 0.2s forwards; }
    .mobile-nav.open a:nth-child(5) { animation: slideUp 0.5s var(--ease-out) 0.25s forwards; }
    .mobile-nav.open a:nth-child(6) { animation: slideUp 0.5s var(--ease-out) 0.3s forwards; }
    .mobile-nav.open a:nth-child(7) { animation: slideUp 0.5s var(--ease-out) 0.35s forwards; }
    .mobile-nav.open a:nth-child(8) { animation: slideUp 0.5s var(--ease-out) 0.4s forwards; }
    .mobile-nav.open a:nth-child(9) { animation: slideUp 0.5s var(--ease-out) 0.45s forwards; }

    .mobile-nav a.btn {
        background: var(--accent) !important;
        color: #fff !important;
        border: none !important;
    }
    .mobile-nav a.btn:hover { background: var(--accent-hover) !important; }

    .mobile-nav-close {
        position: absolute;
        top: 1.25rem;
        left: 1rem;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: var(--radius-md);
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #fff;
        font-size: 1.3rem;
        transition: background var(--duration-fast);
        z-index: 1003;
    }
    .mobile-nav-close:hover { background: rgba(255,255,255,0.12); }

    .nav-dropdown, .nav-chevron { display: none !important; }
}

@media (min-width: 901px) {
    .mobile-nav, .mobile-get-app-btn { display: none !important; }
}

/* ========================================
   8. HERO SECTION
   ======================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-section) 0 var(--space-lg);
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 50% -10%, rgba(94,106,210,0.14) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, var(--ice-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(94,106,210,0.06) 0%, transparent 40%);
    animation: arenaLights 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes arenaLights {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-main-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 40%, #c7d2fe 80%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 1s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: rgba(255,255,255,0.8);
    animation: fadeSlideUp 1s var(--ease-out) 0.15s forwards;
    opacity: 0;
    transform: translateY(25px);
}

.hero-screenshots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin: var(--space-md) auto var(--space-lg) auto;
    padding: 0 1rem;
    animation: fadeSlideUp 1s var(--ease-out) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-screenshot-link {
    flex: 0 0 auto;
    width: 260px;
    transition: transform var(--duration-normal) var(--ease-out);
}
.hero-screenshot-link:hover { transform: translateY(-6px); }
.hero-screenshot-link img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.hero > .container > p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-md);
    animation: fadeSlideUp 1s var(--ease-out) 0.45s forwards;
    opacity: 0;
    transform: translateY(15px);
}

@media (max-width: 900px) {
    .hero { overflow-x: visible; }
    .hero-main-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .hero-subtitle { font-size: clamp(1.1rem, 3vw, 1.5rem); }
    .hero-screenshots {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        max-width: 100vw;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 0 1.5rem;
    }
    .hero-screenshot-link { min-width: 240px; max-width: 240px; scroll-snap-align: center; }
    .hero-availability-trust-wrapper { max-width: 100%; }
    .trust-signals { max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 600px) {
    .hero { padding: var(--space-lg) 0 var(--space-md); }
    .hero-screenshot-link { min-width: 200px; max-width: 200px; }
}

/* Availability & Trust */
.hero-availability-trust-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: var(--space-md) auto;
    animation: fadeSlideUp 1s var(--ease-out) 0.5s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.available-for-label {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.segmented-control {
    display: inline-flex;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-pill);
    padding: 5px;
    gap: 0.35rem;
    border: 1px solid var(--border);
}

.seg-btn {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--duration-fast), background var(--duration-fast);
}
.seg-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.seg-btn i { font-size: 1.8rem; }

.trust-signals-link { text-decoration: none; color: inherit; display: block; }
.trust-signals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 1.5rem 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: border-color var(--duration-normal);
    cursor: pointer;
    min-height: 100px;
}
.trust-signals:hover { border-color: var(--border-hover); }

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(94,106,210,0.35), transparent);
}

.stars { display: flex; gap: 0.2rem; margin-bottom: 0.5rem; }
.stars i { color: var(--gold); font-size: 1.25rem; }

.rating-text {
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.review-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.review-text-trust {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 900px) {
    .hero-availability-trust-wrapper { flex-direction: column !important; gap: 1.5rem !important; }
    .availability-section, .trust-section-link { margin: 0 !important; }
    .trust-signals { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
    .trust-item:not(:last-child)::after { display: none; }
}

/* Featured Review in Hero */
.hero-review {
    width: 100%;
    margin-top: var(--space-md);
    animation: fadeSlideUp 1s var(--ease-out) 0.7s forwards;
    opacity: 0;
    transform: translateY(15px);
}

/* ========================================
   9. REVIEW CARDS
   ======================================== */
.reviews {
    padding: var(--space-lg) 0 var(--space-section);
}

.review-card-link { text-decoration: none; color: inherit; display: block; }
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    padding-top: 2rem;
    text-align: left;
    transition: border-color var(--duration-normal), box-shadow var(--duration-normal), transform var(--duration-normal);
    position: relative;
    overflow: hidden;
}
.review-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.review-card::before {
    display: none;
    line-height: 1;
    pointer-events: none;
}
.review-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.6rem; margin-top: 0.25rem; color: var(--text-primary); position: relative; z-index: 1; }
.review-meta { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 0.6rem; position: relative; z-index: 1; }
.review-stars { color: var(--gold); margin-right: 0.4em; }
.review-text { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.6; position: relative; z-index: 1; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .reviews-grid { gap: 1rem; }
}

@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* ========================================
   10. SECTION UTILITIES
   ======================================== */
.section-fade {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94,106,210,0.2), transparent);
    border: none;
    margin: var(--space-section) auto;
    max-width: 500px;
}
#get-the-app-main {
    padding-top: var(--space-section);
}

.scroll-to-top {
    display: flex;
    justify-content: center;
    margin: var(--space-md) auto;
}
.scroll-to-top a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: var(--text-small);
    font-weight: 500;
    border: 1px solid var(--border);
    transition: color var(--duration-normal), background var(--duration-normal);
}
.scroll-to-top a:hover { background: var(--accent-glow); color: var(--text-primary); border-color: var(--border-hover); }
.scroll-to-top i { font-size: 0.75rem; }

/* ========================================
   11. LATEST SECTION
   ======================================== */
.latest-section { padding: var(--space-section) 0; }

.promo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: var(--space-lg) auto;
    max-width: 100%;
}
.promo-stack img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform var(--duration-normal) var(--ease-out);
}
.promo-stack img:hover { transform: scale(1.01); }

.expansion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: var(--space-lg) auto;
}
.expansion-grid img { width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }

.product-screen { max-width: 100%; margin: var(--space-md) auto; border-radius: var(--radius-md); overflow: hidden; }
.product-screen img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

/* ========================================
   12. FEATURES TOC & GRID
   ======================================== */
.features-toc {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 0 auto var(--space-lg) auto;
    max-width: 100%;
}
.features-toc::-webkit-scrollbar { display: none; }
.features-toc a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.75);
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--duration-normal), color var(--duration-normal), border-color var(--duration-normal);
    border: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}
.features-toc a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.features-toc a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 900px) {
    .features-toc { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: 0.75rem; }
}

.features { padding: 0 0 var(--space-section); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card-link { text-decoration: none; color: inherit; display: block; }

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: border-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}
.feature-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); transform: translateY(-4px); }

.feature-card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transition: transform var(--duration-slow) var(--ease-out);
    overflow: hidden;
}
.feature-card:hover .feature-card-img { transform: scale(1.03); }

.feature-card-body { padding: 1.5rem; }

.feature-title {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.feature-title i { font-size: 1.15em; }

.feature-desc { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.7; }

/* ========================================
   13. FEATURE HERO SECTIONS
   ======================================== */
.feature-hero {
    padding: var(--space-section) 0;
    position: relative;
}
.feature-hero:nth-child(even) { background: rgba(255,255,255,0.008); }

.feature-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-hero-text { display: flex; flex-direction: column; gap: 1.5rem; }

.feature-hero-title {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.feature-hero-title i { font-size: 1.5rem; }

.feature-hero-description {
    font-size: var(--text-body);
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

.feature-hero-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.feature-hero-list li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    padding-left: 1.75rem;
    position: relative;
}
.feature-hero-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.feature-hero-image { display: flex; justify-content: center; align-items: center; }
.feature-hero-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-slow) var(--ease-out);
}
.feature-hero-image img:hover { transform: translateY(-6px); }

/* Alternating layout */
.feature-hero:nth-child(even) .feature-hero-text { order: 2; }
.feature-hero:nth-child(even) .feature-hero-image { order: 1; }

@media (max-width: 900px) {
    .feature-hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .feature-hero:nth-child(even) .feature-hero-text,
    .feature-hero:nth-child(even) .feature-hero-image { order: unset; }
    .feature-hero-image { order: -1; }
    .feature-hero-image img { max-width: 70%; }
    .feature-hero-title { justify-content: center; flex-wrap: wrap; }
    .feature-hero-description { text-align: center; }
    .feature-hero-list { text-align: left; max-width: 90%; margin: 0 auto; }
}

@media (max-width: 600px) {
    .feature-hero-image img { max-width: 85%; }
    .feature-hero-title { font-size: clamp(1.3rem, 4vw, 1.8rem); }
}

/* ========================================
   14. SCREENSHOTS GRID
   ======================================== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: var(--space-lg) 0;
}
@media (max-width: 900px) { .screenshots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .screenshots-grid { grid-template-columns: 1fr; } }

.screenshot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--duration-normal), transform var(--duration-normal);
}
.screenshot-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.screenshot-card img { width: 100%; display: block; }

/* ========================================
   15. CTA SECTION
   ======================================== */
.cta {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 4rem 3rem;
    text-align: center;
    margin: var(--space-md) auto var(--space-section);
    max-width: 100%;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(94,106,210,0.08), transparent 70%);
    pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 {
    font-family: var(--font-display);
    font-size: var(--text-h1);
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), #b0b7f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.cta p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.cta .app-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.cta .app-buttons a { display: inline-block; transition: transform var(--duration-normal); }
.cta .app-buttons a:hover { transform: translateY(-3px); }
.cta .app-buttons img { height: 65px; display: block; border-radius: var(--radius-md); }

@media (max-width: 900px) {
    .cta { padding: 3rem 1.5rem; margin: var(--space-md) 1rem; }
    .cta .app-buttons img { height: 55px; }
}
@media (max-width: 600px) {
    .cta { padding: 2.5rem 1.25rem; }
    .cta .app-buttons img { height: 42px; }
}

/* ========================================
   16. CONTACT & SUBSCRIBE
   ======================================== */
.contact { padding: var(--space-section) 0; text-align: center; }

/* Brevo form dark overrides */
.sib-container { background: var(--bg-primary) !important; }
#sib-container, #sib-container.sib-container--large, #sib-container.sib-container--vertical,
.sib-form, #sib-form-container, .sib-form-container { background: var(--bg-primary) !important; color: #fff !important; }
#sib-container * { color: #fff !important; background: transparent !important; border-color: #333 !important; }
#sib-container input, #sib-container textarea { background: var(--bg-elevated) !important; color: #fff !important; border: 1.5px solid #333 !important; }
#sib-container input::placeholder, #sib-container textarea::placeholder { color: #b6b9c9 !important; }
#sib-container .sib-form-block__button { background: var(--accent) !important; color: #fff !important; border: none !important; }
#sib-container .sib-form-message-panel { background: var(--bg-elevated) !important; color: #fff !important; border-color: var(--accent) !important; }
#sib-container, #sib-container.sib-container--large, #sib-container.sib-container--vertical { border: 1.5px solid #23232a !important; }
#sib-container .entry__label { font-family: var(--font-display) !important; }

/* ========================================
   17. FOOTER
   ======================================== */
footer {
    padding: 3rem 0 2rem;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-copyright { font-size: var(--text-small); color: var(--text-muted); font-weight: 500; }

.footer-social { display: flex; gap: 1.25rem; justify-content: center; align-items: center; }
.footer-social a img {
    height: 48px;
    width: 48px;
    display: block;
    border-radius: var(--radius-md);
    padding: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    transition: transform var(--duration-normal), border-color var(--duration-normal);
}
.footer-social a img:hover { transform: translateY(-3px); border-color: var(--border-hover); }

.disclaimer-section {
    background: var(--bg-deep);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 1.5rem 0;
    text-align: center;
}
.disclaimer-text { font-size: 0.75rem; color: rgba(255,255,255,0.06); line-height: 1.6; padding: 0 1.5rem; }

/* ========================================
   18. ANIMATIONS & SCROLL REVEAL
   ======================================== */
@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children in grids */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Floating dots */
.motion-area {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.moving-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: floatUp 6s infinite ease-in-out;
}
@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.2; }
    100% { transform: translateY(-700px); opacity: 0; }
}

/* ========================================
   19. REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ========================================
   20. DEFAULT TAB ICON SPECIAL RULES
   ======================================== */
#feature-defaulttab .feature-title img,
#defaulttab-hero .feature-hero-title img {
    border-radius: 0 !important;
    clip-path: none !important;
    object-fit: contain !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ========================================
   21. APP STATUS
   ======================================== */
.status-section {
    padding: var(--space-section) 0;
    text-align: center;
}
.status-banner {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.status-banner .status-label { display: flex; align-items: center; gap: 0.5em; }
.status-banner .status-sub { font-family: var(--font-display); font-size: 1rem; color: var(--text-secondary); font-weight: 500; }

/* ========================================
   22. PAGE UTILITIES (multi-page)
   ======================================== */
.page-back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-small);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    transition: color var(--duration-normal), background var(--duration-normal), border-color var(--duration-normal);
    margin-bottom: var(--space-md);
}
.page-back-link:hover {
    color: var(--text-primary);
    background: var(--accent-glow);
    border-color: var(--border-hover);
}
.page-back-link i { font-size: 0.75rem; }

.page-content {
    padding: var(--space-section) 0;
}

/* ========================================
   23. iPAD PAGE
   ======================================== */
.ipad-hero {
    padding: var(--space-md) 0 var(--space-sm);
    background: #000;
}
.ipad-hero::before {
    display: none;
}
.ipad-hero .hero-main-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.4rem;
}
.ipad-hero .hero-subtitle {
    max-width: 700px;
    margin-bottom: 0.5rem;
}

.ipad-hero-screenshots {
    max-width: 900px;
    margin: var(--space-sm) auto 0;
    animation: fadeSlideUp 1s var(--ease-out) 0.45s forwards;
    opacity: 0;
    transform: translateY(20px);
}
.ipad-hero-screenshots img {
    width: 100%;
    height: auto;
    display: block;
}

/* iPad feature hero images are landscape-oriented */
.feature-hero-image img.ipad-screenshot {
    max-width: 560px;
}

@media (max-width: 900px) {
    .feature-hero-image img.ipad-screenshot {
        max-width: 100%;
    }
}

/* iPad screenshot gallery grid - 2 columns for landscape images */
.ipad-gallery-section {
    padding: var(--space-lg) 0 var(--space-section);
}

.ipad-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: var(--space-lg) 0;
}

@media (max-width: 900px) {
    .ipad-screenshots-grid { grid-template-columns: 1fr; }
}

.ipad-screenshot-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform var(--duration-normal);
}
.ipad-screenshot-card:hover {
    transform: translateY(-3px);
}
.ipad-screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.ipad-screenshot-label {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.25rem 0;
}
