:root {
  color-scheme: light;

  --navy: #14213d;
  --ink: #0d1117;
  --body: #454b52;
  --muted: #6b7280;
  --line: #e5e8ec;
  --blue: #1d5fae;
  --teal: #0d5f70;
  --teal-soft: #eef6f8;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --green: #1c7a45;
  --green-soft: #e7f4ec;

  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --dark: #0b1220;
  --dark-2: #111a2e;
  --on-dark: #e8edf6;
  --on-dark-muted: #9aa8c0;

  --gutter: clamp(1.15rem, 4vw, 4rem);
  --measure: 68ch;
  --container: 1440px;
  --container-narrow: 1100px;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 9px;

  --fs-display: clamp(2.35rem, 6.2vw, 5rem);
  --fs-h1: clamp(2rem, 4.6vw, 3.4rem);
  --fs-h2: clamp(1.5rem, 2.9vw, 2.4rem);
  --fs-h3: clamp(1.05rem, 1.35vw, 1.25rem);
  --fs-lede: clamp(1.05rem, 1.55vw, 1.4rem);
  --fs-body: clamp(1rem, 1.05vw, 1.1rem);
  --fs-small: 0.9rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section + .section { border-top: 1px solid var(--line); }
.section--alt + .section, .section--dark + .section { border-top: 0; }

.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: -0.01em; font-size: 1.02rem;
}
.brand-dot {
  width: 0.66rem; height: 0.66rem; border-radius: 50%;
  background: linear-gradient(135deg, #4fd1e0, #2f7dd1);
}
.brand-sub { color: var(--on-dark-muted); font-weight: 500; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: var(--on-dark); text-decoration: none; font-size: 0.95rem;
  padding: 0.45rem 0.7rem; border-radius: var(--radius-sm);
}
.nav a:hover { background: rgba(255,255,255,0.09); }
.nav .btn { margin-left: 0.4rem; }
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: var(--radius-sm); padding: 0.4rem 0.6rem;
  font-size: 0.95rem; cursor: pointer;
}

.nav a.btn-on-dark { color: var(--ink); }
.nav a.btn-ghost-dark { color: #fff; }

.lang-switch { position: relative; }
.lang-switch--mobile { display: none; }
.lang-switch-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: var(--on-dark); border-radius: var(--radius-sm);
  padding: 0.42rem 0.7rem; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; line-height: 1;
}
.lang-switch-toggle:hover { border-color: var(--gold); color: #fff; }
.lang-switch[data-open="true"] .lang-switch-toggle { border-color: var(--gold); color: #fff; }
.lang-switch-globe { font-size: 0.95em; }
.lang-switch-code { letter-spacing: 0.04em; }
.lang-switch-caret { font-size: 0.6em; transition: transform .15s ease; }
.lang-switch[data-open="true"] .lang-switch-caret { transform: rotate(180deg); }

.lang-switch-menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  min-width: 12rem; margin: 0; padding: 0.4rem; z-index: 60;
  list-style: none; background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.lang-switch-menu[hidden] { display: none; }
.lang-switch-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.6rem 0.75rem; border-radius: 7px;
  color: var(--on-dark-muted); text-decoration: none; font-size: 0.93rem;
}
.lang-switch-menu a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.lang-switch-menu a.is-current {
  color: var(--gold); font-weight: 700; background: var(--gold-soft);
}
.lang-switch-menu a.is-current:hover { background: var(--gold-soft); }
.lang-switch-menu a.is-current::after { content: "✓"; }

@media (max-width: 720px) {

  .lang-switch--desktop .lang-switch-menu {
    position: static; box-shadow: none; border: 0; background: transparent;
    margin-top: 0.35rem; padding-left: 0.5rem;
  }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; margin-left: 0.5rem; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--dark); padding: 0.75rem var(--gutter) 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav .btn { margin: 0.35rem 0 0; text-align: center; }

  .lang-switch--desktop { display: none; }
  .lang-switch--mobile { display: inline-flex; margin-left: auto; }
}

