/* ==========================================================================
   Eiro Work — eirowork.com
   --------------------------------------------------------------------------
   DESIGN INTENT — "deep water". Read before changing anything.

   • The ground is not flat black. It is layered light: two wide radial washes
     (teal near, blue far) over a deep ink base, so the page has depth the way
     water does. If someone flattens this to a single background colour the
     whole direction collapses.
   • The accent runs aqua -> blue as a gradient, used on ONE phrase per view.
     Spend it there and nowhere else; it stops reading as luminous the moment
     it decorates.
   • Surfaces are glass: a faint white overlay, a 1px light border, and blur.
     They should feel lit from behind rather than drawn on top.
   • Rounded corners are correct HERE (unlike the drawing direction) because
     the language is optical, not draughting.
   • Data is the ornament. Timestamps, durations and counts carry the argument,
     so they are set large and tabular rather than decorated.
   ========================================================================== */

:root {
  --base:      #060F14;
  --base-2:    #08151B;
  --ink:       #F3FAFB;
  --ink-2:     #B7CDD3;
  --ink-3:     #8FA8AF;
  --ink-4:     #6B838B;
  --aqua:      #5FE3C8;
  --blue:      #5AB8F0;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --glass:     rgba(255,255,255,.045);
  --glass-2:   rgba(255,255,255,.015);
  --warn:      #FFC46B;

  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;

  --s--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --s--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.90rem);
  --s-0:  clamp(1rem, 0.96rem + 0.20vw, 1.10rem);
  --s-1:  clamp(1.18rem, 1.08rem + 0.45vw, 1.48rem);
  --s-2:  clamp(1.6rem, 1.32rem + 1.2vw, 2.5rem);
  --s-3:  clamp(2.2rem, 1.55rem + 2.9vw, 4.3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink-2);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--s-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 620px at 8% -10%, #123C4A 0%, transparent 62%),
    radial-gradient(1000px 540px at 96% 4%,  #0E2E4D 0%, transparent 58%),
    linear-gradient(180deg, var(--base-2) 0%, var(--base) 46%, var(--base) 100%);
  background-attachment: fixed;
}
@media (max-width: 700px) { body { background-attachment: scroll; } }

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

a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--blue); }
.doc a, .form-note a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: var(--s--1); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--aqua); margin: 0 0 18px;
}

/* the one luminous phrase */
.grad {
  background: linear-gradient(92deg, var(--aqua), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- masthead ---------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding-block: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.wordmark { font-size: var(--s-1); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.wordmark b { font-weight: 800; }
.masthead nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 28px); flex-wrap: wrap; }
.masthead nav a { font-size: var(--s--1); color: var(--ink-3); font-weight: 500; }
.masthead nav a:hover { color: var(--ink); }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 9px;
  background: linear-gradient(180deg, var(--aqua), #3FCBAF);
  color: #04231D !important; font-weight: 700; font-size: var(--s--1);
  border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 12px 30px -14px rgba(95,227,200,.65);
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn:hover { color: #04231D !important; transform: translateY(-1px); box-shadow: 0 16px 36px -14px rgba(95,227,200,.8); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--ink) !important; border: 1px solid var(--line-2);
  box-shadow: none; font-weight: 600;
}
.btn-ghost:hover { color: var(--aqua) !important; border-color: rgba(95,227,200,.5); background: rgba(95,227,200,.06); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(52px, 9vw, 116px) clamp(26px, 4vw, 48px); }
.hero h1 {
  font-size: var(--s-3); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
  color: var(--ink); margin: 0 0 22px; max-width: 17ch; text-wrap: balance;
}
.lede { font-size: var(--s-1); color: var(--ink-3); max-width: 54ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: var(--s--1); color: var(--ink-4); margin: 20px 0 0; }

/* ---------- signature: the trace ---------- */
.trace {
  margin-block: clamp(30px, 5vw, 60px);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  backdrop-filter: blur(8px);
}
.trace-h {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-size: var(--s--2); color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase;
}
.trace svg { display: block; width: 100%; height: auto; }
.trace-f {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; border-top: 1px solid var(--line);
  font-size: var(--s--2); color: var(--ink-4);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 8vw, 104px); border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head h2 {
  font-size: var(--s-2); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em;
  color: var(--ink); margin: 0 0 14px; text-wrap: balance;
}
.section-head p { color: var(--ink-3); margin: 0; }

/* ---------- questions ---------- */
.qs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .qs { grid-template-columns: repeat(3, 1fr); } }
.q {
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
}
.q h3 { font-size: var(--s-1); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px; }
.q p { margin: 0; color: var(--ink-3); font-size: var(--s--1); }

/* ---------- stages ---------- */
.stage {
  display: grid; gap: clamp(20px, 4vw, 46px); align-items: center;
  padding-block: clamp(28px, 4.5vw, 52px); border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
.stage:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 920px) { .stage { grid-template-columns: 1.05fr 0.95fr; } }
@media (min-width: 920px) { .stage.flip > .unit { order: -1; } }
.state-tag {
  display: inline-block; border: 1px solid rgba(95,227,200,.35); color: var(--aqua);
  background: rgba(95,227,200,.08); border-radius: 999px;
  font-size: var(--s--2); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; margin-bottom: 14px;
}
.stage h3 { font-size: var(--s-2); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 12px; }
.stage p { margin: 0 0 14px; color: var(--ink-3); max-width: 48ch; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 24px; margin-block: 8px; font-size: var(--s--1); color: var(--ink-3); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.52em; width: 12px; height: 12px;
  border-radius: 50%; border: 1.5px solid rgba(95,227,200,.55); background: rgba(95,227,200,.14);
}

/* glass device unit */
.unit {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  backdrop-filter: blur(8px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.9);
}
.unit-h {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: var(--s--2); color: var(--ink-4); letter-spacing: 0.05em; text-transform: uppercase;
}
.unit-b { padding: 16px; display: grid; gap: 11px; }
.rec { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; display: grid; gap: 5px; background: rgba(255,255,255,.022); }
.rec .t { font-size: var(--s--1); font-weight: 600; color: var(--ink); line-height: 1.3; }
.rec .m { font-size: var(--s--2); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.pill {
  justify-self: start; font-size: var(--s--2); font-weight: 600; padding: 3px 10px;
  border-radius: 999px; border: 1px solid rgba(95,227,200,.35); color: var(--aqua); background: rgba(95,227,200,.09);
}
.pill.warn { border-color: rgba(255,196,107,.35); color: var(--warn); background: rgba(255,196,107,.09); }
.meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--aqua), var(--blue)); }
.kv {
  display: flex; justify-content: space-between; gap: 12px; font-size: var(--s--2);
  color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.kv:last-child { border-bottom: 0; padding-bottom: 0; }
.kv b { color: var(--ink); font-weight: 700; }
.big {
  font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; text-align: center;
  color: var(--ink); font-variant-numeric: tabular-nums; padding-block: 6px;
}

/* ---------- capabilities ---------- */
.caps { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .caps { grid-template-columns: repeat(3, 1fr); } }
.cap {
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 2.6vw, 24px);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
}
.cap h3 { font-size: var(--s-0); font-weight: 700; color: var(--ink); margin: 0 0 7px; letter-spacing: -0.015em; }
.cap p { margin: 0; color: var(--ink-3); font-size: var(--s--1); }

