/* Nagi website — dark, one accent, generous space. Shares tokens with the console. */
:root {
  --bg: #0b1215;
  --bg-2: #0d171b;
  --surface: #111a1e;
  --border: #22343b;
  --text: #e4eef0;
  --muted: #8da4ac;
  --faint: #62797f;
  --teal: #2ec4b6;
  --teal-ink: #03201d;
  --teal-soft: rgba(46, 196, 182, 0.12);
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 84px); letter-spacing: -0.015em; line-height: 1.02; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 640px; }
.lead.narrow { max-width: 560px; }
.small { font-size: 14px; }
.t-muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--teal); color: var(--teal-ink); border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.logo .mark { width: 60px; height: 20px; }
.mark path { fill: none; stroke: var(--teal); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.top.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.link { font-size: 14px; color: var(--muted); }
.link:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: #4ad6c9; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.sea { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(72px, 10vh, 120px);
}
.hero h1 { max-width: 14ch; margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 28px; }
.hero-foot { font-size: 13px; color: var(--faint); }

/* ---------- promises band ---------- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 64px var(--gutter); }
.promise .num { display: block; font-size: 12px; letter-spacing: 0.14em; color: var(--teal); margin-bottom: 20px; }
.promise p { color: var(--muted); margin: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split.reverse > .split-text { order: 2; }
.split-text p { color: var(--muted); max-width: 540px; }
.split-text h2 { margin-bottom: 20px; }

.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { position: relative; padding-left: 48px; color: var(--muted); }
.steps li strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--teal);
}

.console-fig { margin: 0; }
.console-fig svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45)); }
.console-fig figcaption { font-size: 13px; color: var(--faint); margin-top: 14px; text-align: center; }
.t-title { fill: #e4eef0; font: 600 15px var(--sans); }
.t-muted { fill: #8da4ac; font: 400 12px var(--sans); }
.t-small { fill: #8da4ac; font: 500 11px var(--sans); }
.t-calm { fill: #2ec4b6; font: 600 13px var(--sans); }
.t-step { fill: #62797f; font: 600 11px var(--sans); }
.t-step.on { fill: #2ec4b6; }
.t-step.now { fill: #03201d; }

.audience { margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience article { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.audience h3 { margin-bottom: 8px; }
.audience p { margin: 0; color: var(--muted); }

.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; color: var(--muted); }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.quiet-card {
  padding: clamp(32px, 4vw, 56px);
  border-radius: 20px;
  border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 50% 110%, rgba(46, 196, 182, 0.14), transparent 60%), var(--surface);
}
.mark-lg { width: 180px; height: 60px; margin-bottom: 28px; }
.quiet-quote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.quiet-card .t-muted { margin: 0; }

.place { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.place-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--border); font-size: 15px; }
.place-row:first-child { border-top: 0; }
.place-row span { color: var(--faint); font-size: 13px; padding-top: 2px; }
.place-row strong { font-weight: 500; }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #f07167; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #f07167; }
.form.sent { position: relative; }
.form.sent > :not(.thanks) { visibility: hidden; }
.thanks { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; }
.thanks h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin-bottom: 8px; }
.thanks p { color: var(--muted); max-width: 36ch; margin: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-2); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.foot nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.legal { font-size: 13px; color: var(--faint); max-width: 760px; line-height: 1.6; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > .split-text { order: 0; }
  .grid-3 { grid-template-columns: 1fr; gap: 32px; padding: 48px var(--gutter); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top { padding: 14px var(--gutter); }
  .top .link { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .place-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- text pages (privacy) ---------- */
.doc { max-width: 760px; padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(72px, 10vw, 120px); }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 24px; }
.doc .lead { margin-bottom: 12px; }
.doc h2 { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 14px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 500; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--teal); }
.doc a, .split-text a { color: var(--teal); }
.doc a:hover, .split-text a:hover { text-decoration: underline; }
