/* nautris · Trust and Authority design system (slate + green, dark-first).
   Brand-consistent with the product's review UI. No build step. */
/* Palette matched to the cinematic landing page (assets/landing.css):
   near-black ground, one electric-cyan accent, a violet partner. */
:root {
  --bg: #05060a; --bg-2: #070812; --surface: #0c0f1a; --surface-2: #111525;
  --muted: #141826; --border: #1c2333; --border-strong: #2b3446;
  --fg: #eef1f8; --fg-2: #c2cad8; --fg-3: #7d8698;
  --accent: #35e0ee; --accent-2: #22c7d8; --accent-dim: #35e0ee1a;
  --info: #35e0ee; --violet: #7c6cff; --warn: #f0a24b; --danger: #f0776b;
  --radius: 12px; --radius-sm: 8px; --maxw: 1140px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
  --t: 200ms cubic-bezier(.22,.8,.36,1);
  --shadow: 0 20px 60px -30px rgba(0,0,0,.85);
}
:root[data-theme="light"] {
  --bg: #f7f9fc; --bg-2: #eef2f7; --surface: #ffffff; --surface-2: #f1f5f9;
  --muted: #eef2f7; --border: #e2e8f0; --border-strong: #c6d0dc;
  --fg: #0a0d16; --fg-2: #384250; --fg-3: #64708090;
  /* deepened cyan so it stays legible on light surfaces (dark/light token discipline) */
  --accent: #0a9fb2; --accent-2: #0b8798; --accent-dim: #0a9fb214;
  --info: #0a9fb2;
  --shadow: 0 10px 40px -14px rgba(10,13,22,.16);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }
