/* ==========================================================================
   DEEPRESEARCH — APPLE DESIGN SYSTEM (WWDC Fluid Motion & Apple.com Aesthetic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Apple Dark Palette (Onyx, Titanium, Graphite) */
    --apple-bg: #000000;
    /* Apple Dark Palette (Graphite & Liquid Glass) */
    --apple-bg: #08090f;
    --apple-surface: rgba(255, 255, 255, 0.04);
    --apple-surface-card: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    --apple-surface-elevated: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    --apple-nav-bg: rgba(8, 9, 15, 0.7);
    --apple-glass-card: rgba(255, 255, 255, 0.05);

    /* Apple Borders & Hairlines */
    --apple-hairline: rgba(255, 255, 255, 0.12);
    --apple-hairline-subtle: rgba(255, 255, 255, 0.07);
    --apple-hairline-bright: rgba(255, 255, 255, 0.26);

    /* Apple Text Hierarchy (SF Pro Optical Contrast) */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #86868b;
    --text-faint: #6e6e73;

    /* Apple Accent Spectral Colors */
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-blue-glow: rgba(0, 113, 227, 0.35);
    --apple-link-blue: #2997ff;
    
    --apple-green: #30d158;
    --apple-amber: #ff9f0a;
    --apple-red: #ff453a;
    --apple-purple: #bf5af2;
    --apple-indigo: #5e5ce6;
    --apple-cyan: #64d2ff;

    /* Apple Typography Stack */
    --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Inter", sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    /* Apple Geometry & Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-pill: 980px;

    /* Apple Liquid Glass Specular Edge Reflections & Shadows */
    --shadow-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-card: var(--shadow-specular), 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-elevated: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(99, 102, 241, 0.12);

    /* Apple Spring Physics Timing */
    --spring-snappy: cubic-bezier(0.16, 1, 0.3, 1);
    --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-apple: all 0.24s var(--spring-snappy);
}

:root.light-mode {
    --apple-bg: #ffffff;
    --apple-surface: #f5f5f7;
    --apple-surface-card: #ffffff;
    --apple-surface-elevated: #e8e8ed;
    --apple-nav-bg: rgba(255, 255, 255, 0.8);
    --apple-glass-card: rgba(255, 255, 255, 0.85);

    --apple-hairline: rgba(0, 0, 0, 0.08);
    --apple-hairline-subtle: rgba(0, 0, 0, 0.04);
    --apple-hairline-bright: rgba(0, 0, 0, 0.14);

    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    --text-faint: #a1a1a6;

    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-blue-glow: rgba(0, 113, 227, 0.18);
    --apple-link-blue: #06c;

    --shadow-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   RESET & SYSTEM BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #08090f;
}

body {
    background: #08090f;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-apple);
    line-height: 1.5;
    overflow-x: hidden;
    letter-spacing: -0.012em;
    position: relative;
    min-height: 100vh;
}

/* Ambient atmospheric backdrop */
body::before {
    content: "";
    position: fixed;
    inset: -10%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 75% 45% at 50% -10%, rgba(99, 102, 241, 0.24), transparent 70%),
        radial-gradient(ellipse 50% 35% at 85% 15%, rgba(59, 130, 246, 0.2), transparent 70%),
        radial-gradient(ellipse 50% 35% at 15% 20%, rgba(147, 51, 234, 0.18), transparent 70%),
        radial-gradient(60% 45% at 50% -5%, rgba(99, 102, 241, 0.2), transparent 75%),
        radial-gradient(40% 35% at 10% 25%, rgba(168, 85, 247, 0.15), transparent 70%),
        radial-gradient(45% 35% at 90% 20%, rgba(59, 130, 246, 0.18), transparent 70%);
    background-size: 130% 130%, 145% 145%, 130% 130%, 150% 150%, 140% 140%, 150% 150%;
    background-position: 0% 0%, 100% 25%, 0% 100%, 100% 0%, 0% 60%, 100% 100%;
    background-repeat: no-repeat;
    filter: blur(50px);
    animation:
        ambientDrift 14s ease-in-out infinite alternate,
        ambientBreath 3.2s ease-in-out infinite alternate;
}

