/* ============================================================
   Omnia Nexus — Confidential AI Neocloud
   Theme: Light editorial / institutional
   Type:  Newsreader (serif display) · Inter (UI) · JetBrains Mono (technical)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* color — warm paper + ink + institutional pine */
  --paper:        #FBFAF6;
  --paper-2:      #F4F2EA;
  --surface:      #FFFFFF;
  --ink:          #14130F;
  --ink-2:        #3B382F;
  --ink-soft:     #6B675C;
  --line:         #E6E1D5;
  --line-2:       #D8D2C3;

  --accent:       #14564A;   /* deep pine */
  --accent-hov:   #0E463C;
  --accent-tint:  #E9F0EC;
  --accent-tint2: #DCE8E2;
  --accent-ink:   #0B322B;

  --brass:        #9A7B3F;   /* restrained warm signal */
  --danger:       #A23A2E;

  /* type scale (fluid) */
  --step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.8vw, 2.1rem);
  --step-3:  clamp(2rem, 1.68rem + 1.6vw, 3.1rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.6rem);

  /* space */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,19,15,.04), 0 8px 30px -12px rgba(20,19,15,.12);
  --shadow-lg: 0 2px 4px rgba(20,19,15,.05), 0 24px 60px -20px rgba(20,19,15,.22);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .5; }
.lede { color: var(--ink-2); font-size: var(--step-1); max-width: 58ch; line-height: 1.5; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-size: .96rem; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -12px rgba(20,86,74,.9); }
.btn--primary:hover { background: var(--accent-hov); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); transform: translateY(-1px); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: gap .18s ease, border-color .18s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: -.01em; font-size: 1.06rem; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand small { display:block; font-family: var(--mono); font-size:.58rem; letter-spacing:.16em; text-transform:uppercase; color: var(--ink-soft); font-weight:500; margin-top:1px;}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .93rem; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem) var(--sp-6); overflow: hidden; }
.hero::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(20,86,74,.06), transparent 60%),
    radial-gradient(50% 60% at 100% 0%, rgba(154,123,63,.05), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 500; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--ink-soft); }
