/* SPDX-License-Identifier: MIT */
:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #5d6862;
  --paper: #fffdf7;
  --canvas: #f4efe4;
  --line: #cfc8ba;
  --brand: #0f6b52;
  --brand-dark: #094a39;
  --orange: #e56c2f;
  --blue: #3477c9;
  --green: #238f64;
  --purple: #7957b8;
  --red: #c7473d;
  --yellow: #c99116;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }

.site-header,
main,
footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 5.5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--brand-dark); font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand svg { flex: 0 0 auto; }
.brand.small { font-size: 1.2rem; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
nav a { color: var(--muted); font-size: .95rem; font-weight: 650; text-decoration: none; }
nav a:hover,
nav a:focus-visible { color: var(--brand); text-decoration: underline; }

.hero { min-width: 0; min-height: 42rem; display: grid; align-content: center; justify-items: start; padding: 5rem 0 6rem; background: radial-gradient(circle at 86% 25%, rgba(229, 108, 47, .18) 0 8%, transparent 8.2%), radial-gradient(circle at 81% 29%, transparent 0 14%, rgba(15, 107, 82, .13) 14.2% 14.8%, transparent 15%); }
.eyebrow,
.kicker { color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .75rem; border: 1px solid var(--brand); border-radius: 100vw; }
.eyebrow span { font-size: .55rem; }
h1 { width: 100%; max-width: 13ch; margin: 1.6rem 0 1.4rem; overflow-wrap: anywhere; font-size: clamp(3.3rem, 8.8vw, 7.4rem); line-height: .93; letter-spacing: -.075em; }
h1 em { color: var(--brand); font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.hero-copy { max-width: 48rem; margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; padding: .85rem 1.25rem; border: 1px solid var(--ink); border-radius: .25rem; font-weight: 750; text-decoration: none; }
.button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button.primary:hover,
.button.primary:focus-visible { background: var(--brand-dark); }
.button.secondary:hover,
.button.secondary:focus-visible { background: var(--paper); }
.availability { max-width: 44rem; margin-top: 1.25rem; color: var(--muted); font-size: .88rem; }

.signal-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 1.15rem 1.4rem; border-block: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.section { padding: clamp(5rem, 10vw, 9rem) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(12rem, .7fr) 2fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-heading.compact { margin-bottom: 2rem; }
.kicker { margin: 0; }
h2 { max-width: 15ch; margin: 0; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
h3 { margin: 1.8rem 0 .8rem; font-size: 1.45rem; letter-spacing: -.025em; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.card { min-height: 20rem; padding: 1.5rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); box-shadow: inset 0 .42rem 0 var(--accent); }
.card p:last-child { color: var(--muted); line-height: 1.65; }
.card-number { margin: 0; color: var(--accent); font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 800; }
.accent-orange { --accent: var(--orange); }
.accent-blue { --accent: var(--blue); }
.accent-green { --accent: var(--green); }
.accent-purple { --accent: var(--purple); }
.accent-red { --accent: var(--red); }
.accent-yellow { --accent: var(--yellow); }

.flow { display: grid; grid-template-columns: .8fr 1.7fr; gap: clamp(2rem, 7vw, 7rem); }
.flow .section-heading { display: block; }
.flow .kicker { margin-bottom: 1rem; }
.flow-list { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow-list li { display: grid; grid-template-columns: minmax(8rem, .6fr) 1.5fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); counter-increment: flow; }
.flow-list li:last-child { border-bottom: 1px solid var(--line); }
.flow-list strong::before { content: "0" counter(flow) " "; color: var(--brand); font-family: ui-monospace, monospace; font-size: .72rem; }
.flow-list span { color: var(--muted); line-height: 1.6; }

.security { display: grid; grid-template-columns: 1.25fr .8fr; gap: clamp(3rem, 8vw, 8rem); background: var(--brand-dark); color: #f6f1e7; margin-inline: calc(50% - 50vw); padding-inline: max(1rem, calc((100vw - 1180px) / 2)); }
.security .kicker { color: #8dd8bf; }
.security-copy h2 { margin: 1rem 0 2rem; }
.security-copy > p:not(.kicker) { max-width: 48rem; color: #d7e3dc; line-height: 1.75; }
.security-facts { margin: 0; border-top: 1px solid rgba(255,255,255,.35); }
.security-facts div { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.security-facts dt { font-weight: 800; }
.security-facts dd { margin: .45rem 0 0; color: #bdcfc6; line-height: 1.5; }

.platform-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.platform-list li { min-height: 9rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.platform-list strong { font-size: 1.25rem; }
.platform-list span { color: var(--muted); font-size: .82rem; line-height: 1.4; }

.status { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 7rem); }
.status h2 { margin: 1rem 0 1.5rem; }
.status > div > p:last-child { max-width: 44rem; color: var(--muted); line-height: 1.7; }
.status-panel { align-self: start; padding: 1.5rem; border: 1px solid var(--ink); background: var(--paper); }
.status-panel > div { display: flex; gap: .7rem; align-items: center; }
.status-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .28rem rgba(35,143,100,.16); }
.status-panel a { display: inline-block; margin: 1.5rem 0; color: var(--brand); font-weight: 750; }
.status-panel p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

footer { display: grid; grid-template-columns: .6fr 1.4fr auto; gap: 2rem; align-items: center; padding: 2.5rem 0 4rem; color: var(--muted); font-size: .8rem; }
footer p { margin: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 800px) {
  .site-header { align-items: flex-start; padding: 1rem 0; }
  nav { display: grid; grid-template-columns: repeat(2, auto); }
  .hero { min-height: auto; padding-top: 4rem; background-size: 125%; }
  .section-heading,
  .flow,
  .security,
  .status { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-list { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 520px) {
  .site-header { display: block; }
  nav { margin-top: 1rem; display: flex; overflow-x: auto; padding-bottom: .3rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .card-grid,
  .platform-list { grid-template-columns: 1fr; }
  .flow-list li { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #edf3ee; --muted: #aebbb4; --paper: #161c19; --canvas: #0f1412; --line: #3b4540; --brand: #5fc6a1; --brand-dark: #123f32; }
  .button.primary { color: #071d16; }
  .security { background: #0a2c22; }
  .signal-strip { background: #edf3ee; color: #111715; }
}