/* Subtle, refined hairline grid */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(75% 60% at 50% 25%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(75% 60% at 50% 25%, #000 0%, transparent 100%);
}

@keyframes ambientDrift {
    0% {
        background-position: 0% 0%, 100% 25%, 0% 100%, 100% 0%, 0% 60%, 100% 100%;
        transform: translate3d(-2%, -1%, 0) scale(0.94);
    }
    50% {
        background-position: 50% 100%, 0% 55%, 100% 15%, 0% 85%, 100% 25%, 0% 30%;
        transform: translate3d(2%, 1%, 0) scale(1.12);
    }
    100% {
        background-position: 100% 0%, 0% 100%, 100% 70%, 0% 0%, 100% 100%, 0% 0%;
        transform: translate3d(-1%, 2%, 0) scale(1.04);
    }
}

@keyframes ambientBreath {
    from { opacity: 0.42; }
    to { opacity: 1; }
}

:root.light-mode html {
    background-color: #f8fafc;
}

:root.light-mode body {
    background: #f8fafc;
}

:root.light-mode body::before {
    background:
        radial-gradient(ellipse 75% 45% at 50% -10%, rgba(99, 102, 241, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 35% at 85% 15%, rgba(59, 130, 246, 0.06), transparent 70%),
        radial-gradient(ellipse 50% 35% at 15% 20%, rgba(147, 51, 234, 0.06), transparent 70%),
        radial-gradient(60% 45% at 50% -5%, rgba(99, 102, 241, 0.08), transparent 75%),
        radial-gradient(40% 35% at 10% 25%, rgba(168, 85, 247, 0.05), transparent 70%),
        radial-gradient(45% 35% at 90% 20%, rgba(59, 130, 246, 0.06), transparent 70%);
    background-size: 130% 130%, 145% 145%, 130% 130%, 150% 150%, 140% 140%, 150% 150%;
    background-repeat: no-repeat;
}

:root.light-mode body::after {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

.landing-header,
main,
footer {
    position: relative;
    z-index: 1;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--apple-blue);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-xs);
    font-size: 12px;
    z-index: 1000;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.container {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5.5rem 0;
    position: relative;
    background: transparent;
}

.section-alt {
    background: transparent;
}

/* Apple Section Headers */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem auto;
}

.section-eyebrow, .section-tag {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--apple-link-blue);
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.55;
    font-weight: 400;
}

/* ==========================================================================
   APPLE GLOBAL NAVIGATION BAR (Spacious & Clean Layout)
   ========================================================================== */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    z-index: 999;
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-header.scrolled {
    background: rgba(8, 9, 15, 0.75) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

:root.light-mode .landing-header.scrolled {
    background: rgba(248, 250, 252, 0.85) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.header-container {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    justify-self: start;
}

.brand-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.brand-text-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--apple-link-blue);
    background: rgba(0, 113, 227, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
    justify-self: stretch;
    min-width: 0;
}

.nav-link {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.15s ease;
    padding: 4px 2px;
}
.nav-link:hover {
    color: #ffffff;
}
:root.light-mode .nav-link:hover {
    color: #000000;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Apple GitHub Button */
.btn-gh-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-apple);
}
.btn-gh-stars:hover {
    background: rgba(255, 255, 255, 0.15);
}
:root.light-mode .btn-gh-stars {
    background: rgba(0, 0, 0, 0.06);
}
:root.light-mode .btn-gh-stars:hover {
    background: rgba(0, 0, 0, 0.1);
}

.gh-star-count-badge {
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Theme Toggle Button */
.btn-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition-apple);
}
.btn-theme:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}
:root.light-mode .btn-theme {
    background: rgba(0, 0, 0, 0.04);
}
:root.light-mode .btn-theme:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Apple Primary Pill Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 6px 16px;
    background: var(--apple-blue);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.84rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: var(--transition-apple);
}
.btn-primary:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 4px 14px;
    background: transparent;
    color: var(--apple-link-blue);
    font-weight: 400;
    font-size: 0.88rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: var(--transition-apple);
}
.btn-secondary:hover {
    text-decoration: underline;
}

