@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #081828;
  --bg-soft: #0b2135;
  --line: rgba(139, 166, 214, 0.18);
  --grid: rgba(139, 166, 214, 0.06);
  --text: #f5faff;
  --muted: #b5ced9;
  --faint: #9db3c4;
  --blue: #5b9bff;
  --teal: #0ee4d2;
  --danger: #ff9a9a;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

a { color: #8fb8ff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b7d1ff; }
a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: #04121a;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Decorative backdrop ---------- */

.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100%, 860px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -4%, rgba(14, 228, 210, 0.1), transparent 62%),
    radial-gradient(1000px 640px at 8% 0%, rgba(91, 155, 255, 0.12), transparent 62%);
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 85% at 72% 18%, #000 0%, transparent 78%);
  mask-image: radial-gradient(75% 85% at 72% 18%, #000 0%, transparent 78%);
}

.motif {
  position: absolute;
  top: 40px;
  right: -2%;
  width: min(1100px, 130%);
  height: 640px;
  opacity: 0.85;
}

/* ---------- Header ---------- */

.site-header { padding-block: 22px; }

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

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

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-accent { color: var(--teal); }

.status-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 228, 210, 0.18);
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(28px, 6vw, 84px) clamp(56px, 8vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.accent { color: #8fb8ff; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent {
    background: linear-gradient(95deg, #9cc2ff 0%, #5b9bff 38%, #0ee4d2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (forced-colors: active) {
  .accent {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

.lead {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

/* ---------- Signup card ---------- */

.signup-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 38, 60, 0.82), rgba(8, 24, 40, 0.86));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@supports (backdrop-filter: blur(8px)) {
  .signup-card { backdrop-filter: blur(10px); }
}

.signup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 228, 210, 0.7), rgba(91, 155, 255, 0.7), transparent);
}

.card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.card-intro {
  margin: 0 0 24px;
  color: var(--muted);
}

.field { margin-bottom: 16px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-row .field { min-width: 0; }

label {
  display: block;
  margin-bottom: 6px;
  color: #cfd9ee;
  font-size: 0.875rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 166, 214, 0.3);
  border-radius: 10px;
  background: #061320;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:hover,
input[type="email"]:hover { border-color: rgba(139, 166, 214, 0.5); }

input[type="text"]:focus-visible,
input[type="email"]:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 228, 210, 0.28);
}

input[aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.85rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent { margin: 20px 0 8px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent-row input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.consent-row input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.consent-row label {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

.notice {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.notice-error {
  border: 1px solid rgba(255, 154, 154, 0.4);
  background: rgba(255, 120, 120, 0.08);
  color: #ffd0d0;
}

.notice-info {
  border: 1px solid rgba(14, 228, 210, 0.4);
  background: rgba(14, 228, 210, 0.07);
  color: #d5f5f0;
  line-height: 1.55;
}

.success-note { margin-top: 10px !important; font-size: 0.9rem; }

.button {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(95deg, #7fb0ff 0%, #0ee4d2 100%);
  box-shadow: 0 10px 30px -12px rgba(14, 228, 210, 0.55);
  color: #04121a;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.button:hover { filter: brightness(1.07); }

.button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.button[disabled] {
  cursor: progress;
  filter: saturate(0.6) brightness(0.92);
}

.privacy-brief {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.55;
}

.success {
  padding: 8px 0 4px;
  text-align: left;
}

.success:focus { outline: none; }

.success-icon { color: var(--teal); margin-bottom: 12px; }

.success h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.success p { margin: 0; color: var(--muted); }

/* ---------- Capabilities ---------- */

.capabilities {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 33, 53, 0.6), rgba(8, 24, 40, 0));
}

.section-head { max-width: 44rem; }

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-lead { margin: 0; color: var(--muted); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.cap {
  padding: 28px;
  background: var(--bg-soft);
}

.cap-icon {
  box-sizing: content-box;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 228, 210, 0.07);
  color: var(--teal);
}

.cap h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.cap p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
}

.disclaimer {
  max-width: 62rem;
  margin: 0 0 24px;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer-row p { margin: 0; }

/* ---------- Privacy / long-form page ---------- */

.doc { padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px); }

.prose { max-width: 46rem; }

.prose h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.prose .updated { margin: 0 0 32px; color: var(--faint); font-size: 0.9rem; }

.prose h2 {
  margin: 40px 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.prose p, .prose li { color: #c3cfe6; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: #c3cfe6; }
.prose th { color: var(--text); background: rgba(255, 255, 255, 0.03); font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lead { max-width: 40em; }
  .motif { opacity: 0.32; top: 24px; right: -30%; }
  .motif-marker { display: none; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 1rem; }
  .status-chip { padding: 5px 11px; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; left: -10000px; }
  .prose td { border-top: 0; }
  .prose td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .prose tr { margin-bottom: 12px; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Narrow phones: keep logo, wordmark and status chip on one line without horizontal scrolling. */
.brand { min-width: 0; }
.status-chip { flex-shrink: 0; }

@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 0.98rem; }
  .status-chip { gap: 6px; padding: 5px 10px; font-size: 0.74rem; }
}

@media (max-width: 340px) {
  .brand-name { font-size: 0.9rem; }
  .status-chip { padding: 4px 8px; font-size: 0.7rem; }
}