.btn {
  display: inline-block; padding: 0.72rem 1.35rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, opacity .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-secondary { background: transparent; color: var(--teal); border-color: #b9d3d9; }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-sm { padding: 0.42rem 0.9rem; font-size: 0.9rem; }

.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--on-dark);
  padding-block: clamp(3.5rem, 9vw, 8rem);
  text-align: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(70px);
}
.hero::before {
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  top: -28%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47,125,209,.34), transparent 68%);
}
.hero::after {
  width: 46vw; height: 46vw; max-width: 700px; max-height: 700px;
  bottom: -34%; right: -8%;
  background: radial-gradient(circle, rgba(79,209,224,.20), transparent 68%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: #7fd8e8; }
.hero h1 {
  font-size: var(--fs-display); line-height: 1.06; margin: 0 0 1.15rem;
  letter-spacing: -0.03em; font-weight: 800; color: #fff;
  max-width: 18ch; margin-inline: auto;
}
.hero .lede {
  font-size: var(--fs-lede); color: var(--on-dark-muted);
  max-width: 62ch; margin: 0 auto 2rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem;
  font-weight: 700; color: var(--gold); margin: 0 0 1rem;
}

h1, h2, h3 { color: var(--navy); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; margin: 0 0 0.6rem; }
h3 { font-size: var(--fs-h3); font-weight: 700; margin: 0 0 0.35rem; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lede { font-size: var(--fs-lede); color: var(--muted); max-width: var(--measure); margin: 0; }
.section-head.center .lede { margin-inline: auto; }
.section--dark .section-head .lede { color: var(--on-dark-muted); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.2vw, 1.9rem); background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: #c9d3de; box-shadow: 0 6px 26px rgba(20,33,61,.09); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { color: var(--blue); font-weight: 600; font-size: 0.94rem; }

.tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: #f1f3f6; color: #5b6472;
}
.tag--live { background: var(--green-soft); color: var(--green); }

.steps { counter-reset: step; }
.step { padding-left: 3rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.05rem; height: 2.05rem; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  font-weight: 700; font-size: 0.92rem;
  display: flex; align-items: center; justify-content: center;
}
.section--dark .step::before { background: rgba(127,216,232,.16); color: #7fd8e8; }

.frame {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-alt);
}
.frame img { width: 100%; }
.frame figcaption { font-size: var(--fs-small); color: var(--muted); padding: 0.7rem 0.95rem; }
.frame--dark { border-color: rgba(255,255,255,.14); background: var(--dark-2); }
.frame--phone { max-width: 320px; margin-inline: auto; }

.callout {
  background: var(--teal-soft); border: 1px solid #d6e7eb;
  border-radius: var(--radius); padding: clamp(1.35rem, 2.5vw, 2.25rem);
}
.callout p:last-child { margin-bottom: 0; }

.prose { max-width: var(--measure); }
.prose h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem); margin: 2.4rem 0 0.75rem;
  padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .no-list { list-style: none; padding-left: 0; }
.prose .no-list li { padding-left: 1.7rem; position: relative; }
.prose .no-list li::before {
  content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 700;
}

.site-footer {
  background: var(--dark); color: var(--on-dark-muted);
  padding-block: clamp(2.5rem, 5vw, 4rem); font-size: 0.94rem;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.site-footer h4 {
  color: #fff; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin: 0 0 0.75rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-base {
  margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1); font-size: 0.88rem;
}

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}

.lang-banner {
  background: var(--dark-2); color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 0.94rem;
}
.lang-banner .container {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.6rem 1rem; padding-block: 0.7rem;
}
.lang-banner p { margin: 0; margin-right: auto; color: var(--on-dark); }
.lang-banner-close {
  background: transparent; border: 0; color: var(--on-dark-muted);
  cursor: pointer; font-size: 0.9rem; padding: 0.35rem 0.5rem;
  text-decoration: underline;
}
.lang-banner-close:hover { color: #fff; }

.highlight { color: var(--gold); font-weight: 700; }
.section--dark .highlight, .hero .highlight { color: var(--gold); }

.video-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem;
}
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute; inset: 0; background: rgba(5, 8, 15, 0.88);
}
.video-modal-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
}
.video-modal-close {
  position: absolute; top: -2.75rem; right: 0;
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  font-size: 1rem; line-height: 1; cursor: pointer;
}
.video-modal-close:hover { border-color: var(--gold); }
.video-modal-frame {
  width: 100%; aspect-ratio: 9 / 16; background: #000;
  border-radius: var(--radius); overflow: hidden;
}
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.timeline { margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.timeline-track {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(3.75rem, 9vw, 5rem) 0.5rem;
}
.timeline-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; background: var(--line); transform: translateY(-50%);
}
.timeline-item { position: relative; z-index: 1; }
.timeline-dot {
  display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.timeline-labels {
  position: absolute; left: 50%; width: 8rem; margin-left: -4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  text-align: center;
}
.timeline-item--above .timeline-labels { bottom: calc(100% + 0.75rem); }
.timeline-item--below .timeline-labels { top: calc(100% + 0.75rem); }
.timeline-date {
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.timeline-label { font-size: 0.78rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
