@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors - Based on App CSS */
    --bg-dark: #07090d;
    --bg-darker: #050608;
    --bg-glass: rgba(13, 17, 23, 0.65);
    --bg-glass-heavy: rgba(13, 17, 23, 0.85);

    --accent-blue: #388bfd;
    --accent-glow: rgba(56, 139, 253, 0.25);
    --accent-secondary: #79c0ff;

    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Animation Variables (Controlled by JS) */
    --scroll: 0;
    --hero-scale: calc(1 + (var(--scroll) * 0.15));
    --hero-blur: calc(var(--scroll) * 15px);
    --hero-opacity: calc(1 - (var(--scroll) * 1.5));
    --ring-scale: calc(1 - (var(--scroll) * 0.4));
    --ring-opacity: calc(0.6 * (1 - (var(--scroll) * 1.2)));
    /* Lower base and fade to 0 */
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: #030406;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    color: var(--text-primary);
    overflow-x: clip;
    width: 100%;
    position: relative;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* NUCLEAR VISIBILITY OVERRIDE: Restores broken sections */
section {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1000;
}

.main-content-flow {
    width: 100%;
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

/* --- Layout Components --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1002;
}

main {
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 100vh;
    padding-top: 100px;
}

#universal-support {
    min-height: auto;
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: center;
    position: relative;
    z-index: 100;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    #universal-support {
        min-height: auto;
        padding: 40px 0;
    }
}

#features {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: center;
}

@media (max-width: 768px) {
    #features {
        min-height: auto;
        padding: 60px 0;
    }
}

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

.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* --- Background System (Upscayl Inspired) --- */
/* z-index must be >= 0: negative values paint behind body/html and disappear in most browsers */
.bg-system {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #030406;
    width: 100%;
}

/* 1. Large Radial Glows */
.glow-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    /* Increased opacity from 0.1 */
    animation: float-slow 30s ease-in-out infinite alternate;
}

@keyframes float-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

.blue-glow {
    background: radial-gradient(circle, rgba(56, 139, 253, 0.4) 0%, transparent 70%);
    top: -15%;
    left: -10%;
}

.purple-glow {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -15s;
}

/* 2. Dotted Mesh Grid */
.dots-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.1;
    /* Lowered global dot intensity */
    pointer-events: none;
}

/* 3. Noise Texture Overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    /* Increased from 0.035 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    /* Changed from overlay for subtler texture */
}

/* --- Navigation (Floating Pill) --- */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001; /* Higher than mobile-menu */
    display: flex;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.nav-wrapper nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 5%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    /* Initial state: No pill */
    background-color: transparent;
    background-image: none;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-radius: 0;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;

    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled state: Morph into Elite Pill */
.nav-wrapper nav.scrolled {
    margin-top: 1.5rem;
    width: 90%;
    max-width: 1100px;
    padding: 0.75rem 1.75rem;
    padding-right: 0.75rem;

    background-color: rgba(7, 9, 13, 0.45);
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 10px 10px;
    background-position: center;

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(255, 255, 255, 0.02);
}

.nav-wrapper nav:hover {
    border-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 4px 30px rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-family: 'Outfit';
    font-size: 1.1rem;
}

.nav-brand img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.btn-pill {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-pill:hover {
    background: #4da1ff;
    transform: scale(1.05);
}

/* --- Hero Section (Elite Scroll-Sync Implementation) --- */
.hero {
    height: 100vh;
    padding: 200px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    scroll-snap-align: center;
}

.scroll-animate {
    transform: scale(var(--hero-scale));
    filter: blur(var(--hero-blur));
    opacity: var(--hero-opacity);
    will-change: transform, filter, opacity;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 10;
    /* Content on top of rings */
}

/* Background Rings (Master Layer - Now behind everything) */
.hero-bg-rings {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) scale(var(--ring-scale));
    opacity: var(--ring-opacity);
    width: 100%;
    height: 2000px;
    pointer-events: none;
    z-index: 1;
    /* Lowest child of hero */
    will-change: transform;
}