.trust-row span { display: inline-flex; align-items: center; gap: .5rem; }
.trust-row span::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* attestation receipt card (hero visual) */
.receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--mono);
  font-size: .8rem;
}
.receipt-head { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.receipt-head .dot-row { display:flex; gap:.4rem; }
.receipt-head .dot-row i { width: 9px; height:9px; border-radius: 50%; background: var(--line-2); display:block; }
.receipt-head b { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .62rem; color: var(--ink-soft); }
.receipt-body { padding: 1.1rem; display: grid; gap: .55rem; }
.receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.receipt-row span:first-child { color: var(--ink-soft); }
.receipt-row .ok { color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.receipt-row .ok svg { width: 14px; height: 14px; }
.receipt-hash { padding: .8rem 1.1rem; border-top: 1px dashed var(--line-2); color: var(--ink-soft); font-size: .72rem; word-break: break-all; background: var(--paper-2); }
.receipt-hash b { color: var(--ink-2); font-weight: 500; }

/* ---------- Section headers ---------- */
.sec-head { max-width: 62ch; }
.sec-head h2 { font-size: var(--step-3); margin-top: 1rem; }
.sec-head .lede { margin-top: 1rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head--center .lede { margin-inline: auto; }

/* ---------- Access list (Section 2) ---------- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: var(--sp-4); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.access-item { padding: 1.9rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; background: var(--surface); transition: background .25s ease; }
.access-item:hover { background: var(--accent-tint); }
.access-item h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; gap: .7rem; letter-spacing: -.005em; }
.access-item h3 .x { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--paper-2); color: var(--danger); display: grid; place-items: center; }
.access-item h3 .x svg { width: 15px; height: 15px; }
.access-item p { margin-top: .7rem; color: var(--ink-2); font-size: .96rem; }
.access-resolve { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.access-resolve .big { font-family: var(--serif); font-size: var(--step-2); }
.access-resolve .big b { color: var(--accent); font-weight: 500; font-style: italic; }
.proof-close { margin-top: 1.4rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- Two ways (Section 3) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: var(--sp-4); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display:flex; align-items:center; gap:.5rem;}
.card .kicker .glyph { color: var(--brass); }
.card h3 { font-size: var(--step-1); }
.card .tag { font-style: italic; color: var(--accent-ink); font-family: var(--serif); font-size: 1.1rem; }
.card p { color: var(--ink-2); flex: 1; }
.card .btn { align-self: flex-start; margin-top: .4rem; }

/* ---------- How it works (Section 4) ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); margin-top: var(--sp-4); align-items: start; }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step .num {
  counter-increment: step; grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--mono); font-weight: 500;
  display: grid; place-items: center; font-size: 1rem;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; align-self: center; }
.step p { grid-column: 2; color: var(--ink-2); font-size: .96rem; margin-top: .4rem; }
.how-visual { position: sticky; top: 96px; }

/* ---------- Industries (Section 5) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: var(--sp-4); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: border-color .2s ease, transform .2s ease; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.tile .ico svg { width: 21px; height: 21px; }
.tile h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.tile p { margin-top: .5rem; color: var(--ink-2); font-size: .93rem; }

/* ---------- Proof (Section 6) ---------- */
.proof { background: var(--accent-ink); color: #EAF3EF; border-radius: 20px; padding: clamp(2rem, 5vw, 4rem); margin-top: var(--sp-3); }
.proof .eyebrow { color: #8FCBB9; }
.proof .eyebrow::before { background: #8FCBB9; }
.proof h2 { color: #fff; font-size: var(--step-3); margin-top: 1rem; }
.proof .lede { color: #C9DED7; }
.proof-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: var(--sp-4); }
.proof-list .pv { border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.1rem; }
.proof-list .pv .n { font-family: var(--mono); font-size: .74rem; letter-spacing:.1em; color: #8FCBB9; }
.proof-list .pv h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: #fff; margin-top: .5rem; }
.proof-list .pv p { color: #B9D2CA; font-size: .92rem; margin-top: .5rem; }
.proof .btn--primary { background: #fff; color: var(--accent-ink); }
.proof .btn--primary:hover { background: #EAF3EF; }
.proof-cta { margin-top: var(--sp-4); }

/* ---------- Sovereign (Section 7) ---------- */
.sov { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); margin-top: var(--sp-4); align-items: center; }
.sov-points { display: grid; gap: 1.2rem; }
.sov-points .sp { border-left: 2px solid var(--accent); padding-left: 1.2rem; }
.sov-points .sp h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; }
.sov-points .sp p { color: var(--ink-2); margin-top: .4rem; font-size: .96rem; }
.pods { aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Closing + launch ---------- */
.closing { text-align: center; padding-block: var(--sp-6); }
.closing h2 { font-size: var(--step-4); font-weight: 500; }
.closing h2 em { font-style: italic; color: var(--accent); }
.closing p { margin: 1.2rem auto 0; max-width: 46ch; color: var(--ink-2); font-size: var(--step-1); }
.closing .hero-cta { justify-content: center; }
.launch { margin-top: var(--sp-5); }
.launch-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.9rem; background: var(--surface);
  text-align: left;
}
.launch-card .badge { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--accent); padding: .4rem .7rem; border-radius: 999px; }
.launch-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.launch-card p { color: var(--ink-2); font-size: .95rem; margin-top: .3rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: var(--sp-5) var(--sp-3); margin-top: var(--sp-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-grid a { color: var(--ink-2); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--ink-soft); font-size: .9rem; margin-top: 1rem; max-width: 34ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--sp-4); padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }
.footer-base .placeholder { font-family: var(--mono); font-size: .72rem; }

/* ---------- License page ---------- */
.lic-hero { padding-block: clamp(3rem,7vw,6rem) var(--sp-5); }
.lic-hero .back { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); display:inline-flex; align-items:center; gap:.4rem; margin-bottom: 1.6rem; }
.lic-hero .back:hover { color: var(--accent); }
.lic-hero h1 { font-size: var(--step-4); font-weight: 500; max-width: 16ch; }
.lic-hero .lede { margin-top: 1.4rem; }
.lic-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: var(--sp-3); }
.choice { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--surface); }
.choice.is-active { border-color: var(--accent); background: var(--accent-tint); }
.choice h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.choice p { color: var(--ink-2); font-size: .94rem; margin-top: .5rem; }
.choice .link-arrow { margin-top: .9rem; }

.lic-main { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.lic-aside { position: sticky; top: 96px; }
.lic-aside .who { border-left: 2px solid var(--accent); padding-left: 1.2rem; color: var(--ink-2); }
.lic-aside .who h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-bottom: .6rem; }

/* form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--step-2); }
.form-card > p.muted { margin-top: .5rem; }
.field { display: grid; gap: .45rem; margin-top: 1.3rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field .hint { font-size: .78rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .8rem .9rem; width: 100%; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-submit { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--ink-soft); }
.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .92rem; display: none; }
.form-status.is-ok { display: block; background: var(--accent-tint); color: var(--accent-ink); border: 1px solid var(--accent-tint2); }
.form-status.is-err { display: block; background: #FBEDEB; color: var(--danger); border: 1px solid #F1D3CE; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .tile, .link-arrow svg { transition: none !important; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .how { grid-template-columns: 1fr; }
  .how-visual { position: static; }
  .sov { grid-template-columns: 1fr; }
  .lic-main { grid-template-columns: 1fr; }
  .lic-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* collapse nav to hamburger before it wraps */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand span { white-space: nowrap; }

  .mobile-menu.open { display: block; position: fixed; inset: 72px 0 0; background: var(--paper); z-index: 40; padding: 1.5rem; overflow-y: auto; }
  .mobile-menu.open a { display: block; padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); font-family: var(--serif); }
  .mobile-menu.open .btn { margin-top: 1.4rem; width: 100%; justify-content: center; }
}

@media (max-width: 720px) {
  .access { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .proof-list { grid-template-columns: 1fr; }
  .lic-choice { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .launch-card { grid-template-columns: 1fr; text-align: left; gap: .9rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: var(--sp-5); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .access-resolve .big { font-size: var(--step-1); }
}