.btn-lg {
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
}

.mobile-nav-toggle {
    display: none;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

/* ==========================================================================
   1. HERO SECTION (APPLE PRO)
   ========================================================================== */

.hero-section {
    padding-top: 120px;
    padding-bottom: 5.5rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: var(--apple-link-blue);
    letter-spacing: -0.015em;
    margin-bottom: 0.85rem;
    display: block;
}
:root.light-mode .hero-eyebrow {
    color: var(--apple-blue);
}

.hero-title {
    font-size: clamp(2.8rem, 5.8vw, 4.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.4rem;
}

.text-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
:root.light-mode .text-gradient {
    background: linear-gradient(180deg, #1d1d1f 0%, #515154 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 680px;
    margin: 0 auto 2.25rem auto;
    font-weight: 400;
}

.hero-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--apple-hairline-subtle);
    max-width: 780px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}
.trust-item svg {
    color: var(--apple-green);
    flex-shrink: 0;
}

/* ==========================================================================
   2. REAL OUTPUT SHOWCASE (MACOS WINDOW FRAME)
   ========================================================================== */

.hero-visual-wrapper {
    margin-top: 4rem;
    position: relative;
}

.example-banner-header {
    background: var(--apple-surface-card);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.6rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: left;
    box-shadow: var(--shadow-card);
}

.example-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--apple-link-blue);
    margin-bottom: 2px;
}

.example-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.example-metrics-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--apple-surface-elevated);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.metric-chip.highlight {
    background: rgba(0, 113, 227, 0.15);
    color: var(--apple-link-blue);
}
.metric-num {
    font-weight: 700;
    color: var(--text-primary);
}
.metric-chip.highlight .metric-num {
    color: var(--apple-link-blue);
}

/* ==========================================================================
   2b. EXAMPLE SELECTOR CARDS
   ========================================================================== */
.example-select-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.example-select-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    text-align: left;
    padding: 0.85rem 1.1rem;
    background: var(--apple-surface-card);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.example-select-card:hover {
    border-color: var(--apple-link-blue);
}

.example-select-card.active {
    border-color: var(--apple-link-blue);
    background: rgba(0, 113, 227, 0.08);
}

.example-select-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.example-select-link {
    font-size: 0.76rem;
    color: var(--apple-link-blue);
}

.paper-mock-citations {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--apple-hairline-subtle);
}

.paper-mock-citations-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.paper-mock-citations ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.run-example-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

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

/* macOS Studio Window */
.workflow-inspector-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 40px rgba(99, 102, 241, 0.12);
    overflow: hidden;
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
}

.inspector-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--apple-surface);
    border-bottom: 1px solid var(--apple-hairline-subtle);
    flex-wrap: wrap;
    gap: 0.85rem;
}

.inspector-window-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}
.win-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.win-dot.red { background: #ff5f56; }
.win-dot.yellow { background: #ffbd2e; }
.win-dot.green { background: #27c93f; }

/* Apple Segmented Tab Switcher */
.inspector-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--apple-surface-elevated);
    padding: 3px;
    border-radius: var(--radius-pill);
}

.inspector-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: var(--transition-apple);
}
.inspector-tab-btn:hover {
    color: var(--text-primary);
}
.inspector-tab-btn.active {
    background: var(--apple-surface-card);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
:root.light-mode .inspector-tab-btn.active {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inspector-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.22rem 0.65rem;
    background: rgba(48, 209, 88, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--apple-green);
    white-space: nowrap;
}
.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--apple-green);
    box-shadow: 0 0 8px var(--apple-green);
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

.inspector-content-panel {
    padding: 1.5rem 1.75rem;
    min-height: 360px;
    max-height: 560px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s var(--spring-snappy);
}
.tab-pane.active {
    display: block;
}

/* Paper Mockup */
.paper-mockup-sheet {
    background: var(--apple-surface);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
    box-shadow: var(--shadow-card);
}

