/*
 * Adapted from T3 Code marketing UI, commit 371b52d9dad76876f84609a4cd0f80eaa757b69c.
 * Copyright (c) 2026 T3 Tools Inc. Licensed under the MIT License.
 * Full license: /assets/landing/T3-MIT.txt and THIRD_PARTY_NOTICES.md
 */

:root {
    --bg: #09090b;
    --bg-elev: #0c0c0e;
    --bg-card: #111113;
    --fg: #fafafa;
    --fg-muted: #a1a1aa;
    --fg-dim: #71717a;
    --fg-faint: #52525b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --accent-h: 250;
    --accent: oklch(0.68 0.17 var(--accent-h));
    --accent-dim: oklch(0.68 0.17 var(--accent-h) / 0.15);
    --ok: oklch(0.72 0.16 150);
    --warn: oklch(0.76 0.15 75);
    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    color-scheme: dark;
    scroll-behavior: smooth;
  }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-feature-settings: "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 9999;
  }

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

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

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-dim);
    font-weight: 500;
  }

  .display {
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
  }

  .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: transform 0.18s ease, background 0.18s ease,
      border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
  }

  .btn-primary {
    background: var(--fg);
    color: #09090b;
    font-weight: 600;
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    background: #fff;
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .btn-ghost {
    color: var(--fg-muted);
    border: 1px solid var(--border);
    background: transparent;
  }

  .btn-ghost:hover {
    color: var(--fg);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
  }

  .btn-lg {
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 10px;
  }

  .tile {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
    overflow: hidden;
  }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Page-load sequence: [data-rise] plays once with delay --d. */
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  [data-rise] {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--d, 0ms);
  }
  @media (prefers-reduced-motion: reduce) {
    [data-rise] { animation: none; }
  }

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
  }

  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
  }

  .nav.is-scrolled {
    border-bottom-color: var(--border);
  }

  .nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 5px;
    margin-left: -5px;
    border-radius: 7px;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .nav-brand:hover {
    color: #fff;
    background: rgba(255,255,255,.035);
  }

  .nav-brand-mark {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 4px;
    opacity: .84;
    filter: brightness(.92) contrast(.9);
    box-shadow: none;
  }

  .nav-brand:hover .nav-brand-mark {
    opacity: .92;
  }

  .nav-brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }

  .nav-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-link {
    padding: 0 10px;
    color: var(--fg-muted);
    font-size: 13px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color 0.18s ease;
  }

  .nav-link:hover {
    color: var(--fg);
  }

  .nav-stars {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--fg-muted);
    font-size: 13px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }

  .nav-stars:hover {
    color: var(--fg);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-stars strong {
    color: var(--fg);
    font-weight: 600;
  }

  .nav-stars svg {
    color: var(--warn);
    flex-shrink: 0;
  }

  .main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 40px 0 32px;
  }

  .footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
  }

  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fg-dim);
  }

  .footer-brand-mark {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 3px;
    opacity: .52;
    filter: brightness(.84) contrast(.86);
    box-shadow: none;
  }

  .footer-brand-name {
    color: var(--fg-dim);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .footer-brand-tag {
    margin-left: 1px;
    color: var(--fg-faint);
    font-size: 12px;
    line-height: 1.2;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
  }

  .footer-links a {
    font-size: 13px;
    color: var(--fg-dim);
    transition: color 0.2s ease;
  }

  .footer-links a:hover {
    color: var(--fg);
  }

  @media (max-width: 820px) {
    .nav-inner,
    .footer-inner {
      padding-left: 20px;
      padding-right: 20px;
    }

    .legal-document-page .nav {
      display: none;
    }

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

    .footer-inner {
      align-items: flex-start;
      flex-direction: column;
      gap: 28px;
    }

    .footer-links {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      width: 100%;
      gap: 14px 20px;
      justify-content: initial;
    }
  }

  @media (max-width: 420px) {
    .nav-inner {
      gap: 12px;
    }

    .nav-stars {
      height: 34px;
      gap: 6px;
      padding: 0 12px;
      font-size: 12px;
    }
  }

/* ── Section base ─────────────────────────────────────────── */
  section {
    position: relative;
    padding: 96px 0;
    border-top: 1px solid var(--border);
  }

  .section-head {
    margin-bottom: 56px;
    max-width: 720px;
  }

  .section-head .eyebrow {
    margin-bottom: 14px;
    display: block;
  }

  .section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .section-head p {
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 620px;
    letter-spacing: -0.005em;
  }

  .checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg-muted);
    font-size: 15px;
  }

  .checklist li svg {
    color: var(--ok);
    flex-shrink: 0;
  }

  /* ── Hero ─────────────────────────────────────────────────── */
  .hero {
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
    border-top: 0;
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  }

  .hero-inner {
    position: relative;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(38px, 5.6vw, 76px);
    margin: 48px auto 22px;
    max-width: 20ch;
    text-wrap: balance;
  }
  /* Inline boxes ignore transforms, so each rising line needs its own block. */
  .hero-title span { display: inline-block; }

  .hero-sub {
    color: var(--fg-muted);
    font-size: clamp(16px, 1.4vw, 19px);
    max-width: 640px;
    margin: 0 auto 36px;
    letter-spacing: -0.005em;
    line-height: 1.55;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
  }

  .hero-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.18s ease;
  }

  .hero-source-link:hover {
    color: var(--fg);
  }

  .hero-source-mark {
    flex-shrink: 0;
  }

  .hero-source-arrow {
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .hero-source-link:hover .hero-source-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
  }

  .hero-mobile-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg-dim);
    font-size: 13px;
    letter-spacing: -0.005em;
  }

  .hero-mobile-line a {
    color: var(--fg-muted);
    text-decoration: underline;
    text-decoration-color: rgba(161, 161, 170, 0.4);
    text-underline-offset: 3px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
  }

  .hero-mobile-line a:hover {
    color: var(--fg);
    text-decoration-color: var(--fg);
  }

  /* Download button icons (platform-aware) */
  .dl-icon {
    display: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  [data-platform="mac"] .dl-icon--apple { display: block; }
  [data-platform="win"] .dl-icon--windows { display: block; }
  [data-platform="linux"] .dl-icon--linux { display: block; }
  html:not([data-platform]) .dl-icon--apple { display: block; }

  /* Marks enter once, then drift while visible and lean toward the pointer. */
  .hero-float {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    --px: 0px;
    --py: 0px;
  }

  .hero-float-mark {
    position: absolute;
    left: calc(50% + var(--x));
    top: var(--y);
    width: var(--s);
    height: var(--s);
    margin-left: calc(var(--s) / -2);
    translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth));
    transition: translate var(--parallax-duration, 0s) cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .hero-float-card {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 25%;
    background: radial-gradient(circle at 30% 25%, var(--tint, rgba(255, 255, 255, 0.08)), rgba(20, 20, 24, 0.92) 65%);
    border: 1px solid var(--border);
    box-shadow:
      0 20px 48px -16px rgba(0, 0, 0, 0.65),
      0 2px 0 0 rgba(255, 255, 255, 0.04) inset;
    animation:
      mark-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both,
      mark-drift var(--dur) ease-in-out calc(var(--d) + 1s) infinite;
    animation-play-state: running, var(--home-motion-state, paused);
  }

  .hero-float-card img {
    width: 56%;
    height: 56%;
    display: block;
    object-fit: contain;
  }

  /* The Antigravity icon ships with its own rounded dark tile, so it fills the
     card edge to edge instead of sitting inside it. */
  .hf-antigravity .hero-float-card { background: #0d0d10; border-color: rgba(255, 255, 255, 0.1); }
  .hf-antigravity .hero-float-card img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

  @keyframes mark-in {
    from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--rot) + 24deg)) scale(0.6); }
    to { opacity: 1; transform: translate(0, 0) rotate(var(--rot)) scale(1); }
  }
  @keyframes mark-drift {
    0%, 100% { transform: translate(0, 0) rotate(var(--rot)); }
    50% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) + var(--wob))); }
  }

  .hf-opencode    { --x: max(-300px, -19vw); --y: 20px; --s: 64px; --rot: 6deg; --depth: 0.6; --d: 620ms; --dur: 8.5s; --dx: 2px; --dy: -8px; --wob: 3deg; --fx: -40px; --fy: -80px; }
  .hf-antigravity { --x: min(300px, 19vw); --y: 20px; --s: 64px; --rot: -5deg; --depth: 0.6; --d: 580ms; --dur: 9.8s; --dx: -2px; --dy: -9px; --wob: -3deg; --fx: 40px; --fy: -80px; }
  .hf-claude   { --x: max(-560px, -38vw); --y: 128px; --s: 96px; --rot: -8deg; --depth: 1.2; --d: 380ms; --dur: 10.5s; --dx: 4px; --dy: -12px; --wob: -2deg; --fx: -160px; --fy: -40px; --tint: rgba(217, 119, 87, 0.22); }
  .hf-codex    { --x: min(560px, 38vw); --y: 128px; --s: 96px; --rot: 7deg; --depth: 1.2; --d: 460ms; --dur: 9.2s; --dx: -4px; --dy: -10px; --wob: 2deg; --fx: 160px; --fy: -40px; }
  .hf-grok     { --x: max(-440px, -30vw); --y: 440px; --s: 80px; --rot: 4deg; --depth: 0.9; --d: 540ms; --dur: 11.5s; --dx: 3px; --dy: -9px; --wob: -3deg; --fx: -120px; --fy: 80px; }
  .hf-cursor   { --x: min(440px, 30vw); --y: 440px; --s: 80px; --rot: -5deg; --depth: 0.9; --d: 700ms; --dur: 7.8s; --dx: -3px; --dy: -11px; --wob: 3deg; --fx: 120px; --fy: 80px; }

  @media (prefers-reduced-motion: reduce) {
    .hero-float-card { animation: none; transform: rotate(var(--rot)); }
    .hero-float-mark { translate: none; transition: none; }
  }

  @media (max-width: 1180px) {
    .hf-claude, .hf-codex { --s: 80px; }
    .hf-grok, .hf-cursor { --s: 68px; --y: 420px; }
  }

  @media (max-width: 820px) {
    .hero {
      padding-top: 132px;
    }

    .hero-title {
      font-size: clamp(40px, 11vw, 56px);
      margin-top: 14px;
    }

    .hero-actions {
      margin-bottom: 96px;
    }

    /* Four above the headline, two beside the CTA. Keeps the copy clear. */
    .hf-claude      { --x: -37vw; --y: 44px; --s: 64px; --rot: -10deg; }
    .hf-opencode    { --x: -12vw; --y: 52px; --s: 56px; --rot: -4deg; }
    .hf-antigravity { --x: 12vw; --y: 52px; --s: 56px; --rot: 5deg; }
    .hf-codex       { --x: 37vw; --y: 44px; --s: 64px; --rot: 8deg; }
    .hf-grok     { --x: -36vw; --y: 474px; --s: 64px; --rot: -6deg; }
    .hf-cursor   { --x: 36vw; --y: 474px; --s: 64px; --rot: 7deg; }
  }

  @media (max-width: 340px) {
    .hf-opencode, .hf-antigravity, .hf-grok, .hf-cursor { --s: 48px; }
    .hf-grok, .hf-cursor { --y: 580px; }
  }

  .hero-preview {
    max-width: 1180px;
    margin: 0 auto;
    transform: perspective(2000px) rotateX(2deg);
    transition: transform 0.6s ease;
  }

  .hero-preview:hover {
    transform: perspective(2000px) rotateX(0deg);
  }

  .hero-screenshot-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2880 / 1800;
    border-radius: 14px;
    background: #0a0a0c;
    box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.75);
  }

  .hero-screenshot-frame picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-screenshot-frame img {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    margin: -2px;
    object-fit: cover;
    object-position: center top;
  }

  /* ── Harnesses ─────────────────────────────────────────── */
  .sec-harness { background: #09090b; }

  .harness-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .harness {
    padding: 22px 20px;
    display: flex; align-items: center; gap: 14px;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
    transition: background 0.2s ease;
  }
  .harness:last-child { border-right: 0; }
  .harness:hover { background: rgba(255, 255, 255, 0.025); }

  .harness-mark {
    color: var(--fg); opacity: 0.95;
    flex-shrink: 0; width: 28px; height: 28px;
    display: grid; place-items: center;
  }
  .harness-mark img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }

  .harness-meta { flex: 1; min-width: 0; }
  .harness-name {
    font-size: 14px; font-weight: 500;
    letter-spacing: -0.01em; margin-bottom: 2px;
  }
  .harness-tag {
    font-family: var(--font-mono);
    font-size: 11px; color: var(--fg-dim);
  }

  .harness-footer {
    display: flex; gap: 24px; flex-wrap: wrap;
    margin-top: 28px; padding-top: 24px;
    border-top: 1px dashed var(--border);
    font-size: 13px; color: var(--fg-muted);
  }
  .harness-footer-item {
    display: inline-flex; gap: 8px; align-items: center;
    color: var(--fg-muted);
  }
  .harness-footer-item svg { color: var(--ok); }

  /* ── Endorsements ─────────────────────────────────────── */
  .sec-endorsements {
    overflow: hidden;
  }

  .endorsements-head {
    max-width: 720px;
    margin-bottom: 56px;
  }

  .endorsements-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .endorsements-count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .endorsements-head p {
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 620px;
    letter-spacing: -0.005em;
  }

  /* Two marquee rows scrolling in opposite directions. Each track holds the
     row twice so a -50% translate loops seamlessly. The animation only runs
     while a track is on screen (see homeMotion), and pauses on hover/focus. */
  .endorsement-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .endorsement-carousel--mobile {
    display: none;
  }

  .endorsement-carousel::before,
  .endorsement-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: max(48px, calc((100vw - 1240px) / 2 + 56px));
    pointer-events: none;
  }

  .endorsement-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
  }

  .endorsement-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg), transparent);
  }

  .endorsement-row {
    overflow: hidden;
  }

  .endorsement-track {
    width: max-content;
    display: flex;
    animation: endorsementMarquee 76s linear infinite;
    animation-play-state: var(--home-motion-state, paused);
    will-change: transform;
  }

  .endorsement-track-group {
    display: flex;
    gap: 12px;
    padding-right: 12px;
  }

  .endorsement-row.is-reverse .endorsement-track {
    animation-direction: reverse;
    animation-duration: 84s;
  }

  .endorsement-carousel:hover .endorsement-track,
  .endorsement-carousel:focus-within .endorsement-track {
    animation-play-state: paused;
  }

  @media (prefers-reduced-motion: reduce) {
    .endorsement-track { animation: none; }
  }

  @keyframes endorsementMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .endorsement-card {
    position: relative;
    width: clamp(264px, 22vw, 308px);
    height: 132px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.012);
    transition:
      border-color 0.18s ease,
      background 0.18s ease;
  }

  .endorsement-card:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
  }

  .endorsement-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .endorsement-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .endorsement-handle {
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .endorsement-card p {
    color: var(--fg);
    font-size: 13.5px;
    line-height: 1.4;
    letter-spacing: -0.003em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  /* ── Git ──────────────────────────────────────────────── */
  .git-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px; align-items: center;
  }

  .git-visual {
    position: relative;
    display: flex; flex-direction: column;
    align-items: stretch; gap: 20px;
  }

  .git-visual .btn {
    line-height: normal;
    pointer-events: none;
  }

  .pr-card { padding: 20px; }
  .pr-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
  }
  .pr-head svg { color: var(--ok); }
  .pr-title { font-weight: 500; font-size: 15px; flex: 1; }
  .pr-status {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--ok); padding: 2px 8px;
    border: 1px solid var(--ok); border-radius: 999px;
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .pr-meta {
    display: flex; gap: 14px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--fg-dim); margin-bottom: 14px; flex-wrap: wrap;
  }
  .pr-meta span { display: inline-flex; align-items: center; gap: 5px; }
  .pr-files {
    border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; margin-bottom: 16px;
  }
  .pr-files > div {
    display: flex; justify-content: space-between;
    padding: 8px 12px; font-family: var(--font-mono);
    font-size: 11px; border-top: 1px solid var(--border);
    color: var(--fg-muted);
  }
  .pr-files > div:first-child { border-top: 0; }
  .pr-files span { color: var(--fg-dim); }
  .pr-foot { display: flex; justify-content: flex-end; gap: 8px; }

  .pr-trail {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0; margin: -4px 0;
  }
  .pr-trail-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: var(--border-strong);
  }
  .pr-trail-line {
    width: 1px; height: 28px;
    background: linear-gradient(180deg, var(--border-strong), var(--accent));
  }

  .pr-button-shell { display: flex; justify-content: center; }
  .pr-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: var(--fg); color: #09090b;
    font-weight: 600; font-size: 13px;
    line-height: normal;
    border-radius: 10px;
    box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.2);
  }
  .pr-button-kbd {
    font-family: var(--font-mono); font-size: 10px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px; border-radius: 4px;
  }

  /* ── Open source ──────────────────────────────────────── */
  .open-head {
    text-align: center;
    margin: 0 auto 56px;
  }

  .open-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
  }

  .open-term { padding: 0; overflow: hidden; }
  .open-term-head {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
  }
  .open-term-head span {
    width: 10px; height: 10px; border-radius: 999px;
    background: #2a2a30; display: block;
  }
  .open-term-title {
    margin-left: 10px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--fg-dim); flex: 1; text-align: center;
    background: transparent !important;
    width: auto !important; height: auto !important;
    border-radius: 0 !important;
  }

  .open-term-body {
    padding: 20px 22px;
    font-family: var(--font-mono); font-size: 13px;
    line-height: 1.7; color: var(--fg);
  }
  .open-term-body > div {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .open-term-body .prompt { color: var(--accent); margin-right: 8px; }
  .open-term-body .dim { color: var(--fg-dim); }
  .open-term-body .accent { color: var(--accent); }
  .open-term-body .cursor { display: flex; align-items: center; }
  .caret {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--fg);
    margin-left: 4px;
    animation: blink 1s steps(2) infinite;
    animation-play-state: var(--home-motion-state, paused);
  }

  @keyframes blink {
    50% { opacity: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .caret { animation: none; }
  }

  .open-pitch {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background:
      radial-gradient(110% 75% at 100% 0%, var(--accent-dim), transparent 60%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  }

  .open-pitch-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .open-pitch-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--fg-muted);
  }

  .open-pitch-list strong {
    color: var(--fg);
    font-weight: 600;
  }

  .open-pitch-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 7px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  }

  .open-pitch-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .open-pitch-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-dim);
    font-family: var(--font-mono);
    font-size: 11px;
  }

  .open-pitch-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .open-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.18s ease;
  }

  .open-source-link:hover {
    color: var(--fg);
  }

  /* ── Final CTA ────────────────────────────────────────── */
  .sec-cta {
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
  }
  .sec-cta::before {
    content: "";
    position: absolute;
    inset: auto 0 -50% 0;
    height: 60%;
    background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.6;
  }
  .cta-inner { position: relative; }
  .cta-title {
    font-size: clamp(40px, 6vw, 72px);
  }
  .cta-sub {
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 560px;
    margin: 20px auto 36px;
    line-height: 1.55;
    letter-spacing: -0.005em;
  }
  .cta-actions {
    display: flex; gap: 10px;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 24px;
  }

  /* ── Responsive ────────────────────────────────────────── */
  @media (max-width: 960px) {
    .hero-preview {
      width: min(860px, calc(100vw - 24px));
      margin-left: 50%;
      transform: translateX(-50%) perspective(1600px) rotateX(1.5deg);
    }
    .hero-preview:hover {
      transform: translateX(-50%) perspective(1600px) rotateX(0deg);
    }
    .harness-grid { grid-template-columns: 1fr 1fr; }
    .harness { border-right: 0; border-bottom: 1px solid var(--border); }
    .harness:nth-child(odd) { border-right: 1px solid var(--border); }
    .harness:nth-child(even) { border-right: 0; }
    .git-inner { grid-template-columns: 1fr; gap: 40px; }
    .open-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 820px) {
    section { padding: 64px 0; }
    .sec-cta { padding: 96px 0; }
    .container { padding-left: 20px; padding-right: 20px; }
    .hero-preview { display: none; }
    .endorsements-head {
      margin-bottom: 40px;
    }
    .endorsement-carousel--desktop {
      display: none;
    }
    .endorsement-carousel--mobile {
      display: flex;
    }
    .endorsement-carousel::before,
    .endorsement-carousel::after {
      width: 28px;
    }
    .endorsement-track {
      animation-duration: 68s;
    }
    .endorsement-row.is-reverse .endorsement-track {
      animation-duration: 76s;
    }
    .endorsement-card {
      width: 268px;
      padding: 14px;
    }
    .endorsement-card p {
      font-size: 13px;
    }
  }


