@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ol, ul, li, dl, dd, dt { margin: 0; }
  ol, ul { padding: 0; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
}

@layer base {
  :root {
    --bg: #08090a;
    --panel: #101112;
    --panel-raised: #151617;
    --line: #292b2d;
    --line-soft: rgba(255, 255, 255, .08);
    --ink: #f7f8f8;
    --ink-2: #d8dce2;
    --muted: #a7adb6;
    --quiet: #747982;
    --accent: #8fbd78;
    --accent-light: #a8cf95;
    --accent-dark: #152017;
    --dark-ink: #10150e;
    --radius: 12px;
    --sans: "Inter", system-ui, sans-serif;
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    font-feature-settings: "cv01", "ss03";
    -webkit-font-smoothing: antialiased;
  }

  ::selection { color: var(--dark-ink); background: var(--accent); }
  :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }

  .skip-link {
    position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px;
    color: var(--dark-ink); background: var(--accent); transform: translateY(-180%);
    transition: transform .15s ease;
  }
  .skip-link:focus { transform: translateY(0); }

  .section { padding: clamp(76px, 11vw, 148px) max(24px, 5vw); }
  .section-name, .audience { color: var(--accent-light); font-size: 14px; font-weight: 590; }
  h1, h2 { font-weight: 500; letter-spacing: -.036em; line-height: 1.02; text-wrap: balance; }
  h1 { max-width: 760px; font-size: clamp(48px, 6.7vw, 96px); }
  h2 { max-width: 720px; font-size: clamp(40px, 5vw, 72px); }
  h1 em, h2 em { color: var(--accent-light); font-style: normal; }
  h3 { letter-spacing: -.018em; }
  .section-intro > h2 { margin-top: 20px; }
  .section-intro > p:not(.section-name) { max-width: 620px; margin-top: 24px; color: var(--ink-2); font-size: 17px; line-height: 1.68; text-wrap: pretty; }
}