.paper-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--apple-hairline-subtle);
}

.paper-mock-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.paper-mock-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.paper-export-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export-mock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--apple-surface-elevated);
    border-radius: var(--radius-pill);
    transition: var(--transition-apple);
}
.btn-export-mock:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--apple-link-blue);
}

.paper-mock-abstract {
    background: var(--apple-surface-elevated);
    border-left: 3px solid var(--apple-blue);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    color: var(--text-secondary);
}

.paper-mock-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.citation-pill {
    color: var(--apple-link-blue);
    font-weight: 600;
    background: rgba(0, 113, 227, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-apple);
}
.citation-pill:hover {
    background: var(--apple-blue);
    color: #fff;
}

/* PRISMA Diagram */
.prisma-diagram-preview {
    background: var(--apple-surface);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    max-width: 780px;
    margin: 0 auto;
}

.prisma-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.prisma-box {
    flex: 1;
    background: var(--apple-surface-elevated);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1.2rem;
    text-align: left;
}

.prisma-box-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--apple-link-blue);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prisma-box-stat {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.prisma-box-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.prisma-box-excluded {
    background: rgba(255, 69, 58, 0.08);
    border-color: rgba(255, 69, 58, 0.2);
}
.prisma-box-excluded .prisma-box-title {
    color: var(--apple-red);
}

/* Evidence Matrix Table */
.table-preview-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--apple-hairline);
}

.evidence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
}
.evidence-table th {
    background: var(--apple-surface-elevated);
    padding: 0.85rem 1.15rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--apple-hairline);
}
.evidence-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--apple-hairline-subtle);
    color: var(--text-secondary);
}
.evidence-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.evidence-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(48, 209, 88, 0.12);
    color: var(--apple-green);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.74rem;
}

/* Flow Nodes */
.execution-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.flow-node-card {
    background: var(--apple-surface-elevated);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: left;
    transition: var(--transition-apple);
}
.flow-node-card:hover {
    border-color: var(--apple-hairline-bright);
    transform: translateY(-2px);
}

.flow-node-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}
.flow-node-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 227, 0.15);
    color: var(--apple-link-blue);
    font-size: 0.75rem;
    font-weight: 700;
}
.flow-node-icon.checkpoint {
    background: rgba(255, 159, 10, 0.15);
    color: var(--apple-amber);
}
.flow-node-title {
    font-size: 0.86rem;
    font-weight: 600;
}
.flow-node-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   3. WHY DEEPRESEARCH (APPLE CONTRAST BENTO)
   ========================================================================== */

.comparison-dual-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    max-width: 980px;
    margin: 0 auto;
}

.comparison-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    text-align: left;
    transition: var(--transition-apple);
}

.comparison-card.traditional-ai {
    border-color: rgba(255, 69, 58, 0.25);
}

.comparison-card.deepresearch-ai {
    border-color: rgba(0, 113, 227, 0.4);
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(0, 113, 227, 0.2), 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 113, 227, 0.15);
}

.comp-card-header {
    margin-bottom: 1.75rem;
}
.comp-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    margin-bottom: 0.6rem;
}
.comp-badge.bad {
    background: rgba(255, 69, 58, 0.12);
    color: var(--apple-red);
}
.comp-badge.good {
    background: rgba(0, 113, 227, 0.15);
    color: var(--apple-link-blue);
}

.comp-title {
    font-size: 1.45rem;
    font-weight: 700;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.traditional-ai .comp-list li svg {
    color: var(--apple-red);
    flex-shrink: 0;
    margin-top: 2px;
}
.deepresearch-ai .comp-list li svg {
    color: var(--apple-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   4. CORE CAPABILITIES (APPLE 6-GRID LIQUID GLASS)
   ========================================================================== */

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

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    text-align: left;
    transition: var(--transition-apple);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14), transparent 40%), linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-4px);
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(99, 102, 241, 0.12);
}

