/* Homepage (index.html) styles. Tokens, reset, and base imports come
   from /assets/css/. This file holds everything that is unique to the
   homepage: hero, merkle canvas, nav drawer, thesis cards, why-now,
   moat grid, markets, inquiry homepage section, and more. */
/* Homepage overrides on top of base.css: larger body type and white
   color. Text is intentionally center-aligned here only (marketing /
   hero framing). All other site pages use left-aligned editorial columns
   via their own stylesheets. */
body {
    color: var(--white);
    font-size: 20px;
    text-align: center;
    overflow-x: hidden;
}

        /* Merkle Tree Canvas: subtle on mobile; pointer-events off so touches pass through */
        #merkle-tree {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            -webkit-touch-callout: none;
        }

        @media (max-width: 767px) {
            #merkle-tree {
                opacity: 0.38;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            #merkle-tree {
                opacity: 0.22;
            }
        }

        /* Hero: content-sized with generous top/bottom padding; flex spacers collapse when content fits */
        #hero {
            min-height: auto;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            text-align: center;
            position: relative;
            z-index: 0;
            /* Do not clip horizontally: long headlines + letter-spacing overflow before wrap on iOS Safari */
            overflow-x: visible;
            overflow-y: visible;
            -webkit-overflow-scrolling: touch;
            padding-top: max(env(safe-area-inset-top), clamp(120px, 18vh, 220px));
            padding-right: max(env(safe-area-inset-right), clamp(1rem, 4vw, 1.5rem));
            padding-bottom: max(env(safe-area-inset-bottom), clamp(60px, 10vh, 120px));
            padding-left: max(env(safe-area-inset-left), clamp(1rem, 4vw, 1.5rem));
            box-sizing: border-box;
        }

        .hero-flex-spacer {
            flex: 1 1 0;
            min-height: 0;
            width: 100%;
            min-width: 0;
            pointer-events: none;
        }

        .hero-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            width: 100%;
            max-width: min(1100px, 100%);
            min-width: 0;
            margin: 0 auto;
            gap: clamp(60px, 8vh, 120px);
            position: relative;
            z-index: 1;
        }

        .hero-identity {
            text-align: center;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            padding: 0 clamp(0.25rem, 2vw, 0.5rem);
            box-sizing: border-box;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-sans);
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        p, li, td, span {
            font-family: var(--font-sans);
        }

        code, pre, kbd, samp, .hero-json-pre, .hero-json-wrap {
            font-family: var(--font-mono);
            font-weight: 400;
        }

        nav, button, .hero-cta-primary, .hero-cta-secondary, .cta-button {
            font-family: var(--font-sans);
            font-weight: 500;
            letter-spacing: 0.03em;
        }

        .hero-brand, h1.hero-brand {
            font-family: var(--font-sans);
            font-size: clamp(2.25rem, 5vw, 4.5rem);
            font-weight: 700;
            color: var(--white);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            line-height: 1.15;
            margin: 0 auto;
            padding: 0;
            max-width: 100%;
            text-align: center;
            text-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
            white-space: normal;
            overflow-wrap: anywhere;
            word-wrap: break-word;
            word-break: break-word;
            hyphens: none;
        }

        .hero-subtitle {
            font-family: var(--font-mono);
            font-size: clamp(0.9rem, 1.8vw, 1.35rem);
            font-weight: 400;
            font-style: italic;
            letter-spacing: 0.05em;
            color: #ff9500;
            line-height: 1.35;
            margin: 24px auto 0;
            max-width: 100%;
            text-align: center;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        /* Tablet / narrow desktop: base 2.25rem…4.5rem is too large between ~770–960px */
        @media (max-width: 960px) {
            .hero-brand, h1.hero-brand {
                font-size: clamp(1rem, calc(0.28rem + 2.5vw), 2.05rem);
                letter-spacing: 0.05em;
                line-height: 1.18;
            }

            .hero-subtitle {
                font-size: clamp(0.82rem, calc(0.1rem + 1.55vw), 1.12rem);
            }
        }

        @media (min-width: 961px) {
            .hero-brand, h1.hero-brand {
                white-space: nowrap;
            }
        }

        .hero-cta {
            margin-top: 40px;
        }

        .hero-cta-button {
            display: inline-block;
            background: var(--amber);
            color: var(--black);
            padding: 16px 48px;
            font-size: 18px;
            font-weight: 600;
            border-radius: 8px;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background 0.3s ease;
            min-height: 44px;
        }

        .hero-cta-button:hover,
        .hero-cta-button:focus {
            background: #FFA733;
            outline: none;
        }

        .hero-cta-button:focus-visible {
            outline: 2px solid var(--amber);
            outline-offset: 4px;
        }

        .hero-cta-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            margin-top: 40px;
            width: 100%;
            max-width: 520px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 16px;
        }

        @media (min-width: 520px) {
            .hero-cta-row {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        .hero-cta-button--outline {
            background: transparent;
            color: var(--amber);
            border: 2px solid var(--amber);
        }

        .hero-cta-button--outline:hover,
        .hero-cta-button--outline:focus {
            background: var(--amber-glow);
            color: var(--amber);
        }

        .patent-chip {
            display: inline-block;
            font-family: var(--font-mono);
            font-size: 0.4em;
            color: #666;
            border: 1px solid #333;
            padding: 4px 8px;
            letter-spacing: 0.08em;
            vertical-align: middle;
            margin-left: 8px;
            white-space: nowrap;
        }

        .hero-demo-wrap {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }

        .hero-demo-wrap:hover .hero-demo-cycle,
        .hero-demo-wrap:hover .hero-demo-cycle *,
        .hero-demo-wrap:hover .hero-scenario-dots span {
            animation-play-state: paused !important;
        }

        .hero-scenario-canvas {
            position: relative;
            width: 100%;
            max-width: 800px;
            min-height: 240px;
            margin: 0 auto;
            margin-bottom: clamp(60px, 8vh, 100px);
            border: none;
            border-radius: 0;
            background: transparent;
        }

        .hero-demo-cycle {
            position: relative;
            min-height: 240px;
        }

        .hero-frame {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            width: 100%;
            min-height: 240px;
            padding: 16px 18px 16px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            text-align: center;
            animation-duration: 30s;
            animation-iteration-count: infinite;
            animation-timing-function: linear;
        }

        .hero-frame-title {
            font-size: clamp(1rem, 2.4vw, 1.25rem);
            font-weight: 600;
            color: var(--white);
            max-width: 42ch;
            line-height: 1.35;
            margin-bottom: 8px;
        }

        .hero-frame-sub {
            font-size: clamp(0.85rem, 2vw, 1rem);
            color: #888;
            max-width: 40ch;
            line-height: 1.4;
            margin-bottom: 12px;
        }

        .hero-json-wrap {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        .hero-json-pre {
            text-align: left;
            font-size: 0.72rem;
            color: var(--white);
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 14px 12px;
            max-width: min(100%, 42em);
            margin: 0;
            white-space: pre-wrap;
            word-break: break-word;
            line-height: 1.45;
            tab-size: 2;
        }

        .hero-outcome-main {
            font-size: clamp(1rem, 2.4vw, 1.2rem);
            font-weight: 600;
            color: var(--white);
            max-width: 38ch;
            line-height: 1.35;
        }

        .hero-outcome-sub {
            font-size: clamp(0.8rem, 1.9vw, 0.95rem);
            color: #aaa;
            max-width: 40ch;
            margin-top: 8px;
            line-height: 1.4;
        }

        /* Carousel: 30s cycle, 3 scenarios × (3s problem + 4s receipt + 3s outcome).
           Each frame fades in over 0.5s and out over 0.5s for smooth cross-fade.
           Scenario boundaries: S1 0-10s (0-33.33%), S2 10-20s (33.33-66.67%), S3 20-30s (66.67-100%). */
        @keyframes hf_s1p {
            0%            { opacity: 0; }
            1.67%         { opacity: 1; }   /* 0.5s in */
            9.17%         { opacity: 1; }   /* hold to 2.75s */
            10%           { opacity: 0; }   /* 0.25s out before receipt */
            10.01%, 100%  { opacity: 0; }
        }
        @keyframes hf_s1r {
            0%, 9.5%      { opacity: 0; }
            11.17%        { opacity: 1; }   /* 0.5s in at 3s */
            22.5%         { opacity: 1; }   /* hold */
            23.33%        { opacity: 0; }
            23.34%, 100%  { opacity: 0; }
        }
        @keyframes hf_s1o {
            0%, 22.83%    { opacity: 0; }
            24.5%         { opacity: 1; }   /* 0.5s in at 7s */
            31.83%        { opacity: 1; }   /* hold */
            33.33%        { opacity: 0; }
            33.34%, 100%  { opacity: 0; }
        }
        @keyframes hf_s2p {
            0%, 33.33%    { opacity: 0; }
            35%           { opacity: 1; }
            42.5%         { opacity: 1; }
            43.33%        { opacity: 0; }
            43.34%, 100%  { opacity: 0; }
        }
        @keyframes hf_s2r {
            0%, 42.83%    { opacity: 0; }
            44.5%         { opacity: 1; }
            55.83%        { opacity: 1; }
            56.67%        { opacity: 0; }
            56.68%, 100%  { opacity: 0; }
        }
        @keyframes hf_s2o {
            0%, 56.17%    { opacity: 0; }
            57.83%        { opacity: 1; }
            65.17%        { opacity: 1; }
            66.67%        { opacity: 0; }
            66.68%, 100%  { opacity: 0; }
        }
        @keyframes hf_s3p {
            0%, 66.67%    { opacity: 0; }
            68.33%        { opacity: 1; }
            75.83%        { opacity: 1; }
            76.67%        { opacity: 0; }
            76.68%, 100%  { opacity: 0; }
        }
        @keyframes hf_s3r {
            0%, 76.17%    { opacity: 0; }
            77.83%        { opacity: 1; }
            89.17%        { opacity: 1; }
            90%           { opacity: 0; }
            90.01%, 100%  { opacity: 0; }
        }
        @keyframes hf_s3o {
            0%, 89.5%     { opacity: 0; }
            91.17%        { opacity: 1; }
            98.33%        { opacity: 1; }
            100%          { opacity: 0; }
        }

        .hero-frame--s1p { animation-name: hf_s1p; }
        .hero-frame--s1r { animation-name: hf_s1r; }
        .hero-frame--s1o { animation-name: hf_s1o; }
        .hero-frame--s2p { animation-name: hf_s2p; }
        .hero-frame--s2r { animation-name: hf_s2r; }
        .hero-frame--s2o { animation-name: hf_s2o; }
        .hero-frame--s3p { animation-name: hf_s3p; }
        .hero-frame--s3r { animation-name: hf_s3r; }
        .hero-frame--s3o { animation-name: hf_s3o; }

        .hero-scenario-dots {
            display: flex;
            justify-content: center;
            gap: 10px;
            padding: 10px 0 4px;
        }

        .hero-scenario-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.18);
            animation-duration: 30s;
            animation-iteration-count: infinite;
            animation-timing-function: step-end;
        }

        @keyframes dot1 {
            0%, 33.32%   { background: var(--amber); box-shadow: 0 0 8px rgba(255, 149, 0, 0.5); }
            33.33%, 100% { background: rgba(255,255,255,0.18); box-shadow: none; }
        }
        @keyframes dot2 {
            0%, 33.32%   { background: rgba(255,255,255,0.18); box-shadow: none; }
            33.33%, 66.65% { background: var(--amber); box-shadow: 0 0 8px rgba(255, 149, 0, 0.5); }
            66.66%, 100% { background: rgba(255,255,255,0.18); box-shadow: none; }
        }
        @keyframes dot3 {
            0%, 66.65%  { background: rgba(255,255,255,0.18); box-shadow: none; }
            66.66%, 100% { background: var(--amber); box-shadow: 0 0 8px rgba(255, 149, 0, 0.5); }
        }

        .hero-scenario-dots span:nth-child(1) { animation-name: dot1; }
        .hero-scenario-dots span:nth-child(2) { animation-name: dot2; }
        .hero-scenario-dots span:nth-child(3) { animation-name: dot3; }

        .hero-post-demo-ctas {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            margin-top: clamp(50px, 7vh, 90px);
            margin-bottom: clamp(80px, 12vh, 140px);
            width: 100%;
            max-width: 420px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 16px;
        }

        .hero-cta-primary {
            display: inline-block;
            background: var(--amber);
            color: var(--black);
            padding: 20px 28px;
            font-size: clamp(1rem, 2.2vw, 1.15rem);
            font-weight: 700;
            border-radius: 8px;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            text-align: center;
            transition: background 0.2s ease;
        }

        .hero-cta-primary:hover,
        .hero-cta-primary:focus {
            background: #FFA733;
            outline: none;
        }

        .hero-cta-secondary {
            display: inline-block;
            border: 2px solid var(--amber);
            color: var(--amber);
            background: transparent;
            padding: 12px 20px;
            font-size: clamp(0.72rem, 1.7vw, 0.85rem);
            font-weight: 600;
            border-radius: 8px;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            text-align: center;
            transition: background 0.2s ease;
        }

        .hero-cta-secondary:hover,
        .hero-cta-secondary:focus {
            background: var(--amber-glow);
            outline: none;
        }

        @media (max-width: 768px) {
            .hero-scenario-canvas,
            .hero-demo-cycle,
            .hero-frame {
                min-height: 220px;
            }

            .hero-json-pre {
                font-size: 0.62rem;
                padding: 10px 8px;
            }
        }

        .scroll-indicator {
            position: absolute;
            bottom: max(24px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            font-size: 28px;
            color: var(--amber);
            animation: bounce 2s infinite;
            z-index: 2;
            pointer-events: none;
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(10px); }
        }

        /* Thesis Cards Section */
        #thesis {
            max-width: 1200px;
            margin: 0 auto;
            padding: 80px 20px;
        }

        .card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--amber);
            border-radius: 8px;
            padding: 40px;
            margin-bottom: 60px;
            text-align: left;
        }

        .card:last-child {
            margin-bottom: 0;
        }

        /* Scroll Reveal */
        .reveal-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .reveal-on-scroll.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        .card-title {
            font-size: 36px;
            color: var(--amber);
            font-weight: 600;
            margin-bottom: 24px;
        }

        .card-title--with-subtitle {
            margin-bottom: 12px;
        }

        .card-subtitle {
            font-size: 18px;
            color: var(--white);
            opacity: 0.8;
            margin-bottom: 20px;
        }

        .card-body p {
            font-size: 18px;
            color: var(--white);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .card-body p:last-child {
            margin-bottom: 0;
        }

        .answer-block {
            font-size: 18px;
            color: var(--white);
            line-height: 1.6;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .card-body .italic-amber {
            font-style: italic;
            color: var(--amber);
        }

        .section-title {
            font-size: 18px;
            color: var(--amber);
            font-weight: 500;
            margin-bottom: 12px;
        }

        .section-block {
            margin-bottom: 24px;
        }

        .section-block:last-child {
            margin-bottom: 0;
        }

        .markets {
            font-size: 18px;
            color: var(--white);
            line-height: 1.8;
            margin-bottom: 32px;
        }

        /* TAM Signal Bar */
        .markets-row {
            display: flex;
            flex-direction: row;
            align-items: baseline;
            justify-content: space-between;
            border-bottom: 1px solid var(--amber-dim);
            padding: 10px 0;
            gap: 8px;
        }

        .markets-row:last-child {
            border-bottom: none;
        }

        .markets-market {
            color: var(--white);
            font-weight: 600;
        }

        .markets-size {
            color: var(--amber);
            font-weight: 600;
            font-size: 18px;
        }

        /* Inquiry homepage section */
        .inquiry-homepage-section {
            max-width: 900px;
            margin: 20px auto 40px;
            padding: 40px 32px;
            text-align: center;
        }
        .inquiry-homepage-rule {
            color: var(--amber);
            font-family: var(--font-mono);
            font-size: 14px;
            letter-spacing: 0.05em;
            margin: 12px 0;
            opacity: 0.6;
        }
        .inquiry-homepage-kicker {
            font-family: var(--font-mono);
            color: var(--amber);
            font-size: 14px;
            letter-spacing: 0.24em;
            text-transform: uppercase;
            margin: 18px 0 24px;
            font-weight: 500;
        }
        .inquiry-homepage-lead {
            font-family: var(--font-sans);
            color: var(--white);
            font-size: 24px;
            font-weight: 500;
            line-height: 1.35;
            margin-bottom: 18px;
        }
        .inquiry-homepage-sub {
            font-family: var(--font-sans);
            color: rgba(255,255,255,0.65);
            font-size: 16px;
            line-height: 1.55;
            max-width: 560px;
            margin: 0 auto 10px;
        }
        .inquiry-homepage-cta {
            display: inline-block;
            margin: 28px 0 12px;
            font-family: var(--font-mono);
            color: var(--amber);
            font-size: 15px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            text-decoration: none;
            border: 1px solid var(--amber);
            padding: 14px 26px;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .inquiry-homepage-cta:hover {
            background: var(--amber);
            color: var(--black);
        }
        @media (max-width: 720px) {
            .inquiry-homepage-lead { font-size: 20px; }
            .inquiry-homepage-sub { font-size: 15px; }
            .inquiry-homepage-section { padding: 28px 20px; }
        }

        /* Why Now Block */
        .why-now-bar {
            border-left: 3px solid var(--amber);
            background: var(--amber-glow);
            padding: 28px 32px;
            margin-bottom: 60px;
            border-radius: 0 8px 8px 0;
            text-align: left;
        }

        .why-now-heading {
            font-size: 18px;
            color: var(--amber);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 20px;
        }

        .why-now-items {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px 40px;
        }

        .why-now-item-date {
            font-size: 18px;
            color: var(--amber);
            font-weight: 600;
            margin-bottom: 4px;
            text-align: left;
        }

        .why-now-item-text {
            font-size: 18px;
            color: var(--white);
            line-height: 1.6;
            opacity: 0.85;
            text-align: left;
        }

        /* Moat Grid */
        .moat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px 32px;
            margin-bottom: 32px;
        }

        .moat-item {
            border-left: 2px solid var(--amber-dim);
            padding-left: 16px;
        }

        .moat-item-label {
            font-size: 18px;
            color: var(--amber);
            font-weight: 600;
            margin-bottom: 4px;
        }

        .moat-item-value {
            font-size: 18px;
            color: var(--white);
            line-height: 1.6;
            opacity: 0.85;
        }

        .investment-thesis {
            margin-top: 32px;
            margin-bottom: 48px;
        }

        .investment-thesis p {
            font-size: 18px;
            color: var(--white);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .investment-thesis p:last-child {
            margin-bottom: 0;
        }

        .cta-container {
            text-align: center;
            margin-top: 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .cta-container .cta-button.secondary {
            margin-left: 0;
        }

        .cta-tertiary-links {
            font-size: 15px;
            margin-top: 8px;
        }

        .cta-tertiary-links a {
            color: var(--amber);
            text-decoration: none;
            border-bottom: 1px solid var(--amber-dim);
        }

        .cta-tertiary-links a:hover {
            border-bottom-color: var(--amber);
        }

        .cta-tertiary-links .sep {
            color: #555;
            margin: 0 8px;
        }

        /* Pilot CTA (inline, secondary weight) */
        .pilot-cta-inline {
            margin: 28px auto 0;
            max-width: 720px;
            text-align: center;
            padding: 22px 24px;
            border: 1px solid var(--amber-dim);
            border-radius: 10px;
            background:
                linear-gradient(180deg, rgba(255, 149, 0, 0.05), transparent 80%),
                rgba(255, 255, 255, 0.01);
        }

        .pilot-cta-inline p {
            color: var(--white);
            font-size: 1rem;
            margin-bottom: 14px;
            line-height: 1.5;
            opacity: 0.9;
        }

        .pilot-cta-inline .cta-secondary {
            display: inline-block;
            border: 2px solid var(--amber);
            color: var(--amber);
            background: transparent;
            padding: 12px 22px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            letter-spacing: 0.04em;
            font-size: 0.95rem;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .pilot-cta-inline .cta-secondary:hover,
        .pilot-cta-inline .cta-secondary:focus {
            background: var(--amber-glow);
            outline: none;
        }

        @media (max-width: 600px) {
            .pilot-cta-inline { padding: 18px; }
            .pilot-cta-inline .cta-secondary { display: block; width: 100%; }
        }

        .cta-button {
            display: inline-block;
            border: 1px solid var(--amber);
            background: transparent;
            color: var(--amber);
            padding: 16px 48px;
            font-size: 18px;
            border-radius: 8px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .cta-button:hover,
        .cta-button:focus {
            background: var(--amber);
            color: var(--black);
            outline: none;
        }

        .cta-button:focus-visible {
            outline: 2px solid var(--amber);
            outline-offset: 4px;
        }

        .cta-button.secondary {
            background-color: transparent;
            border: 1px solid var(--amber);
            color: var(--amber);
            margin-left: 16px;
        }

        .cta-button.secondary:hover {
            background-color: var(--amber);
            color: var(--black);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 60px 20px;
            padding-bottom: max(60px, env(safe-area-inset-bottom));
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }

        .footer-lab-name {
            font-size: 16px;
            color: var(--white);
            margin-bottom: 8px;
        }

        .footer-descriptor {
            font-size: 14px;
            color: var(--amber);
            margin-bottom: 20px;
        }

        .footer-brand {
            font-size: 16px;
            color: var(--white);
            font-style: italic;
            font-weight: 300;
            margin-bottom: 16px;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--amber);
            text-decoration: none;
            font-size: 14px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: opacity 0.2s;
            display: inline-block;
            min-height: 44px;
            line-height: 44px;
            padding: 0 4px;
            -webkit-tap-highlight-color: rgba(255, 149, 0, 0.3);
        }

        .footer-links a:hover {
            color: #FFB04D;
            opacity: 1;
        }

        .footer-copyright {
            font-size: 12px;
            color: #666666;
            opacity: 1;
            margin-top: 8px;
        }

        /* Responsive: Tablet & Mobile */
        @media (max-width: 768px) {
            #hero {
                padding-top: max(env(safe-area-inset-top), clamp(2rem, 8vh, 4rem));
                padding-right: max(20px, env(safe-area-inset-right));
                padding-bottom: max(env(safe-area-inset-bottom), clamp(1.5rem, 5vh, 2.5rem));
                padding-left: max(20px, env(safe-area-inset-left));
            }

            .hero-stack {
                gap: clamp(20px, 3.5vh, 50px);
            }

            .hero-brand, h1.hero-brand {
                font-size: clamp(1.2rem, calc(0.3rem + 3.2vw), 2.1rem);
                letter-spacing: 0.04em;
                line-height: 1.2;
            }

            .hero-subtitle {
                margin-top: 0.85rem;
                font-size: clamp(0.9rem, calc(0.2rem + 2.4vw), 1.2rem);
            }

            .hero-frame {
                padding: 12px 14px 12px;
            }

            .why-now-bar {
                padding: 20px;
            }

            .why-now-items {
                grid-template-columns: 1fr;
            }

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



            .deep-dive-nav {
                flex-direction: column;
                align-items: center;
            }

            .nav-card {
                max-width: 100%;
                width: 100%;
            }

            #thesis {
                padding: 40px 20px;
            }

            .card {
                padding: 24px;
                margin-bottom: 40px;
            }

            .hero-cta-primary {
                padding: 14px 20px;
                font-size: clamp(0.9rem, 2vw, 1rem);
            }

            .hero-cta-secondary {
                padding: 10px 16px;
                font-size: clamp(0.75rem, 1.6vw, 0.82rem);
            }

            .hero-post-demo-ctas {
                gap: 12px;
            }

            .card-title {
                font-size: 24px;
            }

            .card-body p,
            .investment-thesis p,
            .answer-block,
            .moat-item-value,
            .why-now-item-text {
                font-size: 15px;
            }

            .card-subtitle {
                font-size: 15px;
            }

            .section-title,
            .moat-item-label,
            .why-now-item-date {
                font-size: 15px;
            }

            .markets {
                font-size: 15px;
            }

            .markets-size {
                font-size: 15px;
            }

            .why-now-heading {
                font-size: 15px;
            }

            footer {
                padding: 40px 20px;
            }
        }

        /* Deep Dive Navigation */
        .deep-dive-nav {
            display: flex;
            justify-content: center;
            gap: 20px;
            padding: 40px 20px;
            max-width: 1200px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        .nav-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            border: 1px solid var(--amber-dim);
            border-radius: 8px;
            padding: 20px 28px;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 200px;
            max-width: 300px;
            text-align: center;
        }

        .nav-card:hover {
            border-color: var(--amber);
            background: var(--amber-glow);
        }

        .nav-card-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--amber);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .nav-card-desc {
            font-size: 13px;
            color: var(--white);
            opacity: 0.6;
            text-wrap: balance;
        }

        /* RNA Statement Section */
        .rna-statement {
            min-height: 40vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: #000000;
            padding: 80px 40px;
            position: relative;
        }

        .rna-statement .category-name {
            font-size: 48px;
            font-weight: 600;
            color: #FFFFFF;
            text-align: center;
            margin-bottom: 24px;
            letter-spacing: 2px;
            text-shadow: 0 0 30px rgba(255, 149, 0, 0.3), 0 0 60px rgba(255, 149, 0, 0.1);
        }

        .rna-statement .governance-tagline {
            font-size: 24px;
            font-weight: 400;
            font-style: italic;
            color: #FF9500;
            text-align: center;
            max-width: 800px;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .rna-statement {
                min-height: 30vh;
                padding: 60px 24px;
            }

            .rna-statement .category-name {
                font-size: 32px;
                letter-spacing: 1px;
            }

            .rna-statement .governance-tagline {
                font-size: 18px;
            }
        }

        /* Responsive: Small Mobile */
        @media (max-width: 480px) {
            .hero-brand, h1.hero-brand {
                font-size: clamp(0.8rem, calc(0.12rem + 3.6vw), 1.5rem);
                letter-spacing: 0.035em;
            }

            .hero-subtitle {
                font-size: clamp(0.72rem, calc(0.1rem + 2.8vw), 0.95rem);
            }

            .why-now-bar {
                padding: 16px;
            }

            .markets {
                font-size: 14px;
            }

            .markets-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 2px;
            }

            .moat-grid {
                grid-template-columns: 1fr;
            }

            #thesis {
                padding: 24px 16px;
            }

            .card {
                padding: 20px;
            }

            .cta-button {
                display: block;
                margin: 0 16px;
            }

            footer {
                padding: 24px 16px;
                padding-bottom: max(24px, env(safe-area-inset-bottom));
            }
        }

        /* Responsive: iPhone SE / very small (375px and below) */
        @media (max-width: 375px) {
            .markets {
                font-size: 13px;
            }

            .markets-size {
                font-size: 13px;
            }

            .category-name {
                font-size: 36px;
            }
        }

        /* Circuit-node section dividers */
        .section-divider {
            position: relative;
            height: 1px;
            background: linear-gradient(to right, transparent, #333 20%, #333 80%, transparent);
            margin: 60px 0;
        }

        .section-divider::before,
        .section-divider::after {
            content: '';
            position: absolute;
            width: 7px;
            height: 7px;
            background: var(--amber);
            border-radius: 50%;
            top: -3px;
            box-shadow: 0 0 8px rgba(255, 149, 0, 0.7);
        }

        .section-divider::before { left: 20%; }
        .section-divider::after  { right: 20%; }

        /* Mobile top bar + drawer */
        .site-top-bar {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            z-index: 2100;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            background: rgba(0, 0, 0, 0.92);
            border-bottom: 1px solid #222;
        }

        .site-top-logo {
            font-size: 1.1rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            color: var(--white);
            text-decoration: none;
        }

        .nav-toggle {
            width: 48px;
            height: 48px;
            border: none;
            background: transparent;
            cursor: pointer;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .nav-toggle-line {
            display: block;
            width: 26px;
            height: 3px;
            background: var(--amber);
            border-radius: 1px;
        }

        .nav-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 2090;
            background: rgba(0, 0, 0, 0.6);
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .nav-overlay.is-open {
            display: block;
            opacity: 1;
        }

        .nav-drawer {
            position: fixed;
            top: 0;
            right: 0;
            width: min(300px, 88vw);
            height: 100%;
            z-index: 2110;
            background: #0d0d0d;
            border-left: 1px solid #333;
            padding: 72px 24px 24px;
            transform: translateX(100%);
            transition: transform 0.28s ease;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .nav-drawer.is-open {
            transform: translateX(0);
        }

        .nav-drawer a {
            color: var(--amber);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 600;
            padding: 14px 0;
            border-bottom: 1px solid #222;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .nav-drawer a:hover,
        .nav-drawer a:focus {
            color: #FFC107;
            outline: none;
        }

        .nav-drawer-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 44px;
            height: 44px;
            border: none;
            background: transparent;
            color: var(--white);
            font-size: 1.75rem;
            line-height: 1;
            cursor: pointer;
        }

        .faq-section {
            max-width: 900px;
            margin: 0 auto;
            padding: 48px 24px 56px;
            text-align: left;
        }

        .faq-section h2 {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 700;
            color: var(--white);
            text-align: center;
            margin-bottom: 36px;
        }

        .faq-item {
            margin-bottom: 28px;
            padding-bottom: 24px;
            border-bottom: 1px solid #222;
        }

        .faq-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .faq-item h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--amber);
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .faq-item p {
            font-size: 1rem;
            color: #ccc;
            line-height: 1.65;
        }

        @media (max-width: 767px) {
            .site-top-bar {
                display: flex;
            }

            body {
                padding-top: 56px;
            }

            #hero {
                min-height: calc(100vh - 56px);
            }

            @supports (height: 100dvh) {
                #hero {
                    min-height: calc(100dvh - 56px);
                }
            }

            .deep-dive-nav {
                display: none !important;
            }
        }

        /* Logs vs Receipts contrast statement */
        .contrast-statement {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 1.1rem;
            font-weight: 500;
            color: #FF9500;
            text-align: center;
            margin: 2rem auto;
            padding: 1.5rem;
            border-left: 3px solid #FF9500;
            max-width: 800px;
        }

        /* iOS tap highlight */
        a, button {
            -webkit-tap-highlight-color: rgba(255, 149, 0, 0.2);
        }

        /* Landscape iPhone orientation */
        @media (orientation: landscape) and (max-height: 500px) {
            header#hero {
                padding: clamp(0.5rem, 2vh, 1rem) 16px;
            }

            .hero-stack {
                gap: clamp(0.4rem, 1.5vh, 0.75rem);
            }

            .hero-brand, h1.hero-brand {
                font-size: clamp(0.75rem, calc(0.1rem + 2.5vh), 1.35rem);
            }

            .hero-subtitle {
                font-size: clamp(0.7rem, calc(0.08rem + 1.8vh), 0.95rem);
                margin-top: 0.5rem;
            }

            .hero-scenario-canvas,
            .hero-demo-cycle,
            .hero-frame {
                min-height: 220px;
            }
        }

