@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/outfit-600.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --bg: #07090c;
  --bg-raise: #0e1218;
  --card: #12171e;
  --header-bg: rgba(7, 9, 12, 0.82);
  --line: rgba(232, 238, 246, 0.1);
  --line-strong: rgba(232, 238, 246, 0.16);
  --text: #eef3f8;
  --muted: #93a0b0;
  --faint: #6d7b8c;
  --accent: #3eb0ff;
  --accent-hot: #79cbff;
  --accent-soft: rgba(62, 176, 255, 0.12);
  --accent-line: rgba(62, 176, 255, 0.35);
  --on-accent: #04131c;
  --selected: rgba(62, 176, 255, 0.06);
  --foot: #0c1015;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --glow: rgba(62, 176, 255, 0.09);
  --cta-bg: linear-gradient(90deg, rgba(62, 176, 255, 0.16), rgba(62, 176, 255, 0.04) 46%, transparent), #12171e;
  --bg-image:
    radial-gradient(900px 420px at 88% -10%, var(--glow), transparent 60%),
    linear-gradient(180deg, #0a0d12 0%, var(--bg) 280px);
  --radius: 18px;
  --header: 72px;
  --wrap: 1120px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f5f8;
  --bg-raise: #ffffff;
  --card: #ffffff;
  --header-bg: rgba(243, 245, 248, 0.88);
  --line: rgba(18, 28, 40, 0.08);
  --line-strong: rgba(18, 28, 40, 0.14);
  --text: #141a21;
  --muted: #4c5b6b;
  --faint: #5e6e80;
  --accent: #0c6eab;
  --accent-hot: #0a6299;
  --accent-soft: rgba(12, 110, 171, 0.1);
  --accent-line: rgba(12, 110, 171, 0.35);
  --on-accent: #ffffff;
  --selected: rgba(12, 110, 171, 0.07);
  --foot: #f7f9fb;
  --shadow: 0 18px 40px rgba(20, 32, 48, 0.08);
  --glow: rgba(12, 110, 171, 0.14);
  --cta-bg: linear-gradient(90deg, rgba(12, 110, 171, 0.12), rgba(12, 110, 171, 0.03) 50%, #ffffff), #ffffff;
  --bg-image:
    radial-gradient(820px 380px at 90% -8%, var(--glow), transparent 62%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 320px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-image);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .brand-name, .btn {
  font-family: Outfit, "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; }
p { margin: 0; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn { width: 18px; height: 18px; }
.feature-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease;
}
.header-bar, .footer-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-bar { justify-content: space-between; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-name { font-size: 1.05rem; font-weight: 600; }
.mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.mark.sm { width: 22px; height: 22px; }
.mark svg { width: 100%; height: 100%; overflow: visible; }
.mark circle:first-child { fill: currentColor; }
.mark .ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.mark .outer { opacity: 0.55; }

.header-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: stretch;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-raise);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0 0.7rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.lang-toggle button + button { border-left: 1px solid var(--line); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.lang-toggle button:hover:not([aria-pressed="true"]) { color: var(--text); }

html[data-i18n-wait] body { visibility: hidden; }


.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 160ms ease;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.theme-toggle,
.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  color: var(--text);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.theme-toggle { display: inline-flex; }
.theme-toggle:hover,
.nav-toggle:hover { border-color: var(--accent-line); color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; position: relative; }
.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span:nth-of-type(2) { top: 17px; }
.nav-toggle span:nth-of-type(3) { top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.62rem 1rem;
  font-size: 0.95rem;
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 24px rgba(62, 176, 255, 0.16);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.btn-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-lg { padding: 0.95rem 1.35rem; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.4s ease-out infinite;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); max-width: 12ch; }
.lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-top: 1.8rem;
}
.hero-note { color: var(--muted); font-size: 0.98rem; max-width: 42rem; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.92rem;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.hero-copy > * {
  animation: rise 520ms ease both;
}
.hero-copy > *:nth-child(2) { animation-delay: 50ms; }
.hero-copy > *:nth-child(3) { animation-delay: 100ms; }
.hero-copy > *:nth-child(4) { animation-delay: 150ms; }
.hero-copy > *:nth-child(5) { animation-delay: 200ms; }

.panel {
  margin: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 86%, var(--accent)) 0%, var(--card) 38%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 640ms 80ms ease both;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.panel-top, .streams li, .panel-controls, .panel-foot {
  padding-inline: 1.1rem;
}
.panel-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.panel-top strong { display: block; font-size: 0.95rem; }
.panel-top span, .streams span, .panel-controls span, .foot-label {
  color: var(--faint);
  font-size: 0.82rem;
}
.count {
  border: 1px solid var(--accent-line);
  color: var(--accent) !important;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.streams { list-style: none; margin: 0; padding: 0.4rem 0; }
.streams li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-block: 0.75rem;
  border-left: 2px solid transparent;
  transition: background-color 180ms ease;
}
.streams li.is-selected {
  background: var(--selected);
  border-left-color: var(--accent);
}
.streams b { display: block; font-weight: 600; font-size: 0.98rem; }
.streams em {
  font-style: normal;
  color: var(--text);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.panel-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}
.panel-controls strong { display: block; font-size: 0.92rem; margin-top: 0.15rem; }
.panel-foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-block: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--foot);
}
.kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  color: var(--text);
}
.kbd-plus { color: var(--faint); font-size: 0.8rem; }
.foot-label { margin-left: 0.35rem; }

.section { padding: 4.5rem 0; }
.section-tight { padding-top: 1rem; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2, .cta-inner h2, .download-card h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}
.section-head p:last-child { margin-top: 0.8rem; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg-raise);
  padding: 1.6rem 1.5rem 1.7rem;
  transition: background-color 180ms ease;
  animation: rise 480ms ease both;
}
.feature:nth-child(2) { animation-delay: 70ms; }
.feature:nth-child(3) { animation-delay: 140ms; }
.feature:nth-child(4) { animation-delay: 210ms; }
.feature h3 { font-size: 1.35rem; margin-bottom: 0.45rem; }
.feature p { color: var(--muted); max-width: 36ch; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
  animation: rise 480ms ease both;
}
.steps li:nth-child(2) { animation-delay: 60ms; }
.steps li:nth-child(3) { animation-delay: 120ms; }
.steps li:nth-child(4) { animation-delay: 180ms; }
.step-icon {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.step-icon .icon { width: 16px; height: 16px; }
.steps h3 { margin: 0.9rem 0 0.4rem; font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }


.section-head p + p { margin-top: 0.75rem; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.advisory {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 46rem;
  margin-top: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  color: var(--text);
}
.advisory .icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent);
}
.advisory p { color: var(--text); }