.feature-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(0, 113, 227, 0.12);
    color: var(--apple-link-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.feature-icon-wrapper.indigo {
    background: rgba(94, 92, 230, 0.12);
    color: var(--apple-indigo);
}
.feature-icon-wrapper.emerald {
    background: rgba(48, 209, 88, 0.12);
    color: var(--apple-green);
}
.feature-icon-wrapper.amber {
    background: rgba(255, 159, 10, 0.12);
    color: var(--apple-amber);
}

.feature-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   5. HUMAN-IN-THE-LOOP SECTION
   ========================================================================== */

.hitl-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: center;
    text-align: left;
}

.hitl-text-pane h2 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}
.hitl-text-pane p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.checkpoints-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cp-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--apple-surface-card);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-apple);
}
.cp-timeline-item:hover {
    border-color: var(--apple-amber);
    transform: translateX(4px);
}

.cp-icon-ring {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 159, 10, 0.15);
    color: var(--apple-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 700;
    font-size: 0.85rem;
}

.cp-item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.cp-item-content p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   6. TWO WAYS TO RESEARCH (APPLE TIER COMPARISON)
   ========================================================================== */

.modes-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 980px;
    margin: 0 auto;
}

.mode-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    text-align: left;
    position: relative;
    transition: var(--transition-apple);
    overflow: visible;
}
.mode-card:hover {
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14), transparent 40%), linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-4px);
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(99, 102, 241, 0.12);
}

.mode-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(0, 113, 227, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(0, 113, 227, 0.45);
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(0, 113, 227, 0.25), 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 113, 227, 0.2);
}

.mode-badge-top {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--apple-blue);
    color: #ffffff;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    z-index: 5;
    white-space: nowrap;
}

.mode-header {
    margin-bottom: 1.75rem;
}
.mode-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.mode-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mode-specs-list {
    list-style: none;
    margin-bottom: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.mode-spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.mode-spec-item svg {
    color: var(--apple-link-blue);
    flex-shrink: 0;
}

/* ==========================================================================
   7. TECHNICAL ARCHITECTURE & OPEN SOURCE
   ========================================================================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.tech-item-card {
    background: var(--apple-surface-card);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: var(--transition-apple);
}
.tech-item-card:hover {
    border-color: var(--apple-hairline-bright);
}

.tech-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--apple-link-blue);
    margin-bottom: 0.35rem;
}
.tech-item-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.github-open-source-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.gh-banner-left h3 {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}
.gh-banner-left p {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ==========================================================================
   8. FINAL CONVERSION CTA (LIQUID GLASS)
   ========================================================================== */

.cta-section {
    padding: 5.5rem 0;
    text-align: center;
    background: transparent;
}

.cta-box-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(0, 113, 227, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid rgba(0, 113, 227, 0.45);
    border-radius: var(--radius-xl);
    padding: 4.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(0, 113, 227, 0.25), 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 113, 227, 0.2);
}

.cta-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}
.cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.25rem auto;
}

/* ==========================================================================
   APPLE FOOTER DIRECTORY (SEAMLESS AURA)
   ========================================================================== */

.landing-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 0 2rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand-col p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0.85rem 0 1rem 0;
    max-width: 320px;
}

.footer-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.f-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 7px;
    background: var(--apple-surface-elevated);
    border-radius: 4px;
    color: var(--text-secondary);
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a, .footer-links span {
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--apple-hairline-subtle);
    color: var(--text-faint);
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ==========================================================================
   APPLE SMOOTH SCROLL REVEAL & SPECULAR LIGHTING
   ========================================================================== */

.apple-scroll-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    transition: opacity 0.75s var(--spring-snappy), transform 0.75s var(--spring-snappy);
    will-change: opacity, transform;
}