/* ════════════════════════════════════════════════════════════════
   v2 HOMEPAGE — 2026-04 restage. Scoped to body.home-v2.
   Owns sections below the hero: proof strip, why, architecture,
   inquiry, diagnostic, generate, pilot close, footer. Hero CSS
   above is untouched. Amber is scalpel: CTAs only.
   ════════════════════════════════════════════════════════════════ */

.home-v2 {
    text-align: left;
    font-size: var(--fs-body);
    color: var(--text-2);
    background: var(--ink-0);
}

.home-v2 a:not(.btn):not(.hero-cta-primary):not(.hero-cta-secondary) {
    color: var(--text-1);
    text-decoration: none;
    transition: color var(--t-fast);
}
.home-v2 a:not(.btn):not(.hero-cta-primary):not(.hero-cta-secondary):hover {
    color: var(--amber);
    text-decoration: none;
}

.home-v2 .section-head {
    text-align: center;
    margin-inline: auto;
}

/* Bigger section titles: use h1-scale for major sections */
.home-v2 .section-head__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.025em;
}
.home-v2 .section-head__lede {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-3);
    margin-top: var(--s-4);
}

.home-v2 .prose {
    margin-inline: auto;
    color: var(--text-2);
}

/* CTA rows — one amber action per section */
.home-cta-row {
    display: flex;
    justify-content: center;
    gap: var(--s-4);
    margin-top: var(--s-7);
    flex-wrap: wrap;
}
.home-cta-row--close {
    margin-top: var(--s-8);
}