.cta-band { padding: 0 0 1rem; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--cta-bg);
  border: 1px solid var(--accent-line);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.cta-inner p { margin-top: 0.4rem; color: var(--muted); }

.download-card {
  max-width: 46rem;
  padding: 2rem 0 0.5rem;
}
.download-card h2 { max-width: 18ch; }
.download-card p { margin-top: 1rem; color: var(--muted); font-size: 1.12rem; }
.file {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 0.92em;
  letter-spacing: 0;
}
.copyright {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
  font-size: 1rem !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--faint);
  font-size: 0.92rem;
  transition: border-color 180ms ease, color 180ms ease;
}
.footer-bar { height: auto; align-items: flex-start; flex-wrap: wrap; }
.footer-bar p { margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-line); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 900px) {
  .hero-grid, .features, .steps { grid-template-columns: 1fr; }
  .panel-controls { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  h1 { max-width: 14ch; }
}

@media (max-width: 720px) {
  .header-end { margin-left: auto; }
  .site-nav { margin-left: 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.8rem 1.25rem 1rem;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { width: 100%; }
  .hero { padding-top: 2.6rem; }
  .section { padding: 3rem 0; }
}

@media (min-width: 721px) {
  .header-bar { gap: 1.1rem; }
}

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

/* Dark mode only: full-page wash. Not applied when data-theme=light.
   Sections stay transparent so this body gradient shows through.
   Cards, feature tiles, and the navbar keep their own surfaces. */
html:not([data-theme="light"]) body {
  background-color: #121c30;
  background-image:
    radial-gradient(ellipse at center, rgba(62, 176, 255, 0.30), transparent 68%),
    radial-gradient(ellipse at center, rgba(108, 82, 196, 0.28), transparent 70%),
    radial-gradient(ellipse at center, rgba(61, 143, 255, 0.22), transparent 68%),
    radial-gradient(ellipse at center, rgba(86, 68, 176, 0.26), transparent 70%),
    linear-gradient(168deg, #1b3358 0%, #152844 24%, #1a284c 48%, #143052 72%, #182640 100%);
  background-repeat: no-repeat;
  background-size: 150% 70%, 140% 65%, 160% 75%, 145% 68%, 100% 100%;
  background-position: -8% 0%, 100% 22%, -6% 48%, 96% 78%, 0 0;
  animation: mp-ink-drift 22s ease-in-out infinite alternate;
}

@keyframes mp-ink-drift {
  from { background-position: -14% -6%, 108% 12%, -12% 38%, 104% 66%, 0 0; }
  to { background-position: 18% 14%, 62% 34%, 22% 62%, 58% 96%, 0 0; }
}

html:not([data-theme="light"]) main,
html:not([data-theme="light"]) .hero,
html:not([data-theme="light"]) .section,
html:not([data-theme="light"]) .cta-band,
html:not([data-theme="light"]) .download,
html:not([data-theme="light"]) .site-footer {
  background-color: transparent;
  background-image: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-theme="light"]) body {
    animation: none !important;
    background-color: #121c30;
    background-image:
      radial-gradient(ellipse at center, rgba(62, 176, 255, 0.30), transparent 68%),
      radial-gradient(ellipse at center, rgba(108, 82, 196, 0.28), transparent 70%),
      radial-gradient(ellipse at center, rgba(61, 143, 255, 0.22), transparent 68%),
      radial-gradient(ellipse at center, rgba(86, 68, 176, 0.26), transparent 70%),
      linear-gradient(168deg, #1b3358 0%, #152844 24%, #1a284c 48%, #143052 72%, #182640 100%);
    background-repeat: no-repeat;
    background-size: 150% 70%, 140% 65%, 160% 75%, 145% 68%, 100% 100%;
    background-position: -8% 0%, 100% 22%, -6% 48%, 96% 78%, 0 0;
  }
}