/* Harn-specific product adaptation. */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.harn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-float-card > .harn-float-label {
  font-family: var(--font-mono);
  font-size: clamp(8px, .8vw, 11px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.02em;
}
.harn-preview-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 18% 1fr 28%;
  background: #f7f7f4;
  color: #171717;
  font-family: var(--font-sans);
}
.harn-preview-sidebar {
  border-right: 1px solid #ddd;
  background: #efeee9;
  padding: 18px 14px;
}
.harn-preview-brand {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}
.harn-preview-nav {
  display: grid;
  gap: 5px;
  color: #5e5e5a;
  font-size: 10px;
}
.harn-preview-nav span {
  padding: 7px 8px;
  border-radius: 7px;
}
.harn-preview-nav span:first-child {
  background: #deddd7;
  color: #111;
  font-weight: 600;
}
.harn-preview-project-label {
  margin: 24px 0 8px;
  color: #99958c;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.harn-preview-project {
  padding: 8px;
  border-radius: 7px;
  background: #dfded8;
  font-size: 10px;
  font-weight: 700;
}
.harn-preview-world {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(82, 131, 235, .06), transparent 34%),
    #fbfbfa;
}
.harn-graph-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: rgba(72, 92, 124, .18);
}
.hgl-1 { left: 28%; top: 31%; width: 29%; transform: rotate(14deg); }
.hgl-2 { left: 28%; top: 31%; width: 30%; transform: rotate(76deg); }
.hgl-3 { left: 45%; top: 58%; width: 26%; transform: rotate(-56deg); }
.hgl-4 { left: 45%; top: 58%; width: 24%; transform: rotate(24deg); }
.hgl-5 { left: 58%; top: 37%; width: 26%; transform: rotate(98deg); }
.hgl-6 { left: 30%; top: 69%; width: 25%; transform: rotate(-26deg); }
.harn-graph-node {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #cfcec8;
  background: #267bd8;
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
}
.harn-graph-node::after {
  content: attr(data-label);
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #343432;
  font-size: 9px;
  font-weight: 650;
}
.hgn-1 { left: 27%; top: 27%; }
.hgn-2 { left: 55%; top: 34%; }
.hgn-3 { left: 43%; top: 55%; background: #12a45b; }
.hgn-4 { left: 27%; top: 67%; width: 29px; height: 29px; background: #7fa8e3; }
.hgn-5 { left: 70%; top: 65%; width: 29px; height: 29px; background: #edc75e; }
.hgn-6 { left: 67%; top: 22%; width: 30px; height: 30px; background: #9d7de1; }
.harn-preview-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: rgba(255,255,255,.94);
  color: #555;
  font-size: 8px;
  font-weight: 650;
}
.harn-preview-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid #ddd;
  background: #fff;
}
.harn-preview-tabs {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 38px;
  padding: 0 9px;
  border-bottom: 1px solid #e2e2df;
  color: #777;
  font-size: 8px;
}
.harn-preview-tabs b {
  padding: 5px 7px;
  border-radius: 6px;
  background: #efefec;
  color: #222;
}
.harn-preview-file {
  padding: 9px 11px;
  border-bottom: 1px solid #ecece8;
  color: #555;
  font-size: 8px;
  font-weight: 700;
}
.harn-preview-code {
  padding: 13px 11px;
  overflow: hidden;
  color: #494945;
  font: 8px/1.7 var(--font-mono);
}
.harn-preview-code .blue { color: #365fd6; }
.harn-preview-code .green { color: #168153; }
.harn-preview-code .muted { color: #999; }
.harn-preview-chat {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid #e7e7e3;
}
.harn-preview-input {
  min-height: 42px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 9px;
  color: #aaa;
  font-size: 8px;
}
.harn-proof-card {
  min-width: 260px;
}
.harn-proof-card p {
  margin-top: 12px;
}
.harn-git-copy .checklist {
  margin-top: 28px;
}
.harn-private-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font: 12px var(--font-mono);
}
.harn-private-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent);
}
.harn-attribution {
  color: var(--fg-faint);
  font-size: 11px;
}
.harn-attribution a {
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 820px) {
  .harn-preview-shell { grid-template-columns: 1fr 38%; }
  .harn-preview-sidebar { display: none; }
}
@media (max-width: 560px) {
  .harn-preview-shell { grid-template-columns: 1fr; }
  .harn-preview-pane { display: none; }
}

.is-disabled {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}
.harn-error {
  max-width: 720px;
  margin: -28px auto 44px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 110, 90, .34);
  border-radius: var(--radius-sm);
  background: rgba(255, 90, 70, .09);
  color: #ffb0a3;
  font-size: 13px;
  text-align: left;
}
.open-pitch-copy h3 {
  margin: 16px 0 14px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 500;
}
.open-pitch-copy > p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.65;
}
.harn-advanced-section {
  padding: 0 0 72px;
  border-top: 0;
}
.harn-advanced {
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 20px;
}
.harn-advanced summary {
  cursor: pointer;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.harn-token-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.harn-token-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #09090b;
  color: var(--fg);
  padding: 11px 12px;
  outline: none;
  font-family: var(--font-mono);
  font-size: 12px;
}
.harn-token-form input:focus {
  border-color: var(--accent);
}
.harn-advanced-note {
  margin-top: 14px;
  color: #ffb0a3;
  font-size: 12px;
}
@media (max-width: 620px) {
  .harn-token-form { flex-direction: column; }
  .harn-token-form .btn { width: 100%; }
}