/* ---------- evidence ledger ---------- */
.ledger {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--glass), var(--glass-2)); backdrop-filter: blur(8px);
}
.ledger-h { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: var(--s--1); color: var(--ink-3); }
.ledger-r {
  display: grid; grid-template-columns: 106px 1fr; gap: 16px; align-items: baseline;
  padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: var(--s--1); color: var(--ink-3);
}
.ledger-r:last-child { border-bottom: 0; }
.ledger-r .f { font-size: var(--s--2); font-weight: 600; color: var(--aqua); letter-spacing: 0.06em; text-transform: uppercase; }
.ledger-r b { color: var(--ink); font-weight: 700; }

/* ---------- trust ---------- */
.trust { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: linear-gradient(180deg, var(--glass), var(--glass-2)); }
.trust dt { font-size: var(--s--1); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.trust dd { margin: 0; font-size: var(--s--1); color: var(--ink-3); }

/* ---------- demo ---------- */
.demo { display: grid; gap: clamp(26px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1fr; } }
.form-card {
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3.4vw, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,.06), var(--glass-2));
  backdrop-filter: blur(10px); box-shadow: 0 40px 80px -50px rgba(0,0,0,.95);
}
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: var(--s--2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.field input, .field select, .field textarea {
  background: rgba(0,0,0,.28); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 13px; font: inherit; font-size: var(--s--1); color: var(--ink); width: 100%;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(95,227,200,.6); box-shadow: 0 0 0 3px rgba(95,227,200,.12);
}
.form-note { font-size: var(--s--2); color: var(--ink-4); margin: 14px 0 0; }
.form-status { font-size: var(--s--1); margin: 14px 0 0; min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--aqua); }
.form-status.err { color: #FF8A7A; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: clamp(52px, 9vw, 104px);
  padding-block: 40px 68px; color: var(--ink-4); font-size: var(--s--1);
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--aqua); }

/* ---------- legal documents ---------- */
.doc { padding-block: clamp(40px, 7vw, 72px); }
.doc h1 { font-size: var(--s-2); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 10px; }
.doc .meta { font-size: var(--s--1); color: var(--ink-4); margin: 0 0 40px; }
.doc h2 { font-size: var(--s-1); font-weight: 700; color: var(--ink); margin: 44px 0 12px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-3); }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-block: 6px; }
.doc strong { color: var(--ink); font-weight: 700; }
.note { border-left: 2px solid var(--aqua); background: rgba(95,227,200,.05); border-radius: 0 12px 12px 0; padding: 16px 18px; }
.note p { margin-block: 9px; }

.table-scroll { overflow-x: auto; margin-block: 20px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: var(--s--1); min-width: 480px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-3); }
tr:last-child td { border-bottom: 0; }
th { background: rgba(255,255,255,.04); color: var(--ink); font-weight: 700; white-space: nowrap; }
td:first-child { color: var(--ink); }

/* This site commits to its dark identity — the depth IS the design. Light-mode
   readers get slightly lifted text rather than an inversion. */
@media (prefers-color-scheme: light) { :root { --ink-2: #C6DBE0; --ink-3: #9DB6BD; } }
