/* ==========================================================================
   Steer Claw — Landing Page
   Theme tokens mirrored from steer-claw/web/src/theme/index.ts
   Liquid glass on warm beige.
   ========================================================================== */

:root {
    /* Brand palette (light mode, from theme/index.ts) */
    --bg: #E8E3DB;
    --bg-soft: #EFEAE2;
    --bg-deep: #DDD7CB;
    --surface-glass: rgba(255, 255, 255, 0.42);
    --surface-glass-strong: rgba(255, 255, 255, 0.65);
    --surface-glass-border: rgba(255, 255, 255, 0.55);

    --primary: #9A7030;
    --primary-light: #E0BE78;
    --primary-dark: #7A5520;
    --primary-on: #FFFFFF;

    --secondary: #2A7575;

    --text-primary: #151A1E;
    --text-secondary: #4A4641;
    --text-muted: #6A665E;

    --divider: rgba(0, 0, 0, 0.06);
    --divider-strong: rgba(0, 0, 0, 0.12);

    --success: #3D8040;
    --warning: #C4943A;

    /* Shadows */
    --shadow-card:
        0 4px 24px rgba(20, 17, 12, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    --shadow-card-hover:
        0 12px 40px rgba(20, 17, 12, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --shadow-screenshot:
        0 30px 80px -20px rgba(20, 17, 12, 0.18),
        0 8px 24px -8px rgba(20, 17, 12, 0.08);

    /* Spacing */
    --container: 1180px;
    --gap-1: 0.5rem;
    --gap-2: 1rem;
    --gap-3: 1.5rem;
    --gap-4: 2rem;
    --gap-5: 3rem;
    --gap-6: 4.5rem;
    --gap-7: 7rem;

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Type */
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-primary);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(224, 190, 120, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(42, 117, 117, 0.10), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -1000px; top: 0;
    background: var(--primary); color: #fff; padding: 8px 14px;
    border-radius: var(--r-sm); z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Section title pattern */
.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    letter-spacing: -0.018em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 1rem;
    max-width: 22ch;
}
.section-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 60ch;
}
/* Stacked .section-sub paragraphs get breathing room from the prior one. */
.section-sub + .section-sub { margin-top: 0.9rem; }
.serif-italic {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.005em;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}
.btn-primary {
    background: var(--primary);
    color: var(--primary-on);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--divider-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-glass-strong); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(232, 227, 219, 0.72);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo img { height: 52px; width: auto; display: block; }
@media (max-width: 540px) {
    .nav-logo img { height: 40px; }
}
.nav-cta {
    background: var(--primary);
    color: var(--primary-on);
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}
.hero-inner { max-width: 980px; }
/* Kicker line that sits BELOW the hero-sub, before the CTAs — picks the
   fight with the reactive AI paradigm in one beat. */
.hero-kicker {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    color: var(--text-primary);
    margin-top: clamp(0.5rem, 1.5vw, 1rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: 0.005em;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.5rem, 11vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.hero-lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.25;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 64ch;
    margin: 0 auto clamp(1.5rem, 3vw, 2.4rem);
}
.hero-cta-row {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; align-items: center;
}

/* ==========================================================================
   Home-page proof
   ========================================================================== */
.proof {
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}
.proof-frame {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-screenshot);
    background: var(--surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    padding: clamp(6px, 1vw, 12px);
}
.proof-image {
    width: 100%;
    border-radius: calc(var(--r-xl) - 8px);
    display: block;
}
.proof-callouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.callout {
    display: flex; gap: 0.6rem;
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--r-lg);
    padding: 0.9rem 1.1rem;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: var(--shadow-card);
}
.callout-arrow { color: var(--primary); font-weight: 700; flex: 0 0 auto; }
.callout-text {
    font-size: 0.98rem;
    color: var(--text-primary);
    line-height: 1.45;
}
.proof-line {
    margin-top: clamp(2rem, 4vw, 3rem);
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.45;
    color: var(--text-secondary);
    font-weight: 500;
}
.proof-line .serif-italic { color: var(--text-primary); font-size: 1.15em; }

/* ==========================================================================
   Animation section
   ========================================================================== */
.animate {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
}
.animate .section-title,
.animate .section-sub {
    margin-left: auto;
    margin-right: auto;
}
.animate .section-title { max-width: 22ch; }
.animate .section-sub { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.animate-stage {
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--r-xl);
    padding: clamp(1rem, 2vw, 1.5rem);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: var(--shadow-card);
    text-align: left;
}
.animate-input {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 1rem 1.3rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    font-family: var(--sans);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 500;
    color: var(--text-primary);
    min-height: 60px;
    margin-bottom: 1rem;
}
.animate-prompt { color: var(--primary); font-weight: 700; }
.animate-typed { flex: 1; }
.animate-cursor {
    width: 2px; height: 1.1em;
    background: var(--primary);
    animation: blink 1s steps(1) infinite;
    display: inline-block;
}
@keyframes blink { 50% { background: transparent; } }

/* Single static screenshot — sized by its natural ratio, no double-crop */
.animate-shots {
    position: relative;
    width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.animate-shots .shot {
    width: 100%;
    height: auto;
    display: block;
}
.animate-caption {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Ambient (static "home feed runs itself" — single screenshot, centered)
   ========================================================================== */
.ambient {
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
}
.ambient .section-title,
.ambient .section-sub {
    margin-left: auto;
    margin-right: auto;
}
.ambient .section-title { max-width: 26ch; }
.ambient .section-sub { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ambient-frame {
    text-align: left; /* reset the centering inherited from .ambient */
}

/* ==========================================================================
   Perform (rotating "team at work" — plan, build, deliver, watch)
   Reuses the .animate visual language so the page feels of-a-piece.
   ========================================================================== */
.perform {
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
}
.perform .section-title,
.perform .section-sub {
    margin-left: auto;
    margin-right: auto;
}
.perform .section-title { max-width: 22ch; }
.perform .section-sub { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.perform-stage {
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--r-xl);
    padding: clamp(1rem, 2vw, 1.5rem);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: var(--shadow-card);
    text-align: left;
}

.perform-caption {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 1rem 1.3rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    font-family: var(--sans);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 500;
    color: var(--text-primary);
    min-height: 60px;
    margin-bottom: 1rem;
}
.perform-arrow { color: var(--primary); font-weight: 700; flex: 0 0 auto; }
.perform-caption-text {
    flex: 1;
    transition: opacity 0.3s ease;
}

.perform-shots {
    position: relative;
    width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
    /* Same 16:9 as the project-list crop above for visual consistency */
    aspect-ratio: 16 / 9;
}
.perform-shots .shot {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.7s ease;
    will-change: opacity;
}
.perform-shots .shot.active { opacity: 1; }

/* Behind-the-scenes section: bts-* screenshots are 3072x1988 (~1.55:1) */
#behind-scenes .perform-shots {
    aspect-ratio: 1546 / 1000;
}

/* Manual carousel controls — overlaid on the screenshot itself.
   Prev/next arrows pin to left/right edges, vertically centered.
   Dots float at the bottom-center inside a glass pill.
   Wrapper covers the shots area but lets clicks through to the image. */
.perform-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}
.perform-controls > * {
    pointer-events: auto;
}
.perform-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    box-shadow: 0 4px 18px rgba(20, 17, 12, 0.18);
}
.perform-prev { left: 12px; }
.perform-next { right: 12px; }
.perform-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 22px rgba(20, 17, 12, 0.22);
}
.perform-nav:active { transform: translateY(-50%) scale(0.94); }
.perform-nav svg { width: 20px; height: 20px; }