/* ── Proof strip override: remove body-font, lock mono ────────── */
.home-v2 .proof-strip { text-align: center; }
.home-v2 .proof-strip__num { letter-spacing: 0.01em; }

/* ── Section accent: hairline top rule for structural rhythm ──── */
.home-why,
.home-arch,
.home-destinations,
.home-pilot {
    border-top: 1px solid var(--line-1);
}

/* ── Destination cards (merged Inquiry + Diagnostic + Generate) ─ */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-1);
    border-radius: var(--r-3);
    overflow: hidden;
    margin-top: var(--s-8);
}
.dest-card {
    display: flex;
    flex-direction: column;
    padding: var(--s-8) var(--s-7);
    background: var(--ink-1);
    gap: var(--s-4);
    position: relative;
}
.dest-card--mid {
    background: var(--ink-2);
}
.dest-card__num {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: var(--tracking-tight);
    color: var(--line-2);
    margin-bottom: var(--s-3);
    user-select: none;
}
.dest-card__label {
    font-family: var(--font-mono);
    font-size: var(--fs-caption);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--text-3);
}
.dest-card__title {
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: var(--lh-snug);
    letter-spacing: -0.02em;
    color: var(--text-1);
    text-wrap: balance;
    margin: 0;
}
.dest-card__desc {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-2);
    flex: 1;
    margin: 0;
}
.dest-card__cta {
    align-self: flex-start;
    margin-top: var(--s-5);
}
@media (max-width: 900px) {
    .dest-grid {
        grid-template-columns: 1fr;
        background: transparent;
        gap: var(--s-4);
    }
    .dest-card {
        border-radius: var(--r-3);
        box-shadow: var(--shadow-1);
    }
    .dest-card--mid { background: var(--ink-2); }
}

