/* ============================================================
   SovAuth.com — Sovereign identity / trust perimeter
   Palette: deep navy + teal-stone + restrained gold
   Type: Fraunces (display), Inter Tight (body), JetBrains Mono
   ============================================================ */

:root {
  /* Navy / trust architecture palette */
  --bg:           #0a1622;
  --bg-2:         #0d1b29;
  --surface:      #11202e;
  --surface-2:    #152838;
  --border:       #1f3447;
  --border-strong:#2a4761;

  --ink:          #e8eef4;
  --ink-2:        #c4ced9;
  --ink-mute:     #8c9aa9;
  --ink-faint:    #5d6c7c;

  --teal:         #7fb5b8;     /* restrained teal — primary accent */
  --teal-deep:    #4f9296;
  --gold:         #c9a96a;     /* understated gold */
  --gold-deep:    #b69556;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter Tight", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Scale */
  --container: 1180px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-soft: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px -30px rgba(0,0,0,0.55);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold); }

::selection { background: var(--gold); color: var(--bg); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--bg);
  padding: 8px 14px; font-weight: 600; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 34, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.brand-sov  { color: var(--ink); }
.brand-auth { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--gold) !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg) !important;
  border-color: var(--gold);
}

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary {
  background: var(--teal-deep);
  color: var(--bg);
  border-color: var(--teal-deep);
}
.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 18% 8%, rgba(127,181,184,0.10), transparent 60%),
    radial-gradient(700px 480px at 92% 22%, rgba(201,169,106,0.07), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,106,0.16);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.hero-lede {
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 16px;
}

.sale-note {
  display: inline-flex;
  max-width: 56ch;
  margin: 0 0 28px;
  padding: 10px 14px;
  border: 1px solid rgba(230, 183, 96, 0.24);
  border-radius: 999px;
  background: rgba(230, 183, 96, 0.08);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.hero-meta div {}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.hero-meta dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- Hero card ---------- */
.hero-card {
  position: relative;
  padding: 4px;
  background:
    linear-gradient(160deg, rgba(127,181,184,0.10), rgba(201,169,106,0.08));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card-frame {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 28px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.card-status { color: var(--gold); }

.card-domain {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}
.card-domain-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card-domain-name em {
  font-style: italic;
  font-weight: 400;
}
.card-domain-name span {
  color: var(--teal);
  font-weight: 300;
}

.card-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.card-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.card-attrs div {
  display: flex;
  flex-direction: column;
}
.card-attrs span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.card-attrs strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.card-foot {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

.card-glyph {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 240px; height: 240px;
  color: rgba(201, 169, 106, 0.22);
  z-index: 1;
  pointer-events: none;
}

.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}

/* ---------- Section base ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section-signal { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.section-usecases { background: var(--bg-2); }
.section-fit { background: var(--bg); }
.section-strategy { background: var(--bg-2); }

.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-num.light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.section-kicker {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0;
}

/* ---------- Signal grid ---------- */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.signal-card:hover {
  border-color: var(--border-strong);
}

.signal-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--ink);
}
.signal-card .signal-key {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  background: rgba(201, 169, 106, 0.08);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.signal-card p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
}

.pullquote {
  margin: 56px auto 0;
  max-width: 760px;
  padding: 36px 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.pullquote .quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.8;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

/* ---------- Use cases ---------- */
.usecases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.usecases li {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.usecases li:nth-child(odd) { padding-right: 40px; }
.usecases li:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--border); }
.uc-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 10px;
}
.usecases h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--ink);
}
.usecases p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- Fit ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.fit-head { margin-bottom: 0; }
.fit-body {
  display: grid;
  gap: 36px;
}
.fit-row {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.fit-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fit-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--ink);
}
.fit-row p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
}
.fit-row em { color: var(--gold); font-style: italic; }

/* ---------- Strategy ---------- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.strat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.strat-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  opacity: 0.7;
}
.strat-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink);
  max-width: 26ch;
}
.strat-card p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- CTA ---------- */
.section-cta {
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(127, 181, 184, 0.12), transparent 60%),
    radial-gradient(800px 420px at 80% 30%, rgba(201, 169, 106, 0.08), transparent 65%),
    var(--bg);
  padding: 104px 0 112px;
}
.cta-inner {
  max-width: 880px;
  text-align: center;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 14px 0 18px;
}
.cta-title span {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}
.cta-lede {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.cta-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(17, 32, 46, 0.5);
}
.cta-facts > div {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}
.cta-facts > div:last-child { border-right: 0; }
.cta-facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.cta-facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}
.cta-facts dd span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.cta-note {
  margin-top: 32px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 64px;
}
.footer-inner {
  display: grid;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin: 0 auto;
}
.footer-brand .brand-mark {
  width: 26px; height: 26px;
  color: var(--gold);
}
.footer-note {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 auto;
}
.footer-meta {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-meta a { color: var(--teal); }
.footer-meta a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .signal-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .usecases li:nth-child(odd),
  .usecases li:nth-child(even) {
    padding: 26px 0;
    border-left: 0;
  }
  .fit-grid { grid-template-columns: 1fr; gap: 36px; }
  .strategy-grid { grid-template-columns: 1fr; }
  .cta-facts { grid-template-columns: 1fr 1fr; }
  .cta-facts > div:nth-child(2) { border-right: 0; }
  .cta-facts > div:nth-child(1),
  .cta-facts > div:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px;
    background: transparent; border: 0; cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 22px; height: 1.5px; background: var(--ink);
    transition: transform .2s;
  }
  .site-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    gap: 16px;
  }

  .hero { padding: 48px 0; }
  .hero-title { font-size: 40px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .card-attrs { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .cta-facts { grid-template-columns: 1fr; }
  .cta-facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .cta-facts > div:last-child { border-bottom: 0; }
}

/* ---------- Motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