.perform-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(20, 17, 12, 0.18);
}
.perform-dots .dot {
    width: 9px; height: 9px;
    padding: 0;
    background: rgba(20, 17, 12, 0.32);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.perform-dots .dot:hover { background: rgba(20, 17, 12, 0.55); }
.perform-dots .dot.active {
    background: var(--primary);
    transform: scale(1.35);
}
.perform-dots .dot.active:hover { background: var(--primary); }

/* ==========================================================================
   Reach (channels)
   ========================================================================== */
.reach {
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
}
.reach .section-title, .reach .section-sub { margin-left: auto; margin-right: auto; }
.reach-channels {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem;
}
.channel {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.8rem 1.4rem;
    background: var(--surface-glass-strong);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--r-pill);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.channel svg { width: 22px; height: 22px; }

/* ==========================================================================
   Feature rows (Watching + Watch-it-work)
   ========================================================================== */
.feature {
    padding: clamp(3rem, 7vw, 6rem) 0;
}
.feature-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.feature-reverse .feature-inner { grid-template-columns: 1.2fr 1fr; }
.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-image { order: 1; }
.feature-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(154, 112, 48, 0.1);
    padding: 5px 11px;
    border-radius: var(--r-pill);
    margin-bottom: 1rem;
}
.feature-list {
    list-style: none;
    margin-top: 1.3rem;
}
.feature-list li {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
}
.feature-list .dot {
    flex: 0 0 auto;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.65em;
}
.screenshot-frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    padding: clamp(4px, 0.7vw, 8px);
    box-shadow: var(--shadow-screenshot);
}
.screenshot-frame img {
    width: 100%;
    border-radius: calc(var(--r-lg) - 6px);
}

