/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b10;
  --bg-alt: #101017;
  --surface: #15151d;
  --surface-2: #1b1b25;
  --border: #262632;
  --text: #ececf1;
  --muted: #a3a3b2;
  --accent: #e8875b;
  --accent-2: #f2b880;
  --ok: #7fd1a8;
  --radius: 14px;
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 750; text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr-only { 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: 12px; top: -48px; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.25em; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #1a0f08; font-weight: 650; text-decoration: none; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 24px -10px rgba(232,135,91,.7);
}
.btn:hover { color: #1a0f08; transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(232,135,91,.85); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { color: #fff; border-color: #3a3a48; box-shadow: none; }
.btn-small { padding: .5em .95em; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,16,.8);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(38,38,50,.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 7px; cursor: pointer; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links:not(.nav-static) {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links:not(.nav-static) a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .js .nav-links:not(.nav-static) .btn { margin-top: 16px; }
  html:not(.js) .nav-links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(232,135,91,.16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(242,184,128,.07), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-2); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: #c9c9d4; max-width: 38em; }
.lead strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Trace panel */
.trace { margin: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); font-family: var(--mono); font-size: .84rem; overflow: hidden; }
.trace-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #34343f; display: block; }
.trace-body { list-style: none; margin: 0; padding: 14px 16px 6px; }
.trace-body li { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.06); color: #d7d7e0; }
.trace-body li:last-child { border-bottom: 0; }
.trace-body em { color: var(--muted); font-style: normal; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 6px; text-align: center; border: 1px solid; }
.t-plan { color: #b8b8ff; border-color: rgba(184,184,255,.3); }
.t-tool { color: #8fd3ff; border-color: rgba(143,211,255,.3); }
.t-skill { color: #c6a7ff; border-color: rgba(198,167,255,.3); }
.t-mem { color: #9be0c0; border-color: rgba(155,224,192,.3); }
.t-appr { color: var(--accent-2); border-color: rgba(242,184,128,.45); }
.ok { color: var(--ok); font-size: .78rem; }
.pending { color: var(--accent-2); font-size: .78rem; }
.wait { background: rgba(232,135,91,.07); margin: 0 -16px; padding: 10px 16px !important; }
.trace figcaption { padding: 10px 16px 14px; color: var(--muted); font-family: var(--font); font-size: .8rem; border-top: 1px solid var(--border); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin-bottom: 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: #3a3a48; transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 36px; height: 36px; padding: 7px; margin-bottom: 18px; border-radius: 10px; background: rgba(232,135,91,.12); fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.panel h3 { font-size: 1.2rem; margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); font-size: .97rem; }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(127,209,168,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%237fd1a8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.roadmap { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.badge { display: inline-block; font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); margin-bottom: 14px; }
.step.now { border-color: rgba(232,135,91,.5); box-shadow: 0 0 0 1px rgba(232,135,91,.15) inset; }
.step.now .badge { color: #1a0f08; background: var(--accent-2); border-color: transparent; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 30px; border-radius: var(--radius); border: 1px solid rgba(232,135,91,.35); background: linear-gradient(120deg, rgba(232,135,91,.12), rgba(242,184,128,.04)); }
.callout h3 { font-size: 1.25rem; margin-bottom: 4px; }
.callout p { color: var(--muted); margin: 0; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about p { color: #c9c9d4; max-width: 36em; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principles li { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; }
.principles h3 { margin-bottom: 4px; font-size: 1.02rem; }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }

.contact { text-align: center; }
.contact h2, .contact .section-lead { margin-left: auto; margin-right: auto; }
.contact .section-lead { margin-bottom: 24px; }
.email-link { display: inline-block; font-size: clamp(1.35rem, 3.6vw, 2rem); font-weight: 650; letter-spacing: -0.01em; color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin-bottom: 18px; word-break: break-all; }
.email-link:hover { color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-grid p { margin: 0; }
.footer-grid nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--text); }
.fineprint { flex-basis: 100%; font-size: .8rem; color: #7c7c8c; }

/* ---------- Prose (privacy / 404) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; max-width: none; }
.prose p, .prose li { color: #c9c9d4; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.center { text-align: center; padding-top: 10vh; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 64px; }
  .section { padding: 72px 0; }
  .features, .split, .roadmap { grid-template-columns: 1fr; }
  .trace { font-size: .78rem; }
  .trace-body li { grid-template-columns: 68px 1fr auto; gap: 8px; }
  .callout { padding: 24px; }
  .callout .btn { width: 100%; }
}
