:root {
  --bg: #0b1622;
  --bg-alt: #101e2d;
  --bg-elevated: #152536;
  --border: #2a4058;
  --border-soft: #1e3146;
  --text: #e8eef4;
  --text-muted: #9aafc2;
  --text-dim: #6f8498;
  --accent: #4a9fd8;
  --accent-strong: #2f7fb8;
  --accent-soft: rgba(74, 159, 216, 0.12);
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.15);
  --success: #3d8a6a;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --max: 1100px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(47, 127, 184, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 10%, rgba(74, 159, 216, 0.08), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7ec4ef;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #061018;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #4a9fd8, #1e4a6e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.lang-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9ec9e4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  color: #f3f7fb;
}

.lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #4a9fd8, #2f7fb8);
  color: #061018;
  border-color: #5aaee4;
}

.btn-primary:hover {
  color: #061018;
  background: linear-gradient(180deg, #5aadde, #3a8fc8);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #d7ebf8;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
}

.hero-panel {
  background: linear-gradient(165deg, rgba(26, 58, 85, 0.75), rgba(15, 32, 48, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-panel h2 {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.meta-list div {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.75rem;
}

.meta-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.meta-list dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 30, 45, 0.65), rgba(16, 30, 45, 0.35));
  border-block: 1px solid var(--border-soft);
}

.section-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.section-intro,
.section p {
  color: var(--text-muted);
}

.section > .container > p,
.section > .container.narrow > p {
  margin: 0 0 1.1rem;
}

blockquote {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #d5e8f5;
  font-weight: 500;
  border-radius: 0 8px 8px 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.values li {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.values strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.values span {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.45;
}

.feature-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-grid li {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}

.feature-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #f0f5fa;
}

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

.diagram {
  margin: 2.5rem 0 0;
}

.diagram figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.diagram-wrap {
  background: #0a1420;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  overflow-x: auto;
}

.diagram-wrap svg {
  min-width: 720px;
  margin-inline: auto;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.status-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
}

.status-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.status-card p {
  margin: 0;
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
}

.note {
  margin-top: 1.5rem !important;
  padding: 0.95rem 1.1rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
  color: var(--text-dim) !important;
}

.cta-section {
  padding-bottom: 5rem;
}

.cta-box {
  text-align: center;
  background:
    linear-gradient(160deg, rgba(47, 127, 184, 0.18), rgba(15, 32, 48, 0.9) 55%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.75rem 1.75rem;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin-bottom: 0.85rem;
}

.cta-box p {
  max-width: 36rem;
  margin-inline: auto;
}

.cta-box .btn {
  margin-top: 0.5rem;
}

.cta-email-hint {
  margin-top: 1.1rem !important;
  font-size: 0.88rem;
  color: var(--text-dim) !important;
}

.cta-email-hint code {
  color: #c7d7e6;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.86rem;
}

.cta-email-hint em {
  color: var(--gold);
  font-style: normal;
  font-size: 0.82rem;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0 2.5rem;
  background: #08111a;
}

.footer-inner p {
  margin: 0 0 0.55rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-disclaimer {
  max-width: 48rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero-grid,
  .status-grid,
  .values {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav a:not(:last-of-type) {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .brand-text span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