/* ── Architecture grid ────────────────────────────────────────── */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
    margin-top: var(--s-8);
}
.arch-item {
    padding: var(--s-8) var(--s-7);
    background: var(--ink-2);
    border-radius: var(--r-3);
    box-shadow: var(--shadow-1);
}
.arch-item__label {
    font-family: var(--font-mono);
    font-size: var(--fs-caption);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: var(--s-4);
}
.arch-item__title {
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: var(--lh-snug);
    letter-spacing: -0.02em;
    color: var(--text-1);
    margin-bottom: var(--s-3);
}
.arch-item__desc {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-2);
    margin: 0;
}
.arch-footnote {
    margin-top: var(--s-8);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line-1);
    max-width: var(--content-readable);
    margin-inline: auto;
    text-align: center;
    font-size: var(--fs-meta);
    line-height: var(--lh-body);
    color: var(--text-3);
}
@media (max-width: 900px) {
    .arch-grid { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ── Markets (investor proof in Pilot Close) ──────────────────── */
.markets-v2 {
    max-width: var(--content-doc);
    margin: var(--s-8) auto 0;
    border-top: 1px solid var(--line-1);
}
.markets-v2__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-5);
    align-items: baseline;
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line-1);
}
.markets-v2__name {
    font-size: var(--fs-body);
    color: var(--text-2);
}
.markets-v2__size {
    font-family: var(--font-mono);
    font-size: var(--fs-body);
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .markets-v2__row {
        grid-template-columns: 1fr;
        gap: var(--s-2);
    }
    .markets-v2__size { color: var(--text-3); }
}

/* Footer: reset v1 footer overrides — web component + components.css takes over */
.home-v2 footer {
    text-align: left;
    padding: 0;
    max-width: none;
    margin: 0;
    width: auto;
}

/* ── Reduced motion: kill transforms on cards ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    .home-v2 * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