body {
  font-family: var(--font); background: var(--bg); color: var(--fg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ---- nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand svg { color: inherit; filter: drop-shadow(0 0 8px rgba(53, 224, 238, 0.32)); }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--fg-2); font-weight: 500; font-size: 15px; transition: color var(--t); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.nav-signin { color: var(--accent); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { background: var(--muted); border: 1px solid var(--border); color: var(--fg-2); width: 38px; height: 38px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; transition: var(--t); }
.icon-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.menu-btn { display: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform var(--t), filter var(--t), background var(--t), border-color var(--t); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #04121a; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--muted); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---- sections ---- */
section { padding: 96px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
h1,h2,h3 { letter-spacing: -.03em; line-height: 1.1; }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 14px; }
.sec-head p { color: var(--fg-3); font-size: 18px; }

/* ---- hero ---- */
.hero { padding: 88px 0 72px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-dim), transparent 70%); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--fg-2); font-weight: 500; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.hero h1 { font-size: clamp(38px, 6.5vw, 68px); font-weight: 800; margin: 22px 0 20px; max-width: 900px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--fg-2); max-width: 620px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--fg-3); font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* ---- terminal ---- */
.terminal { margin-top: 56px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.term-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .d1 { background: #ef4444; } .term-bar .d2 { background: #f59e0b; } .term-bar .d3 { background: #22c55e; }
.term-bar span { margin-left: 8px; color: var(--fg-3); font-family: var(--mono); font-size: 12px; }
.term-body { padding: 20px 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; overflow-x: auto; }
.term-body .c { color: var(--fg-3); } .term-body .p { color: var(--accent); } .term-body .k { color: var(--info); } .term-body .s { color: var(--violet); }
.term-body .out { color: var(--fg-2); }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat .n { font-family: var(--mono); font-size: clamp(28px, 4vw, 38px); font-weight: 700; background: linear-gradient(120deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--fg-3); font-size: 14px; margin-top: 4px; }

/* ---- bento features ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color var(--t), transform var(--t); }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--fg-3); font-size: 15px; }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-4 { grid-column: span 4; }

/* ---- animated flow: messy in -> core -> clean out ---- */
.flow { position: relative; display: grid; grid-template-columns: 1fr minmax(150px, 200px) 1fr; align-items: center; gap: 0; height: 260px; margin-bottom: 44px; }
.flow-zone { display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.flow-zone.in { align-items: flex-start; }
.flow-zone.out { align-items: flex-end; }
.flow-label { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.flow-label.warn { color: var(--warn); } .flow-label.ok { color: var(--accent); }
/* document cards */
.doc { width: 168px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; box-shadow: var(--shadow); }
.doc.messy { transform: rotate(-3deg); border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); }
.doc.messy:nth-child(3) { transform: rotate(2.5deg) translateX(10px); }
.doc.clean { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.doc .ln { height: 5px; border-radius: 3px; margin: 5px 0; }
.doc.messy .ln { background: color-mix(in srgb, var(--warn) 60%, var(--muted)); }
.doc.messy .ln:nth-child(1){ width: 90%; } .doc.messy .ln:nth-child(2){ width: 55%; margin-left: 18%; } .doc.messy .ln:nth-child(3){ width: 72%; } .doc.messy .ln:nth-child(4){ width: 40%; }
.doc.clean .ln { background: color-mix(in srgb, var(--accent) 55%, var(--muted)); }
.doc.clean .ln { width: 100%; }
.doc .tag { font-family: var(--mono); font-size: 9px; padding: 1px 5px; border-radius: 3px; display: inline-block; margin-bottom: 6px; }
.doc.messy .tag { color: var(--warn); background: var(--warn-dim, #f59e0b1a); }
.doc.clean .tag { color: var(--accent); background: var(--accent-dim); }
/* the core */
.flow-core { position: relative; z-index: 3; justify-self: center; width: 128px; height: 128px; border-radius: 26px; background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--accent-dim), var(--shadow); }
.flow-core svg { color: var(--accent); width: 46px; height: 46px; z-index: 2; }
.flow-core::before { content: ""; position: absolute; inset: -6px; border-radius: 30px; border: 2px solid var(--accent); opacity: 0; animation: corePulse 2.6s ease-out infinite; }
.flow-core .scan { position: absolute; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); top: 8px; border-radius: 2px; animation: coreScan 2.6s ease-in-out infinite; opacity: .8; }
.flow-core .lbl { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--fg-3); white-space: nowrap; }
@keyframes corePulse { 0% { transform: scale(.98); opacity: .6; } 70% { opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes coreScan { 0%,100% { top: 12px; } 50% { top: calc(100% - 14px); } }
/* animated beams (magicui-style): light streams along the paths */
.beams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.beams path { fill: none; vector-effect: non-scaling-stroke; }
.beams .rail { stroke: var(--border); stroke-width: 2; opacity: .5; }
.beams .beam { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 55 345; filter: drop-shadow(0 0 5px currentColor); animation: beamFlow 2.4s cubic-bezier(.5,0,.5,1) infinite; }
.beams .beam.in { stroke: var(--warn); color: var(--warn); }
.beams .beam.out { stroke: var(--accent); color: var(--accent); animation-delay: .9s; }
.beams .beam.d2 { animation-delay: .45s; } .beams .beam.out.d2 { animation-delay: 1.35s; }
@keyframes beamFlow { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .flow-core::before, .flow-core .scan { animation: none; }
  .beams .beam { animation: none; stroke-dasharray: none; opacity: .8; }
}
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; height: auto; gap: 22px; }
  .flow-zone.in, .flow-zone.out { align-items: center; }
  .beams { display: none; }
  .flow-core { margin: 4px 0 26px; }
}

/* ---- pipeline ---- */
.pipeline { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; }
.stage { flex: 1; min-width: 130px; text-align: center; padding: 22px 14px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.stage:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stage:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stage + .stage { border-left: 0; }
.stage .num { font-family: var(--mono); color: var(--accent); font-size: 12px; font-weight: 700; }
.stage h4 { font-size: 15px; margin: 6px 0 4px; }
.stage p { color: var(--fg-3); font-size: 12.5px; }
@media (max-width: 860px) { .stage { border-radius: var(--radius) !important; border-left: 1px solid var(--border) !important; min-width: 45%; } }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #04121a; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan .name { font-weight: 700; font-size: 18px; }
.plan .price { font-family: var(--mono); font-size: 34px; font-weight: 700; margin: 14px 0 4px; }
.plan .price small { font-size: 15px; color: var(--fg-3); font-weight: 400; }
.plan .desc { color: var(--fg-3); font-size: 14px; margin-bottom: 20px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--fg-2); }
.plan li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }
.trial { text-align: center; margin-top: 28px; color: var(--fg-3); font-size: 15px; }
.trial b { color: var(--fg); }

/* ---- docs/api split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.big-link { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; transition: border-color var(--t), transform var(--t); }
.big-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.big-link .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.big-link h3 { font-size: 22px; margin-bottom: 8px; }
.big-link p { color: var(--fg-3); }
.big-link .go { color: var(--accent); font-weight: 600; margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 48px 0; color: var(--fg-3); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--fg-3); transition: color var(--t); }
.foot-links a:hover { color: var(--fg); }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  /* Legal pages have only a few short links: keep them reachable on mobile by
     wrapping, rather than hiding them behind a .menu-btn that was never built. */
  /* Let the whole bar wrap (sticky, so it just grows) instead of clipping the
     nav-right button off the edge when brand + links + CTA exceed the width. */
  .nav-inner { flex-wrap: wrap; height: auto; row-gap: 8px; padding-block: 8px; }
  .nav-links { gap: 14px; font-size: 14px; flex-wrap: wrap; margin-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento > .card { grid-column: span 6 !important; }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .split { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