/* Harn public waitlist */
.waitlist-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.waitlist-form{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px;
  border:1px solid var(--border-strong);
  border-radius:13px;
  background:rgba(17,17,20,.72);
  box-shadow:0 10px 30px rgba(0,0,0,.16);
  backdrop-filter:blur(12px);
}
.waitlist-email{
  width:238px;
  min-width:0;
  height:44px;
  padding:0 13px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--fg);
  font:500 13px/1 var(--font-sans);
}
.waitlist-email::placeholder{color:var(--fg-faint)}
.waitlist-email:focus{color:#fff}
.waitlist-form .btn{min-height:44px;white-space:nowrap}
.waitlist-status{
  margin:0;
  color:var(--fg-dim);
  font:500 12px/1.4 var(--font-sans);
}
.waitlist-status.is-error{color:#ff9e8e}
.waitlist-success{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  min-width:min(390px,calc(100vw - 40px));
  padding:13px 16px;
  border:1px solid rgba(83,196,126,.28);
  border-radius:12px;
  background:rgba(38,116,68,.12);
  color:var(--fg);
  text-align:left;
}
.waitlist-success strong{
  font-size:14px;
  font-weight:650;
}
.waitlist-success span{
  color:var(--fg-muted);
  font-size:12px;
}
.waitlist-trap{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:620px){
  .waitlist-wrap{width:100%}
  .waitlist-form{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    padding:6px;
  }
  .waitlist-email{width:100%;height:46px}
  .waitlist-form .btn{width:100%;min-height:46px}
  .waitlist-success{width:100%;min-width:0}
}