.ring-master {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    /* Lowered initial border opacity */
    border-radius: 50%;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.ring-main {
    /* Smaller ring connecting to Explore features */
    width: 850px;
    height: 850px;
    margin-top: 280px;
    /* Shifted up from 310px to align with action pill */
}

.ring-outer {
    /* Atmospheric depth ring */
    width: 1400px;
    height: 1400px;
    margin-top: 80px;
    /* Shifted up from 140px */
    opacity: 0.6;
}

.ring-inner {
    /* Depth ring for app image top */
    width: 500px;
    height: 500px;
    margin-top: 440px;
    /* Shifted up from 480px */
    opacity: 0.3;
}

/* Connected Badge Logic */
.hero-badge-container {
    position: relative;
    z-index: 20;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

/* The badge sits "on" the ring at exactly top:0 of the ring's imaginary bounds */
/* We simulate this by adjusting the margin to align with the ring-main top edge */
.hero-badge.connected {
    background-color: #030406;
    /* Solid to hide ring line */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1.75rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-primary {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.hero-primary .bold {
    font-weight: 800;
    color: white;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Action Bar Pill */
.hero-action-nest {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.action-pill {
    background-color: var(--bg-dark);
    /* Solid to hide ring line */
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 0.4rem;
    padding-left: 1.5rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.action-pill:hover {
    border-color: var(--border-bright);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.action-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.action-link:hover {
    color: white;
}

.btn-action-primary {
    background: var(--bg-glass-heavy);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn-action-primary:hover {
    background: white;
    color: #030406;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.hero-main-media {
    width: 100%;
    max-width: 680px;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    z-index: 15;
    /* Highest layer in hero content */
    position: relative;
}

/* Section 2 Smooth Landing (DISABLED FOR NUCLEAR RESTORATION) */
/* .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
} */

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Headings --- */
.section-headline {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.section-headline h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-headline p {
    color: #cbd5e1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.section-headline h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* --- Universal Support: auto-rotating 3D platform ring --- */
.platform-orbit {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.platform-orbit__perspective {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* Tall enough for a wide ring + 150px cards + centered headline */
    height: clamp(540px, 65vw, 720px);
    perspective: 1100px;
    perspective-origin: 50% 48%;
}

/* Simplified masking structure: Removed complex intersect logic in favor of requested linear zones */

/* Cards sit behind the headline layer */
.platform-orbit__track {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform-style: preserve-3d;
    /* Precise Vertical Mask zones: Top (Visible), Middle (Fade), Bottom (Hidden) */
    mask-image: linear-gradient(to bottom,
            black 0%,
            black 38%,
            transparent 62%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            black 0%,
            black 38%,
            transparent 62%,
            transparent 100%);
}

.platform-orbit__center {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.platform-orbit__headline-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 1.25rem;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .platform-orbit__headline-inner {
        max-width: 250px;
    }
}

.section-headline--orbit-center {
    margin: 0;
    padding: 0.25rem 0;
}

.section-headline--orbit-center h2 {
    font-size: clamp(1.75rem, 4.2vw, 3.25rem);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.section-headline--orbit-center p {
    margin: 0;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.platform-orbit__track:hover {
    cursor: default;
}

.platform-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(13, 17, 23, 0.78);
    /* Restored higher opacity */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    backdrop-filter: blur(28px) saturate(165%);
    /* High blur */
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    box-shadow: none !important;
    /* Flat aesthetic */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    transform-origin: center center;
}

.platform-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-card__icon img,
.platform-card__icon svg {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.platform-card__icon svg {
    color: #94a3b8;
    /* Unified grey for Discord */
}

.platform-card__name {
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-align: center;
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .platform-orbit__perspective {
        height: clamp(480px, 120vw, 600px);
    }

    .platform-card {
        width: 70px;
        height: 70px;
        border-radius: 14px;
        font-size: 0.5rem;
        padding: 0.15rem;
    }

    .platform-card__icon img,
    .platform-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .platform-card__name {
        max-width: 100px;
    }

    .section-headline--orbit-center h2 {
        font-size: 1.5rem;
        max-width: 200px;
        margin: 0 auto 0.5rem;
    }

    .section-headline--orbit-center p {
        font-size: 0.85rem;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Bento Feature Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-card {
    background: rgba(17, 19, 24, 0.1);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Default for small cards */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* --- The Hamax Difference (Premium Bento) --- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.diff-card {
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.diff-card:hover {
    background: rgba(13, 17, 23, 0.6);
    border-color: rgba(56, 139, 253, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-full {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
}



.diff-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

.diff-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.diff-outcome {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.outcome-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.outcome-check {
    color: var(--accent-blue);
    font-weight: 800;
}

/* Kinetic Visuals */
.diff-visual {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.card-full .diff-visual {
    width: 40%;
    height: 200px;
}

/* 1. Comparison Graph */
.comparison-graph {
    width: 100%;
    padding: 1rem;
    position: relative;
}

.graph-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.graph-grid {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.path-browser {
    fill: none;
    stroke: var(--text-dim);
    stroke-width: 2;
    opacity: 0.5;
    stroke-dasharray: 4 4;
    animation: reveal-browser 5s ease-in-out infinite;
}

.path-hamax {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 12px var(--accent-blue));
    animation: reveal-hamax 5s ease-in-out infinite;
}

.graph-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dot-hamax, .dot-browser {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-hamax { background: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); }
.dot-browser { background: var(--text-dim); }

@keyframes reveal-hamax {
    0% { clip-path: inset(0 100% 0 0); opacity: 0; }
    5% { opacity: 1; }
    25% { clip-path: inset(0 0 0 0); } /* Reaches 100% at 25% of cycle */
    85% { clip-path: inset(0 0 0 0); opacity: 1; }
    95% { opacity: 0; }
    100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}

@keyframes reveal-browser {
    0% { clip-path: inset(0 100% 0 0); opacity: 0; }
    5% { opacity: 0.5; }
    75% { clip-path: inset(0 0 0 0); } /* Reaches 100% at 75% of cycle */
    85% { clip-path: inset(0 0 0 0); opacity: 0.5; }
    95% { opacity: 0; }
    100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}



/* 2. Smart Resume Demo */
.resume-demo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.demo-status::after {
    content: "Downloading...";
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: status-cycle 6s infinite;
}

.resume-viz {
    width: 180px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.resume-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--accent-blue);
    animation: progress-cycle 6s infinite, progress-color 6s infinite;
}

@keyframes progress-color {
    0%, 19% { background: var(--accent-blue); }
    20%, 49% { background: var(--text-dim); }
    50%, 100% { background: #4ade80; }
}

.demo-controls {
    margin-top: 0.5rem;
    position: relative;
    width: 32px;
    height: 32px;
}

.demo-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: btn-click-cycle 6s infinite;
}

.pause-bars {
    display: flex;
    gap: 2px;
    animation: pause-visible-cycle 6s infinite;
}

.pause-bars .bar {
    width: 2px;
    height: 10px;
    background: white;
}

.play-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
    position: absolute;
    animation: play-visible-cycle 6s infinite;
}

.demo-cursor {
    position: absolute;
    top: 40px;
    left: 60px;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    animation: cursor-cycle 6s infinite;
}

@keyframes pause-visible-cycle {
    0%, 19% { opacity: 1; }
    20%, 49% { opacity: 0; }
    50%, 100% { opacity: 1; }
}

@keyframes play-visible-cycle {
    0%, 19% { opacity: 0; }
    20%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes cursor-cycle {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    18% { transform: translate(-45px, -32px); } /* Move to button center */
    22% { transform: translate(-45px, -32px) scale(0.8); } /* Click 1 */
    25% { transform: translate(-45px, -32px) scale(1); }
    45% { transform: translate(-45px, -32px); }
    48% { transform: translate(-45px, -32px) scale(0.8); } /* Click 2 (Resume) */
    52% { transform: translate(-45px, -32px) scale(1); }
    75% { transform: translate(-45px, -32px); opacity: 1; } /* Stay while resuming */
    85% { transform: translate(10px, 10px); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes btn-click-cycle {
    0%, 17% { transform: scale(1); background: rgba(255, 255, 255, 0.1); }
    20%, 25% { transform: scale(0.9); background: rgba(255, 255, 255, 0.3); }
    47%, 52% { transform: scale(0.9); background: rgba(255, 255, 255, 0.3); }
    55%, 100% { transform: scale(1); background: rgba(255, 255, 255, 0.1); }
}

@keyframes progress-cycle {
    0% { width: 0%; }
    20% { width: 45%; } /* Pause here */
    50% { width: 45%; }
    70% { width: 100%; }
    100% { width: 100%; }
}

@keyframes status-cycle {
    0%, 19% { content: "Downloading..."; color: var(--accent-blue); }
    20%, 49% { content: "Paused"; color: var(--text-dim); }
    50%, 100% { content: "Resuming..."; color: #4ade80; }
}

/* 3. Network Viz */
.network-viz {
    display: flex;
    gap: 30px;
}

.node {
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: relative;
}

.node::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    animation: node-pulse 2s infinite;
    opacity: 0;
}

.node:nth-child(2) { animation: node-float 3s infinite ease-in-out; }

@keyframes node-pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes node-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 4. System Resources */
.system-resources {
    width: 90%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
}

.resource-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.resource-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.75rem 0;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.resource-row.muted {
    opacity: 0.3;
}

.process-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
}

.efficiency-leaf {
    width: 14px;
    height: 14px;
    color: #4ade80;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.5));
    animation: leaf-pulse 2s infinite ease-in-out;
}

.resource-val {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cpu-val {
    color: #4ade80;
    font-weight: 700;
}

@keyframes leaf-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.narrow-text {
    max-width: 50%;
}

/* 5. Video Detection Demo */
.video-detector-demo {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-player {
    width: 80%;
    height: 140px;
    background: #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-ui {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.play-btn-large {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    clip-path: polygon(30% 20%, 30% 80%, 80% 50%);
}

.hamax-float-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(56, 139, 253, 0.4);
    animation: float-btn-click 6s infinite;
}

.btn-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
}

.success-toast {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #4ade80;
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    animation: toast-slide 6s infinite;
}

.demo-cursor-video {
    position: absolute;
    bottom: -20px;
    right: -20px;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    animation: cursor-video-cycle 6s infinite;
}

@keyframes float-btn-click {
    0%, 19% { transform: scale(1); background: var(--accent-blue); }
    20%, 25% { transform: scale(0.9); background: #2a73d4; }
    26%, 100% { transform: scale(1); background: var(--accent-blue); }
}

@keyframes toast-slide {
    0%, 25% { bottom: -40px; opacity: 0; }
    30%, 85% { bottom: 15px; opacity: 1; }
    90%, 100% { bottom: -40px; opacity: 0; }
}

@keyframes cursor-video-cycle {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    20% { transform: translate(-100px, -110px); } /* Move faster to button */
    22% { transform: translate(-100px, -110px) scale(0.8); } /* Click at 22% */
    25% { transform: translate(-100px, -110px) scale(1); }
    55% { transform: translate(-100px, -110px); opacity: 1; } /* Stay until toast is up */
    65% { transform: translate(-80px, -80px); opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 992px) {
    .narrow-text {
        max-width: 100%;
    }
}

/* Tag Pill */

/* Tag Pill */
.tag-pill {
    background: var(--accent-glow);
    color: var(--accent-blue);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
}

@media (max-width: 992px) {
    .diff-grid {
        grid-template-columns: 1fr;
    }
    .card-full {
        grid-column: span 1;
        flex-direction: column;
    }
    .card-full .diff-visual {
        width: 100%;
    }
}


.bento-card:hover {
    border-color: var(--border-bright);
    background: rgba(13, 17, 23, 0.6);
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.bento-card .card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-tall {
    grid-row: span 2;
}

.bento-card .card-icon {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    /* Muted Grey */
    margin-bottom: 2rem;
    transition: var(--transition);
}

.bento-card:hover .card-icon {
    color: white;
    transform: scale(1.1);
}

.card-tall {
    grid-row: span 2;
    justify-content: flex-end;
    /* Layout for tall cards */
}

/* Specific layout mapping to reference image */
.card-left {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.card-right {
    grid-row: 2 / 4;
    grid-column: 3 / 4;
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 90%;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .card-left {
        grid-row: auto;
        grid-column: auto;
    }

    .card-right {
        grid-row: auto;
        grid-column: auto;
    }

    .card-tall {
        grid-row: span 1;
    }
}

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

/* --- Sticky Scroll "Made For" --- */
.sticky-container {
    height: 300vh;
    position: relative;
}

.sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1100;
}

.sticky-text-stack {
    height: 120px;
    overflow: hidden;
    margin: 2rem 0;
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Outfit';
    color: var(--accent-blue);
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-word {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

#community {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0;
    scroll-snap-align: center;
    position: relative;
    z-index: 100;
}

/* --- Forever Free Section (Elite Design) --- */
#forever-free {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    padding: 120px 0;
    z-index: 100;
    width: 100%;
}

@media (max-width: 768px) {
    #forever-free {
        min-height: auto;
        padding: 80px 0;
    }
}

.aura-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(56, 139, 253, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: 0;
}

.free-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.free-hero {
    margin-bottom: 3rem;
    position: relative;
}

.metal-text {
    font-size: clamp(4rem, 20vw, 12rem);
    line-height: 0.8;
    background: linear-gradient(to bottom, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    margin-bottom: 1rem;
}

.free-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 2.5rem;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: badge-pulse 3s infinite ease-in-out;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 50px var(--accent-glow);
    }
}

.free-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.free-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-bright);
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 1.25rem;
}

@media (max-width: 640px) {
    .trust-badges {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .trust-badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.4rem;
        white-space: nowrap;
    }
    .badge-icon {
        font-size: 0.9rem;
    }
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-glass-heavy);
    color: var(--text-muted);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

/* --- Download Zone (Elite Section) --- */
#download {
    position: relative;
    overflow: hidden;
    width: 100%;
}

#download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 139, 253, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.download-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.download-card {
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 48px;
    padding: 6rem 4rem;
    width: 100%;
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .download-card {
        padding: 2.5rem 1.25rem;
        border-radius: 32px;
    }
}

.platform-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    margin-bottom: 4rem;
    color: white;
}

.main-download-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.mega-download-btn {
    position: relative;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 1.25rem 3.5rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 0 rgba(56, 139, 253, 0);
}

.mega-download-btn .btn-text,
.mega-download-btn .btn-icon {
    color: #000000;
}

.mega-download-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(56, 139, 253, 0.3);
    background: var(--accent-blue);
    color: white;
}

.mega-download-btn:hover .btn-text,
.mega-download-btn:hover .btn-icon {
    color: white;
}

.btn-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(20px);
    z-index: -1;
}

.mega-download-btn:hover .btn-glow {
    opacity: 0.6;
}

.download-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}

.meta-separator {
    opacity: 0.3;
}

.secondary-downloads {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
}

.secondary-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.secondary-link:hover {
    color: white;
    transform: translateY(-2px);
}

.secondary-link svg {
    opacity: 0.6;
}

/* --- Downloads Page Styles --- */
.downloads-page main {
    padding-top: 140px; /* Extra breathing room */
}

/* Minimalist TOP Section (Text Only) */
.downloads-page .section-headline {
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 5rem;
    position: relative;
    backdrop-filter: none;
    box-shadow: none;
}

/* Redesigned TOP Box (Command Center) - REMOVED DECORATIONS */
.downloads-page .section-headline::before,
.downloads-page .section-headline::after {
    display: none;
}

.downloads-page .section-headline h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    color: white; /* Clean, solid white title */
}

.downloads-page .app-intro {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 1.5rem; /* Centered with margin auto */
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Minimalist BOTTOM Section (Text Only) */
.downloads-page .app-info {
    margin: 6rem 0;
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
    backdrop-filter: none;
    box-shadow: none;
}

/* Redesigned BOTTOM Box (Technical Datasheet) - REMOVED DECORATIONS */
.downloads-page .app-info::before,
.downloads-page .app-info::after {
    display: none;
}

.downloads-page .app-info h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: inline-block;
}

.downloads-page .app-info p {
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.downloads-page .app-info ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.downloads-page .app-info li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.downloads-page .app-info li::before {
    content: "→";
    color: var(--accent-blue);
    left: 0;
}

.downloads-page .app-info li:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 2.5rem;
}

@media (max-width: 768px) {
    .downloads-page .section-headline,
    .downloads-page .app-info {
        padding: 2.5rem 1.5rem;
    }
    
    .downloads-page .app-info::after {
        display: none;
    }
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 2rem 0;
}

.download-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.app-intro {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.feature-list {
    list-style: none;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.app-info {
    margin: 2rem 0 3rem;
    padding: 2.5rem;
    background: rgba(13, 17, 23, 0.3);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.app-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.app-info ul {
    list-style: none;
    margin-top: 1.5rem;
}

.app-info li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.app-info li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.download-notes {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-notes h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.download-notes ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.download-notes li {
    color: var(--text-muted);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.download-notes li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

.mega-download-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-download-btn.secondary .btn-text,
.mega-download-btn.secondary .btn-icon {
    color: white;
}

.mega-download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.wide {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    nav {
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .nav-links {
        display: none;
    }

    /* Downloads page responsive */
    .download-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-card {
        padding: 3rem 2rem;
    }

    .mega-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .secondary-downloads {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .app-info {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .app-info h2 {
        font-size: 1.7rem;
    }

    .app-info li {
        padding-left: 1.5rem;
    }
}

/* --- Wall of Love Marquee --- */
.marquee-wall {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    /* Edge Fade Masks */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-row {
    display: flex;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}

/* Row Direction Keyframes */
@keyframes scroll-ltr {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ltr .marquee-track {
    animation: scroll-ltr 50s linear infinite;
}

.rtl .marquee-track {
    animation: scroll-rtl 50s linear infinite;
}

/* Pause on hover for user focus */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

/* Search Engine Mockup Section */
.search-engine-mock {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 24px;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.engine-header {
    margin-bottom: 2.5rem;
}

.engine-search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.engine-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
}

.engine-query {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

.engine-controls {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.engine-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.engine-results {
    padding-left: 1rem;
}

.engine-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.result-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.bc-sep {
    margin: 0 0.25rem;
}

.result-link-title {
    display: block;
    font-size: 1.5rem;
    color: #8ab4f8; /* Google-style blue */
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-link-title:hover {
    text-decoration: underline;
}

.result-description {
    font-size: 0.95rem;
    color: #bdc1c6;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.result-sitelinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.sitelink-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sitelink-item {
    font-size: 0.9rem;
    color: #8ab4f8;
    text-decoration: none;
}

.sitelink-item:hover {
    text-decoration: underline;
}

.engine-download-callout {
    background: rgba(56, 139, 253, 0.05);
    border: 1px solid rgba(56, 139, 253, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
}

.callout-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.callout-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.engine-download-callout .mega-download-btn {
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(56, 139, 253, 0.3);
}

.engine-download-callout .mega-download-btn:hover {
    background: #4a9eff;
    transform: translateY(-3px) scale(1.02);
}

@media (max-width: 768px) {
    .search-engine-mock {
        padding: 1.5rem;
    }
    
    .engine-download-callout {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .result-sitelinks {
        grid-template-columns: 1fr;
    }
}


/* Glassmorphism Card Style - Matching Bento Cards */
.marquee-card {
    width: 380px;
    flex-shrink: 0;
    background: rgba(17, 19, 24, 0.3) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 28px !important;
    padding: 2.2rem !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.marquee-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(13, 17, 23, 0.6) !important;
    transform: translateY(-5px) !important;
}

.marquee-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    /* */
    margin-bottom: 1.5rem;
}

.marquee-card strong {
    color: white;
    font-family: 'Outfit', sans-serif;
    /* */
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .marquee-card {
        width: 300px;
        padding: 1.5rem !important;
    }
}

/* Footer Styles */
footer {
    position: relative;
    z-index: 100;
    background: transparent;
    color: var(--text-primary);
    margin-top: auto;
}

footer .container {
    display: flex;
    flex-direction: row; /* Default to side-aligned like home */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column-title {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copyright {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 4rem;
        width: 100%;
    }

    .footer-column {
        align-items: center;
    }
}

/* --- Blog Page Styles --- */
.blog-hero {
    padding: 120px 0 40px;
    text-align: center;
}

.category-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.category-pill {
    padding: 0.6rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-pill:hover, .category-pill.active {
    color: white;
    border-color: var(--accent-blue);
    background: rgba(56, 139, 253, 0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.blog-card {
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--border-bright);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Featured Layout: Full Width Horizontal */
.blog-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    height: 250px;
    overflow: hidden;
}

.blog-card.featured .blog-card-image {
    width: 55%;
    object-fit: cover;
    height: 100%;
    align-self: stretch;
    border-bottom: none;
    border-right: 1px solid var(--border);
}

.blog-card.featured .blog-card-content {
    width: 45%;
    padding: 1.5rem;
    justify-content: center;
}

.blog-card.featured .blog-card-title {
    font-size: 1.8rem;
}

.blog-card:not(.featured) .blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-tag {
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more svg {
    transition: transform 0.3s ease;
}

.read-more:hover svg {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    background: radial-gradient(circle at top right, rgba(56, 139, 253, 0.05), transparent 60%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 5rem 0;
}

.newsletter-container {
    padding: 80px 2rem;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-input {
    flex-grow: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 100px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.newsletter-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(56, 139, 253, 0.1);
}

.btn-submit {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #4da1ff;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .blog-card.featured {
        flex-direction: column;
        height: auto;
    }
    .blog-card.featured .blog-card-image, 
    .blog-card.featured .blog-card-content {
        width: 100%;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .btn-submit {
        padding: 1rem;
    }
}

/* --- Single Blog Post Template --- */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
    background: transparent;
}

#reading-progress {
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--accent-blue);
}

.post-article {
    padding-bottom: 5rem;
}

.post-hero {
    height: 60vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.post-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(2px);
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
    z-index: 5;
}

.post-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
}

.post-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.post-meta-large {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
}

.post-container {
    max-width: 850px;
    margin: -100px auto 0;
    position: relative;
    z-index: 20;
    background: rgba(7, 9, 13, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-bright);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.post-content h2 {
    font-size: 2.2rem;
    margin: 4rem 0 1.5rem;
    color: white;
    letter-spacing: -0.01em;
}

.post-content h3 {
    font-size: 1.6rem;
    margin: 3rem 0 1.25rem;
    color: white;
    border-left: 3px solid var(--accent-blue);
    padding-left: 1.25rem;
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content strong {
    color: white;
    font-weight: 600;
}

.post-content ul, .post-content ol {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 1rem;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 2rem 2.5rem;
    background: rgba(56, 139, 253, 0.05);
    margin: 4rem 0;
    font-style: italic;
    font-size: 1.35rem;
    color: white;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
}

.post-content blockquote::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-blue);
    opacity: 0.2;
    font-family: serif;
}

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin: 4rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: rgba(255,255,255,0.05);
    font-family: 'Outfit';
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-best { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
/* Admin Auth Overlay */
.auth-overlay {
    position: fixed; inset: 0; z-index: 20000;
    background: #08090c;
    display: flex; align-items: center; justify-content: center;
}

.auth-card {
    width: 400px; padding: 3rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    backdrop-filter: blur(40px);
    text-align: center;
}

.auth-label {
    display: block; text-align: left;
    margin-bottom: 0.5rem; font-size: 0.8rem;
    color: var(--text-dim); margin-top: 1.5rem;
}

.auth-input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 1rem;
    color: white; font-size: 1rem; outline: none;
}

.auth-input:focus { border-color: var(--accent-blue); }
.status-paid { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }

.author-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(56, 139, 253, 0.2);
}

.author-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.author-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .post-container {
        padding: 2rem 1.25rem;
        margin-top: -60px;
        border-radius: var(--radius-md);
    }
    
    .post-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .post-meta-large {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

/* ==========================================================================
   Obsidian Reader - 2026 Pure Glass & Battle Chart
   ========================================================================== */

.blog-post-page main {
    padding-top: 100px;
    background: transparent; /* Show the .bg-system */
}

.blog-layout-obsidian {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    padding: 0 2rem 100px;
    position: relative;
}

/* 1. Pure Glass TOC */
.toc-sidebar--glass {
    width: 280px;
    position: sticky;
    top: 120px;
    height: fit-content;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    align-self: flex-start;
}

.toc-link--glass {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.toc-link--glass:hover {
    color: white;
}

.toc-link--glass.active {
    color: var(--accent-blue);
    font-weight: 700;
}

/* 2. Glass Content Card */
.glass-content-card {
    flex: 1;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 5rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.post-content-obsidian {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.post-content-obsidian p {
    margin-bottom: 2.5rem;
}

.post-content-obsidian h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    color: white;
}

.post-content-obsidian h2 {
    font-size: 2.2rem;
    margin: 5rem 0 2rem;
    color: white;
}

/* Shared Blog Components for Dynamic Injection */
.battle-chart-container {
    margin: 4rem 0; padding: 2.5rem; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 139, 253, 0.2); border-radius: 32px;
}
.battle-chart-title { font-size: 1.5rem; color: white; margin-bottom: 2rem; text-align: center; }
.battle-chart { display: grid; gap: 1.5rem; }
.battle-row { display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 1.5rem; }
.battle-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.battle-bar-wrapper { height: 12px; background: rgba(255, 255, 255, 0.05); border-radius: 6px; overflow: hidden; }
.battle-bar { height: 100%; background: var(--accent-blue); border-radius: 6px; transition: width 1s ease-out; }
.battle-bar.winner { background: linear-gradient(to right, var(--accent-blue), var(--accent-secondary)); box-shadow: 0 0 15px var(--accent-blue); }
.battle-bar.legacy { background: rgba(255, 255, 255, 0.2); }
.battle-value { font-size: 0.85rem; font-weight: 700; color: white; text-align: right; }

/* Flexible Matrix Engine */
.comparison-matrix-wrapper { 
    margin: 4rem 0; 
    overflow-x: auto; 
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.comparison-matrix { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-matrix th, .comparison-matrix td { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); text-align: left; }
.comparison-matrix th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); background: rgba(255,255,255,0.02); }
.comparison-matrix tr:hover td { background: rgba(255,255,255,0.02); }

/* Color Utilities */
.text-blue { color: var(--accent-blue); }
.text-purple { color: #a855f7; }
.text-emerald { color: #10b981; }
.text-amber { color: #f59e0b; }
.text-bold { font-weight: 700; color: white; }

.check-icon { color: var(--accent-blue); font-weight: 900; }
.cross-icon { color: rgba(255, 255, 255, 0.2); }

/* Obsidian Render Surface */
.post-content-obsidian p { margin-bottom: 2.5rem; }
.post-content-obsidian h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 3rem; color: white; }
.post-content-obsidian h2 { font-size: 2.2rem; margin: 5rem 0 2rem; color: white; }
.post-content-obsidian h3 { font-size: 1.6rem; margin: 3rem 0 1.5rem; color: white; }
.post-content-obsidian ul, .post-content-obsidian ol { margin-bottom: 2.5rem; padding-left: 1.5rem; color: #cbd5e1; }
.post-content-obsidian li { margin-bottom: 1rem; }
.post-content-obsidian strong { color: white; }
.post-content-obsidian blockquote { border-left: 4px solid var(--accent-blue); padding: 2rem 2.5rem; background: rgba(56, 139, 253, 0.05); margin: 4rem 0; font-style: italic; border-radius: 0 16px 16px 0; }

.post-content-obsidian table {
    width: 100%;
    border-collapse: collapse;
    margin: 3.5rem 0;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.post-content-obsidian th, 
.post-content-obsidian td {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.post-content-obsidian th {
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-content-obsidian tr:last-child td {
    border-bottom: none;
}

.post-content-obsidian tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1100px) {
    .blog-layout-obsidian { flex-direction: column; gap: 2rem; }
    .toc-sidebar--glass { width: 100%; position: relative; top: 0; margin-bottom: 2rem; }
    .glass-content-card { padding: 2rem 1.25rem; border-radius: 24px; }
}

/* FAQ Section */
.faq-wrapper {
    max-width: 800px;
    margin-top: 4rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(56, 139, 253, 0.2);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--accent-blue);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 1rem;
    animation: faqSlideDown 0.4s ease-out;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .battle-row { grid-template-columns: 100px 1fr 40px; gap: 1rem; }
    .battle-label { font-size: 0.8rem; }
/* Post Component Standardization */
.post-discussion-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.post-discussion-section h3 {
    color: white;
    margin-bottom: 2rem;
}

/* Reply Items */
.post-replies-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* Gap handled by padding/borders */
    margin-bottom: 4rem;
}

.reply-item {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.reply-item:first-child {
    border-top: none;
    padding-top: 0.5rem;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.reply-author {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.reply-date {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.reply-body {
    color: #cbd5e1;
    line-height: 1.65;
    font-size: 1.05rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-blue);
}

.post-reply-form {
    background: rgba(255,255,255,0.015);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.post-reply-form h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.post-reply-form .btn-pill {
    align-self: flex-start;
}

.reply-textarea {
    height: 120px;
    resize: none;
    margin-bottom: 1.5rem;
}

.post-author-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.post-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px; /* Changed to softened square for common team logo style */
    background: rgba(255,255,255,0.05);
    object-fit: contain;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.post-author-info h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.post-author-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blog-layout-obsidian { padding: 0 0.75rem 50px; }
    .post-content-obsidian h1 { font-size: 2.2rem; margin-bottom: 2rem; }
    .post-content-obsidian h2 { font-size: 1.7rem; margin: 3rem 0 1.5rem; }
    .post-content-obsidian h3 { font-size: 1.3rem; margin: 2rem 0 1rem; }
    .post-content-obsidian p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    
    .post-container { padding: 2rem 1.5rem; margin-top: -60px; }
    .glass-content-card { padding: 1.5rem 1rem; margin-top: -60px; border-radius: 20px; }
    
    #post-cover {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 20px !important;
        margin-bottom: 1.5rem !important;
    }
    
    #post-date {
        margin-bottom: 1.5rem !important;
    }
    
    .post-discussion-section { margin-top: 3rem; padding-top: 2.5rem; }
    .post-reply-form { padding: 1.5rem; border-radius: 20px; }
    
    .post-author-footer { margin-top: 4rem; padding-top: 2.5rem; gap: 1.5rem; }
    .post-author-avatar { width: 60px; height: 60px; }
    .post-author-info h4 { font-size: 1.1rem; }
    .post-author-info p { font-size: 0.85rem; }
}
}

/* ==========================================================================
   The Hamax Nexus - Community & Anonymous Hub
   ========================================================================== */

.nexus-page main {
    padding-top: 100px;
    background: transparent;
}

.nexus-layout {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
    padding: 0 2rem 100px;
    position: relative;
}

/* 1. Anonymous Chat Rail */
.chat-rail {
    width: 350px;
    height: calc(100vh - 150px);
    position: sticky;
    top: 120px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
}

.msg-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.msg-user {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.msg-text {
    font-size: 0.9rem;
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 16px 16px 16px;
    line-height: 1.4;
}

.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    color-scheme: dark;
}

/* Custom Select Arrow */
select.chat-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.chat-input option {
    background-color: var(--bg-dark);
    color: white;
}

.chat-input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.06);
}

/* 2. Forum Content Area */
.forum-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.forum-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-header-actions h1 {
    font-size: 3rem;
    margin: 0;
}

/* 3. Monthly Pulse Grid */
.pulse-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.category-card.hot {
    border-color: rgba(56, 139, 253, 0.3);
}

.category-card.hot::after {
    content: 'MONTHLY FOCUS';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-blue);
    background: rgba(56, 139, 253, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 4. Glass Thread List */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.thread-row {
    background: rgba(13, 17, 23, 0.4);
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 120px 100px;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    text-decoration: none;
}

.thread-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.thread-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.thread-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.thread-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.thread-stats {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    text-align: center;
}

.stat-num { color: white; font-weight: 700; }
.stat-tag { color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; }

.status-pill {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.status-pill.active {
    background: rgba(56, 139, 253, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 139, 253, 0.3);
}

.status-pill.resolved {
    background: transparent;
    color: #10b981;
    border: 1.5px solid #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.status-pill.trending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 5. Respond Modal Mock */
.nexus-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nexus-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nexus-modal {
    width: 600px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3rem;
}

/* Responsive Nexus */
@media (max-width: 1100px) {
    .nexus-layout { flex-direction: column; }
    .chat-rail { width: 100%; height: 400px; position: relative; top: 0; }
}

@media (max-width: 768px) {
    .forum-header-actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .thread-row { grid-template-columns: 1fr; gap: 1rem; }
    .thread-stats { flex-direction: row; gap: 2rem; text-align: left; }
}

/* ==========================================================================
   Hamax Mission Control - Admin Dashboard
   ========================================================================== */

.admin-page {
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    height: 100vh;
    padding: 1rem;
    gap: 1.5rem;
}

/* 1. Glass Sidebar */
.admin-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 3rem 0; /* Remove horizontal padding here to allow full-bleed selected state */
    display: flex;
    flex-direction: column;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 4rem;
    padding-left: 3rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: none;
    box-shadow: none;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    border: none; /* Ensure no borders leak */
}

.admin-nav-link.active {
    color: white !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.admin-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
}

.admin-nav-link svg {
    opacity: 0.6;
}

.admin-nav-link.active svg {
    opacity: 1;
    color: var(--accent-blue);
}

/* 2. Main Workspace */
.admin-workspace {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.admin-tab {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.workspace-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.workspace-title p {
    color: var(--text-dim);
}

/* 3. Stat Grid */
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-pod {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.stat-pod::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56, 139, 253, 0.05), transparent);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
}

/* 4. Management Pods */
.mgmt-pod {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 2.5rem;
}

.mgmt-pod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mgmt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mgmt-row {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.mgmt-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Action Tags */
/* DELETED DUPLICATE STATUS PILLS */

.admin-action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.admin-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* CMS Form Overlay (Specific to Admin) */
.cms-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    margin-bottom: 1.5rem;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color-scheme: dark; /* Forces browser native popups to dark mode */
}

select.cms-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    cursor: pointer;
}

.cms-field option {
    background-color: #0f172a; /* Deep slate for readability */
    color: white;
    padding: 1rem;
}

.cms-field:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Sticky Words Section (Made For) --- */
.sticky-container {
    height: 300vh;
    /* 4 screens of scrolling for 4 words */
    position: relative;
    z-index: 1000; /* Align with global section depth */
    margin-top: 15vh; 
}

.sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.sticky-text-stack {
    position: relative;
    height: 1.4em; /* Increased to fit large font sizes + descenders */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-word {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1.2; /* Prevent cropping of descenders and period */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (Hamax 2026)
   ========================================================================== */

/* 1. Navigation Toggle & Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(2px, -2px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(2px, 2px); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3, 4, 6, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.mobile-nav-links li {
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: white;
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--accent-blue);
    letter-spacing: 0.05em;
}

.mobile-download-btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* 2. Media Queries */

/* Tablet & Smaller (1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 4rem; }
    
    .hero-primary { font-size: clamp(3rem, 8vw, 4rem); }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .card-tall { grid-row: span 2; }
    .card-left, .card-right { grid-column: auto; grid-row: auto; }
}

/* Mobile Large (768px) */
@media (max-width: 768px) {
    :root {
        --radius-lg: 24px;
        --radius-md: 16px;
    }

    .container { padding: 0 1.5rem; width: 100%; max-width: 100vw; }

    /* Nav Transform */
    .nav-links, .nav-wrapper .btn-pill { display: none; }
    .nav-toggle { display: flex; }
    
    .nav-wrapper nav, .nav-wrapper nav.scrolled {
        width: 100vw !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        padding: 0.75rem 1.5rem !important;
        left: 0 !important;
        transform: none !important;
    }

    /* Hero */
    .hero { height: auto; padding: 150px 0 60px; } /* Increased from 100px to avoid header collision */
    .hero-primary { font-size: 2.8rem; margin-top: 1.5rem; }
    .hero-main-media { max-width: 90%; }
    
    .btn-action-primary { 
        padding: 0.75rem 2rem; 
        font-size: 0.9rem; 
    }

    .hero-bg-rings { 
        transform: translateX(-50%) scale(0.65); 
        opacity: 0.5; 
        top: -40px; /* Moved UP from 100px as user requested */
    }

    /* Universal Orbit - Simplified Marquee for Mobile */
    .platform-orbit { 
        min-height: auto; 
        padding: 60px 0; 
        overflow: hidden;
    }
    .platform-orbit__perspective { 
        height: auto; 
        perspective: none; 
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    .platform-orbit__track { 
        position: relative;
        inset: auto;
        display: flex;
        gap: 1.5rem;
        padding: 1rem 0;
        width: max-content;
        animation: scroll-rtl 30s linear infinite;
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        /* Removed transform: none !important to allow marquee animation to work */
    }
    .platform-card { 
        position: relative !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        flex-direction: row;
        padding: 0.6rem 1.25rem;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        gap: 0.75rem;
        white-space: nowrap;
        transform: none !important;
    }
    .platform-card__icon img {
        width: 20px;
        height: 20px;
    }
    .platform-card__name {
        font-size: 0.85rem;
        opacity: 0.9;
    }
    .platform-orbit__center {
        position: relative;
        inset: auto;
        order: -1; /* Headline above the marquee */
    }
    .section-headline--orbit-center h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        max-width: 90vw;
        margin: 0 auto;
    }
    .section-headline--orbit-center p {
        font-size: 0.95rem;
        max-width: 80vw;
        margin: 0.5rem auto 0;
    }
    
    /* Bento Grid */
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .card-tall { grid-row: auto; }
    .bento-card { padding: 1.5rem; }

    /* Newsletter */
    .newsletter-container { padding: 60px 1.5rem; }
    
    /* Blog Grid */
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card.featured { flex-direction: column; height: auto; }
    .blog-card.featured .blog-card-image,
    .blog-card.featured .blog-card-content { width: 100%; }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }
    .footer-links { 
        justify-content: center; 
        gap: 3rem; 
        width: 100%;
    }
    .footer-column {
        align-items: center;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    html { scroll-padding-top: 80px; }
    
    .hero-primary { font-size: clamp(2rem, 10vw, 2.5rem) !important; }
    .hero-subtext { font-size: 1rem !important; }
    
    .action-pill { 
        flex-direction: column; 
        border-radius: 20px; 
        padding: 1rem; 
        width: 100%;
        max-width: 300px;
    }
    
    .btn-action-primary { width: 100%; text-align: center; }
    
    .section-headline h2 { font-size: 1.85rem; }
    .section-headline p { font-size: 0.95rem; }
    
    .sticky-word { font-size: clamp(1.8rem, 9vw, 4.5rem); }
    
    .mega-title { font-size: 1.85rem; }
    
    .download-meta { flex-direction: column; gap: 0.5rem; }
    .meta-separator { display: none; }

    /* Button stack */
    .hero-action-nest .action-pill {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem;
        background: none;
        border: none;
        backdrop-filter: none;
    }
    .hero-action-nest .action-link {
        order: 2;
        padding: 1rem;
        font-size: 0.95rem;
    }
    .hero-action-nest .btn-action-primary {
        order: 1;
        width: auto; /* Changed from 100% for a "smaller" feel */
        min-width: 200px;
        text-align: center;
        padding: 0.8rem 1.5rem; /* Smaller padding */
    }

    /* Fix Platform Orbit spacing */
    .platform-orbit {
        padding: 40px 0;
    }
    .section-headline--orbit-center {
        padding: 0 1rem;
    }

    /* Shrink the FREE badge to show more of 100% */
    .free-hero .free-badge {
        font-size: 0.8rem;
        padding: 0.35rem 1.5rem;
        bottom: -15px;
    }
}

/* 3. Animation Fixes for Mobile */
@media (max-width: 768px) {
    .sticky-container {
        height: 300vh;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (height: 100dvh) {
        .hero, .sticky-content { height: 100dvh; }
    }
}

/* --- Community Discussion UI Refinement --- */
.post-discussion-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.post-discussion-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: white;
}

.post-replies-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.reply-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.reply-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
    transform: translateX(5px);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.reply-author {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.reply-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.reply-body {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.post-reply-form {
    background: rgba(56, 139, 253, 0.02);
    border: 1px solid var(--accent-glow);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 5rem; /* Increased margin to prevent footer overlap */
    position: relative;
    z-index: 10;
}

.post-reply-form h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.reply-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

.reply-textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Fix for Post Author Footer Collision */
.post-author-footer {
    margin-top: 6rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 32px;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 5;
}

.post-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.post-author-info h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.post-author-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .post-author-footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .post-reply-form {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Modern Elegant Scrollbar Customization (Entire Site)
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(8, 9, 12, 0.5);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(8, 9, 12, 0.5);
    border-radius: 100px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 139, 253, 0.3); /* Accent blue hover */
    border-color: rgba(8, 9, 12, 0.3);
}

/* Firefox compatibility */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) rgba(8, 9, 12, 0.5);
}