@layer components {
  .site-header {
    position: fixed; z-index: 10; inset: 0 0 auto; display: flex; align-items: center;
    justify-content: space-between; height: 84px; padding: 0 max(24px, 5vw);
    transition: background .2s ease, height .2s ease;
  }
  .site-header.scrolled { height: 64px; background: rgba(8, 9, 10, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.018em; }
  .brand-logo { width: 38px; height: 29px; object-fit: contain; }
  .logo-live { position: relative; display: block; width: 54px; transition: width .2s ease; }
  .logo-live .brand-logo { width: 100%; height: auto; }
  .eye { position: absolute; display: grid; width: 26.9%; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 50%; background: #f6f2e7; }
  .eye-l { top: 39.7%; left: 6.7%; }
  .eye-r { top: 51.9%; left: 37.5%; }
  .pupil { width: 38%; height: 38%; border-radius: 50%; background: #131313; transition: transform .1s ease-out; }
  .lid { position: absolute; inset: -2%; border-radius: 50%; background: #6f9254; transform: translateY(-105%); transition: transform .09s ease-in; }
  .eye.blink .lid { transform: translateY(0); }
  .site-header nav { display: flex; align-items: center; gap: 28px; color: var(--ink-2); font-size: 13px; }
  .site-header nav a { transition: color .15s ease, background .15s ease; }
  .site-header nav a:hover { color: var(--ink); }
  .nav-cta { padding: 10px 13px; border-radius: 6px; color: var(--dark-ink); background: var(--accent); font-weight: 600; }
  .site-header nav .nav-cta:hover { color: var(--dark-ink); background: var(--accent-light); }

  .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 650; transition: background .15s ease, color .15s ease; }
  .button-primary { margin-top: 36px; color: var(--dark-ink); background: var(--accent); }
  .button-primary:hover { background: var(--accent-light); }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, .78fr); gap: clamp(40px, 7vw, 120px); align-items: center; min-height: 780px; padding: 150px max(24px, 7vw) 88px; border-bottom: 1px solid var(--line); }
  .hero-copy { max-width: 760px; }
  .hero h1 { margin-top: 22px; }
  .hero-lede { max-width: 640px; margin-top: 28px; color: var(--ink-2); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.62; text-wrap: pretty; }
  .microcopy { margin-top: 17px; color: var(--muted); font-size: 13px; }

  .approval-record { width: min(100%, 460px); justify-self: end; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
  .record-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
  .record-bar span:last-child { color: var(--accent-light); }
  .record-body { padding: 18px; }
  .record-context { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
  .record-context span { color: var(--muted); font-size: 12px; }
  .record-context strong { font-size: 15px; font-weight: 600; letter-spacing: -.014em; }
  .record-step { padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
  .record-step-head { display: flex; align-items: center; gap: 9px; }
  .record-step-head h3 { font-size: 14px; font-weight: 600; letter-spacing: -.012em; }
  .step-mark { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--dark-ink); background: var(--accent); font-size: 11px; font-weight: 650; }
  .status { margin-left: auto; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 590; white-space: nowrap; }
  .status.approved { color: var(--accent-light); background: var(--accent-dark); }
  .status.allowed { color: var(--ink-2); background: #292c2d; }
  .record-step dl { display: grid; gap: 8px; margin-top: 14px; }
  .record-step dl > div { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 8px; }
  .record-step dt { color: var(--quiet); font-size: 11px; }
  .record-step dd { color: var(--ink-2); font-size: 12px; line-height: 1.5; }
  .record-step .exact-message { display: block; margin-top: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-raised); }
  .exact-message dd { margin-top: 4px; color: var(--ink); }
  .choice-copy { margin-top: 12px; color: var(--muted); font-size: 12px; }
  .choice-list { display: grid; gap: 6px; margin-top: 11px; list-style: none; }
  .choice-list li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11.5px; }
  .choice-list .selected { border-color: #5d7e4e; color: var(--ink); background: var(--accent-dark); }
  .choice-list .selected::before { content: "✓"; margin-right: 8px; color: var(--accent-light); font-weight: 650; }
  .record-result { display: grid; gap: 3px; padding-top: 17px; }
  .record-result span { color: var(--quiet); font-size: 11px; }
  .record-result strong { color: var(--ink); font-size: 12.5px; font-weight: 590; }
  .record-result small { color: var(--muted); font-size: 11px; }

  .promise-strip { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1fr); gap: clamp(28px, 8vw, 130px); align-items: center; padding: 42px max(24px, 7vw); border-bottom: 1px solid var(--line); }
  .promise-strip p:first-child { font-size: 16px; font-weight: 590; letter-spacing: -.016em; line-height: 1.45; }
  .promise-strip em { color: var(--muted); font-style: normal; font-weight: 500; }
  .promise-strip p:last-child { max-width: 570px; color: var(--muted); font-size: 14px; line-height: 1.65; }

  .workflow { border-bottom: 1px solid var(--line); }
  .workflow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 74px; list-style: none; }
  .workflow-list li { padding-top: 17px; border-top: 1px solid var(--line); }
  .step-number { color: var(--accent-light); font-size: 13px; font-weight: 650; }
  .workflow-list h3 { margin-top: 14px; font-size: 20px; font-weight: 500; line-height: 1.2; }
  .workflow-list p { margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.65; }

  .less { background: var(--panel); border-bottom: 1px solid var(--line); }
  .boundary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 46px; max-width: 1080px; margin-top: 72px; list-style: none; }
  .boundary-list li { display: grid; grid-template-columns: minmax(148px, .65fr) 1fr; gap: 18px; padding: 17px 0; border-top: 1px solid var(--line); }
  .boundary-list strong { color: var(--ink); font-size: 14px; font-weight: 600; }
  .boundary-list span { color: var(--muted); font-size: 13px; line-height: 1.6; }

  .pilot { border-bottom: 1px solid var(--line); }
  .pilot-scope { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
  .pilot-scope > div { min-height: 138px; padding: 22px; background: var(--panel); }
  .pilot-scope span { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
  .pilot-scope p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.58; }
  .pilot-note { margin-top: 18px; color: var(--quiet); font-size: 13px; }

  .join { display: flex; justify-content: space-between; gap: 68px; padding: clamp(76px, 10vw, 130px) max(24px, 7vw); color: var(--dark-ink); background: var(--accent); }
  .join .section-name { color: #3e542f; }
  .join h2 { margin-top: 20px; color: var(--dark-ink); }
  .join h2 em { color: #3e542f; }
  .join > div > p:last-child { max-width: 570px; margin-top: 20px; color: #405135; font-size: 16px; line-height: 1.65; }
  .join-action { flex: 0 1 390px; width: 100%; align-self: flex-end; }
  .waitlist-form { display: flex; flex-direction: column; gap: 9px; }
  .waitlist-form label { color: #314329; font-size: 13px; font-weight: 590; }
  .waitlist-form input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #557047; border-radius: 6px; color: var(--ink); background: var(--bg); font: inherit; font-size: 15px; }
  .waitlist-form input::placeholder { color: #aeb5bd; opacity: 1; }
  .waitlist-form input:focus-visible { outline-color: var(--dark-ink); }
  .button-dark { width: 100%; color: var(--ink); background: var(--bg); cursor: pointer; }
  .button-dark:hover { background: #20241d; }
  .waitlist-form button:disabled, .waitlist-form input:disabled { opacity: .7; cursor: default; }
  .waitlist-note { min-height: 20px; margin-top: 12px; color: #405135; font-size: 12px; line-height: 1.5; }
  .waitlist-note.ok { color: var(--dark-ink); font-size: 14px; font-weight: 590; }

  footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 34px max(24px, 7vw); color: var(--muted); font-size: 12px; }
  footer > p:last-child { justify-self: end; }

}

@layer responsive {
  @media (max-width: 940px) {
    .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 132px; }
    .approval-record { justify-self: start; width: min(100%, 540px); }
    .promise-strip { grid-template-columns: 1fr; gap: 16px; }
    .workflow-list { grid-template-columns: 1fr; max-width: 620px; gap: 27px; }
    .boundary-list { grid-template-columns: 1fr; max-width: 700px; }
    .pilot-scope { grid-template-columns: repeat(2, 1fr); }
    .pilot-scope > div { min-height: 166px; }
    .join { flex-direction: column; align-items: flex-start; gap: 42px; }
    .join-action { align-self: flex-start; }
  }

  @media (max-width: 620px) {
    .site-header { height: 68px; padding: 0 24px; }
    .site-header .brand-name, .site-header nav > a:not(.nav-cta) { display: none; }
    .site-header nav { gap: 0; }
    .nav-cta { padding: 9px 10px; font-size: 11px; }
    .logo-live { width: 46px; }
    .hero { gap: 36px; padding: 98px 24px 64px; }
    h1 { font-size: clamp(41px, 12.5vw, 54px); }
    h2 { font-size: clamp(35px, 10vw, 44px); }
    .hero-lede { margin-top: 21px; font-size: 16px; }
    .button-primary { width: 100%; margin-top: 28px; }
    .approval-record { margin: 0 -4px; width: calc(100% + 8px); }
    .record-body { padding: 15px; }
    .record-step dl > div { grid-template-columns: 86px minmax(0, 1fr); }
    .promise-strip { padding: 29px 24px 32px; }
    .section { padding: 74px 24px; }
    .section-intro > p:not(.section-name) { margin-top: 19px; font-size: 16px; }
    .workflow-list { margin-top: 49px; }
    .boundary-list { margin-top: 48px; }
    .boundary-list li { grid-template-columns: 1fr; gap: 5px; padding: 16px 0; }
    .pilot-scope { grid-template-columns: 1fr; margin-top: 48px; }
    .pilot-scope > div { min-height: 0; padding: 18px; }
    .join { padding: 74px 24px; }
    footer { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; }
    footer > p:last-child { justify-self: start; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
}