.apple-scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* Interactive Specular Radial Follower */
.card-specular-glow {
    position: relative;
    overflow: hidden;
}
.mode-card.featured.card-specular-glow {
    overflow: visible;
}
.card-specular-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.07), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}
.card-specular-glow:hover::after {
    opacity: 1;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
    .apple-scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 960px) {
    .header-container { display: flex; justify-content: space-between; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.25rem;
        padding: 0.5rem;
        border: 1px solid var(--apple-hairline);
        border-radius: var(--radius-md);
        background: rgba(13, 15, 25, 0.97);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
    }
    .nav-menu.mobile-open { display: flex; }
    :root.light-mode .nav-menu { background: rgba(255, 255, 255, 0.97); }
    .nav-link { padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); }
    .nav-link:hover { background: rgba(255, 255, 255, 0.07); }
    :root.light-mode .nav-link:hover { background: rgba(0, 0, 0, 0.05); }
    .nav-actions { gap: 0.5rem; }
    .nav-actions > .btn-gh-stars,
    .nav-actions > .btn-primary { display: none; }
    .nav-link:focus-visible { outline: 2px solid var(--apple-link-blue); outline-offset: 2px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .prisma-step-row { flex-direction: column; gap: 0.75rem; }
}

@media (min-width: 400px) and (max-width: 960px) {
    .nav-actions > .btn-gh-stars { display: inline-flex; }
}

@media (max-width: 640px) {
    .section { padding: 2.75rem 0; }
    .hero-section { padding-top: 75px; padding-bottom: 2.5rem; }
    .hero-title { font-size: 1.95rem; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.65rem; }
    .hero-subtitle { font-size: 0.92rem; line-height: 1.45; margin-bottom: 1.25rem; }
    .hero-cta-group { flex-direction: column; width: 100%; gap: 0.5rem; }
    .hero-cta-group .btn-primary, .hero-cta-group .btn-secondary { width: 100%; justify-content: center; }
    .hero-trust-bar { gap: 0.5rem; font-size: 0.75rem; }

    .modes-comparison-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    
    /* Sleek Mockup Preview on Mobile (No text overload) */
    .inspector-window { border-radius: 12px; }
    .inspector-header-bar { flex-direction: column; align-items: stretch; padding: 0.5rem 0.75rem; gap: 0.35rem; }
    .inspector-tabs { overflow-x: auto; width: 100%; scrollbar-width: none; gap: 0.25rem; }
    .inspector-tabs::-webkit-scrollbar { display: none; }
    .inspector-tab-btn { font-size: 0.72rem; padding: 3px 8px; white-space: nowrap; }
    .inspector-status-badge { font-size: 0.68rem; padding: 2px 6px; align-self: flex-start; }
    
    .inspector-content-panel { padding: 0.85rem 0.75rem; min-height: 0; max-height: 62vh; }
    .paper-mockup-sheet { padding: 0.85rem 0.75rem; }
    .paper-mock-title { font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.35rem; }
    .paper-mock-meta { font-size: 0.7rem; line-height: 1.35; margin-bottom: 0.5rem; }
    .paper-mock-abstract { font-size: 0.75rem; line-height: 1.4; padding: 0.45rem 0.6rem; margin-bottom: 0.35rem; }
    .paper-mock-body { display: none; /* Hide heavy body prose on mobile */ }
    
    /* Clean Mobile Section Headers & Cards */
    .section-header { margin-bottom: 1.5rem; }
    .section-title { font-size: 1.6rem; line-height: 1.2; margin-bottom: 0.4rem; }
    .section-desc { font-size: 0.9rem; line-height: 1.45; }
    .section-eyebrow, .section-tag { font-size: 0.75rem; margin-bottom: 0.3rem; }
    
    .comparison-grid { grid-template-columns: 1fr; gap: 1rem; }
    .comparison-card { padding: 1.1rem 0.85rem; border-radius: 12px; }
    .comp-title { font-size: 1.05rem; }
    .comp-list li { font-size: 0.8rem; line-height: 1.35; }
    
    .capabilities-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .capability-card { padding: 1rem 0.85rem; border-radius: 12px; }
    .cap-title { font-size: 0.98rem; }
    .cap-desc { font-size: 0.8rem; line-height: 1.4; }
    
    .hitl-steps-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .hitl-step-card { padding: 1rem 0.85rem; border-radius: 12px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .github-open-source-banner { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1.25rem 1rem; }
}