/* "Need an app" section: phone-mockup of the deployed BP tracker app
   floats in the bottom-right of the laptop screenshot for proof-by-photo. */
.builds-apps-frame { position: relative; }
.builds-apps-frame .phone-shot {
    position: absolute;
    right: 4%;
    bottom: 4%;
    width: 17%;
    height: auto;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 24px 56px rgba(20, 17, 12, 0.28),
        0 8px 20px rgba(20, 17, 12, 0.18);
    transform: rotate(-3deg);
    z-index: 2;
}
@media (max-width: 768px) {
    .builds-apps-frame .phone-shot {
        width: 28%;
        right: 3%;
        bottom: 3%;
        border-radius: 14px;
        border-width: 1.5px;
    }
}

/* ==========================================================================
   Trust (private cloud)
   ========================================================================== */
.trust {
    padding: clamp(4rem, 8vw, 7rem) 0;
    text-align: center;
}
.trust-inner { max-width: 900px; margin: 0 auto; }
.trust-mark {
    display: flex; justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.trust-mark svg { width: 64px; height: 64px; }
.trust .section-title, .trust .section-sub { margin-left: auto; margin-right: auto; }
.trust-points {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.trust-point {
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.4rem;
    text-align: left;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: var(--shadow-card);
}
.trust-point h3 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.trust-point p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ==========================================================================
   Engines (portability)
   ========================================================================== */
.engines {
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
}
.engines .section-title, .engines .section-sub { margin-left: auto; margin-right: auto; }
.engine-row {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 0.6rem;
}
.engine-pill {
    background: var(--surface-glass-strong);
    border: 1px solid var(--surface-glass-border);
    padding: 0.7rem 1.2rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.engine-arrow {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
}

/* ==========================================================================
   Use-cases — compact 2-3 column grid of "what it does for {profession}"
   ========================================================================== */
.use-cases {
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
}
.use-cases .section-title,
.use-cases .section-sub {
    margin-left: auto;
    margin-right: auto;
}
.use-cases .section-sub { margin-bottom: clamp(2rem, 4vw, 3rem); }
.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
}
@media (min-width: 560px) {
    .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .use-cases-grid { grid-template-columns: repeat(3, 1fr); }
}
.use-case {
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--r-lg);
    padding: 1.3rem 1.4rem;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.use-case:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}
.use-case-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.7rem;
}
.use-case-text {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ==========================================================================
   Aside — secondary hero (used after the Engines section to land a
   concrete-things-it-does moment before the CTA)
   ========================================================================== */
.aside {
    padding: clamp(4rem, 8vw, 7rem) 0;
    text-align: center;
}
.aside-inner { max-width: 920px; margin: 0 auto; }
.aside-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}
.aside-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 60ch;
    margin: 0 auto;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    padding: clamp(4rem, 9vw, 7rem) 0;
    text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.022em;
    margin-bottom: 0.9rem;
    color: var(--text-primary);
}
.cta-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.55;
}
.cta-form {
    display: flex; flex-wrap: wrap; gap: 0.7rem;
    justify-content: center;
    margin-bottom: 0.9rem;
}
.cta-form input[type="email"] {
    flex: 1 1 320px;
    min-width: 220px;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--surface-glass-border);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--text-primary);
    transition: box-shadow 0.2s, background-color 0.2s;
}
.cta-form input[type="email"]::placeholder { color: var(--text-muted); }
.cta-form input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(154, 112, 48, 0.18);
    border-color: rgba(154, 112, 48, 0.4);
}
.btn-cta { padding: 0.95rem 1.6rem; font-size: 1rem; }
.cta-fineprint {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.cta-fineprint.success { color: var(--success); font-weight: 600; }
.cta-fineprint.error { color: #B84545; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 3rem 0 3.5rem;
    border-top: 1px solid var(--divider);
    margin-top: 2rem;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.footer-logo { height: 32px; opacity: 0.9; }
.footer-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 38ch;
    margin: 0 auto;
}
.footer-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-meta a { color: var(--text-secondary); }
.footer-meta a:hover { color: var(--primary); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
    .feature-inner { grid-template-columns: 1fr; gap: 2rem; }
    .feature-reverse .feature-text { order: 1; }
    .feature-reverse .feature-image { order: 2; }
    .proof-callouts { grid-template-columns: 1fr; }
    .trust-points { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile readability: every screenshot has a mobile-native source served
   via <picture><source media="(max-width: 640px)">, so on mobile the
   container pins to the native iPhone aspect (1170:2532) and the image
   fills it perfectly with no cropping.

   One section (Co-Working Browser) has no mobile-native screenshot — it
   keeps a more moderate aspect via the .cowork-frame override below.
   ========================================================================== */
@media (max-width: 640px) {
    .screenshot-frame,
    .animate-shots,
    .perform-shots,
    #behind-scenes .perform-shots {
        aspect-ratio: 1170 / 2532;
    }
    .screenshot-frame img,
    .screenshot-frame .laptop-shot,
    .animate-shots .shot {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }
    /* Co-Working Browser: no mobile-native source; use a less aggressive
       4:5 ratio so the wide laptop screenshot doesn't get cropped to a
       sliver. object-fit:cover centers the chat+browser split horizontally. */
    .cowork-frame {
        aspect-ratio: 4 / 5;
    }
    /* Phone overlay in the builds-apps section stays in the bottom-right. */
    .builds-apps-frame .phone-shot {
        width: 32%;
        right: 3%;
        bottom: 3%;
    }
}

@media (max-width: 540px) {
    body { font-size: 16px; }
    .nav-inner { padding: 12px 16px; }
    .nav-cta { padding: 7px 12px; font-size: 0.88rem; }
    .container { padding: 0 18px; }
    .hero { padding-top: 3rem; }
    .hero-cta-row { flex-direction: column; align-items: stretch; }
    .hero-cta-row .btn { width: 100%; }
    .animate-cards { grid-template-columns: 1fr; }
    .engine-row { flex-direction: column; }
    .engine-arrow { transform: rotate(90deg); }
    .cta-form { flex-direction: column; }
    .cta-form input[type="email"], .btn-cta { width: 100%; }

    /* Typewriter: pin the input bar to a height that fits the worst-case
       wrap (~3 lines on narrow phones) so wrapping/erasing doesn't shove
       the page up and down between intents. */
    .animate-input {
        min-height: 112px;
        align-items: flex-start;
        padding-top: 1.05rem;
        line-height: 1.45;
    }
}
