/* ==========================================================================
   AiDdictEd — landing
   Editorial paper, electric blue, one glass icon.
   ========================================================================== */

:root {
  --paper: #f5f2ea;
  --paper-2: #fbf9f3;
  --paper-3: #ede9df;
  --ink: #0c0e13;
  --ink-2: #30343d;
  --muted: #666a72;
  --line: rgba(12, 14, 19, 0.14);
  --line-strong: rgba(12, 14, 19, 0.26);
  --brand-blue: #1233e8;
  --blue: #1233e8;
  --blue-deep: #0a1e9c;
  --blue-soft: #e6e9ff;
  --blue-ghost: #b9c6ff;
  --red: #f04438;
  --green: #1e8e5a;
  --night: #080a10;
  --radius: 22px;
  --radius-lg: 30px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --font-display: "Literata", "Iowan Old Style", Georgia, serif;
  --font-sans: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.22, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0d12;
  --paper-2: #11141b;
  --paper-3: #181d26;
  --ink: #f4f1e9;
  --ink-2: #c5c8c5;
  --muted: #9a9c98;
  --line: rgba(244, 241, 233, 0.14);
  --line-strong: rgba(244, 241, 233, 0.28);
  --brand-blue: #1233e8;
  --blue: #8ea6ff;
  --blue-deep: #6f86ff;
  --blue-soft: rgba(142, 166, 255, 0.14);
  --blue-ghost: #c6d2ff;
  --red: #ff6b5f;
  --green: #54d18a;
  --night: #05070b;
}

:root[data-theme="dark"] .privacy-panel {
  color: #f5f2ea;
}

:root[data-theme="dark"] .privacy-item h4 {
  color: #f5f2ea;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: var(--noise);
  background-size: 200px 200px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

::selection {
  background: var(--brand-blue);
  color: #fff;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.final__panel a:focus-visible {
  outline-color: #fff;
}

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.index {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-2);
}

.mono-inline {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.02em;
  color: var(--blue);
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(18, 51, 232, 0.72);
}

.btn--primary:hover {
  background: #0c27d8;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -18px rgba(18, 51, 232, 0.82);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--brand-blue);
  color: #fff;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}

.btn--light:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.btn__icon .icon {
  width: 15px;
  height: 15px;
}

.btn:hover .btn__icon {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, 0.24);
}

.btn--light .btn__icon {
  background: rgba(12, 14, 19, 0.08);
}

.btn--light:hover .btn__icon {
  background: rgba(12, 14, 19, 0.14);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  font-size: 12.5px;
}

.btn--sm .icon {
  width: 14px;
  height: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--blue);
  border-bottom-color: currentColor;
}

.text-link:hover .icon {
  transform: translateY(2px);
}

.text-link--blue {
  color: var(--blue);
}

.text-link--blue:hover .icon {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 242, 234, 0.94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 14px -8px rgba(10, 20, 90, 0.55);
}

.brand__word {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand__edition {
  padding: 3px 5px;
  border: 1px solid rgba(18, 51, 232, 0.18);
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  transform: translateY(-5px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  white-space: nowrap;
}

.status-pill .icon {
  width: 12px;
  height: 12px;
  color: var(--blue);
}


/* Language switch */

.lang-switch {
  position: relative;
  flex: none;
}

.lang-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.lang-switch__button::-webkit-details-marker {
  display: none;
}

.lang-switch__button:hover {
  border-color: rgba(18, 51, 232, 0.38);
  color: var(--blue);
}

.lang-switch__button .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.lang-switch__code {
  min-width: 1.4em;
  text-align: left;
}

.lang-switch__chevron {
  width: 11px !important;
  height: 11px !important;
  color: var(--muted) !important;
  transition: transform 0.25s var(--ease);
}

.lang-switch[open] .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 196px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-2);
  box-shadow: 0 24px 50px -26px rgba(12, 14, 19, 0.45);
  animation: menuIn 0.18s var(--ease);
}

.lang-switch__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.lang-switch__menu a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.lang-switch__menu a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}

.lang-switch__mini {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.lang-switch__check {
  width: 13px !important;
  height: 13px !important;
  color: var(--blue) !important;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Theme toggle */

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: rgba(18, 51, 232, 0.38);
  color: var(--blue);
}

.theme-toggle .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.theme-toggle__sun {
  display: none;
}

html:not(.js) .theme-toggle {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

/* Header CTA */

.header-cta__label {
  display: inline;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(18px, 3vw, 36px) 0 clamp(56px, 8vw, 100px);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(12, 14, 19, 0.055) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  top: 1%;
  right: -12%;
  width: min(78vw, 920px);
  height: min(78vw, 920px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(18, 51, 232, 0.19) 0,
    rgba(18, 51, 232, 0.07) 42%,
    rgba(18, 51, 232, 0) 68%
  );
  filter: blur(10px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: min(780px, calc(100svh - 96px));
}

.hero__copy {
  max-width: 650px;
  padding-block: clamp(18px, 4vw, 46px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker__mark {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 1px;
  transform: rotate(45deg);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-2);
}

.badge .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.badge--alpha {
  background: rgba(18, 51, 232, 0.055);
  border-color: rgba(18, 51, 232, 0.18);
}

.badge--testing {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.badge--testing .pulse-dot {
  background: var(--blue-ghost);
  animation: blink 2.6s ease-in-out infinite;
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: inherit;
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.6);
  }
  70% {
    opacity: 0;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero__title {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(3.05rem, 6.15vw, 5.7rem);
  font-weight: 350;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__line {
  display: block;
}

.hero__accent {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--blue);
}

.hero__accent em {
  font-style: italic;
  font-weight: 400;
}

.hero__dash {
  margin-left: 0.06em;
}

.hero__underline {
  position: absolute;
  bottom: -0.075em;
  left: 0;
  width: 100%;
  height: 0.16em;
  color: var(--blue);
  opacity: 0.36;
}

.hero__lede {
  max-width: 550px;
  margin-bottom: 30px;
  font-size: clamp(1.02rem, 1.32vw, 1.18rem);
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 15px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.hero__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.hero__meta-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 540px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

.hero__note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--blue);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 540px);
  aspect-ratio: 1;
  animation: stageIn 1s 0.2s var(--ease) both;
}

.stage__aura {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(18, 51, 232, 0.23),
    rgba(18, 51, 232, 0.08) 45%,
    transparent 70%
  );
  filter: blur(8px);
}

.stage__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.stage__ring--1 {
  inset: 4%;
  border: 1px solid rgba(18, 51, 232, 0.14);
}

.stage__ring--2 {
  inset: 13%;
  border: 1px dashed rgba(18, 51, 232, 0.24);
  animation: spin 70s linear infinite;
}

.stage__dot {
  position: absolute;
  top: 10.4%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(18, 51, 232, 0.1);
  transform: translateX(-50%);
}

.stage__object {
  position: relative;
  z-index: 2;
  width: 63%;
  aspect-ratio: 1;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
}

.stage__tilt {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22.5%;
  background: var(--brand-blue);
  box-shadow:
    0 36px 60px -28px rgba(10, 22, 90, 0.6),
    0 14px 24px -16px rgba(10, 22, 90, 0.4);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
}

.stage__tilt picture,
.stage__tilt img {
  width: 100%;
  height: 100%;
}

.stage__tilt img {
  object-fit: cover;
}


.stage__chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(251, 249, 243, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -12px rgba(10, 22, 90, 0.35);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease);
}

.stage__chip .icon {
  width: 12px;
  height: 12px;
  color: var(--blue);
}

.stage__chip--ai {
  top: 2%;
  left: 0;
}

.stage__chip--dict {
  top: 22%;
  right: -1%;
}

.stage__chip--ed {
  bottom: 12%;
  left: -2%;
}

.stage:hover .stage__chip {
  border-color: rgba(18, 51, 232, 0.28);
}

.stage__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.stage__caption-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Hero entrance */

.js .hero__copy > * {
  animation: heroIn 0.8s var(--ease) both;
}

.js .hero__copy > *:nth-child(1) {
  animation-delay: 0.02s;
}

.js .hero__copy > *:nth-child(2) {
  animation-delay: 0.08s;
}

.js .hero__copy > *:nth-child(3) {
  animation-delay: 0.14s;
}

.js .hero__copy > *:nth-child(4) {
  animation-delay: 0.2s;
}

.js .hero__copy > *:nth-child(5) {
  animation-delay: 0.26s;
}

.js .hero__copy > *:nth-child(6) {
  animation-delay: 0.32s;
}

.js .hero__copy > *:nth-child(7) {
  animation-delay: 0.38s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head__rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.section-head__rail::before {
  content: "";
  width: 24px;
  height: 1px;
  margin-bottom: 4px;
  background: var(--blue);
}

.section-head__body h2 {
  max-width: 920px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.45vw, 4.05rem);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head__body .lead {
  max-width: 700px;
}

/* ==========================================================================
   Roles
   ========================================================================== */

.roles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(251, 249, 243, 0.55);
  box-shadow: 0 30px 70px -60px rgba(12, 14, 19, 0.4);
}

.role {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  transition: background-color 0.35s var(--ease);
}

.role + .role {
  border-left: 1px solid var(--line);
}

.role:hover {
  background: rgba(255, 255, 255, 0.55);
}

.role::before {
  content: attr(data-mark);
  position: absolute;
  right: 12px;
  bottom: -30px;
  font-family: var(--font-display);
  font-size: 10rem;
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(18, 51, 232, 0.055);
  pointer-events: none;
}

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

.role__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.role__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 51, 232, 0.12);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.role__icon .icon {
  width: 20px;
  height: 20px;
}

.role:hover .role__icon {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.role h3 {
  margin: 28px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.role p {
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.role__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.role__note::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

/* ==========================================================================
   Demo
   ========================================================================== */

.demo-section {
  background:
    linear-gradient(180deg, rgba(18, 51, 232, 0.035), rgba(18, 51, 232, 0) 55%),
    var(--paper-2);
}

.demo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-2);
  box-shadow: 0 40px 80px -70px rgba(12, 14, 19, 0.5);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.demo__rec {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.demo__rec .pulse-dot {
  background: #ff6a5e;
}

.demo__timer {
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(245, 242, 234, 0.6);
}

.wave {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.wave span {
  width: 3px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0.35;
  animation: wave 1.2s ease-in-out infinite;
}

.wave span:nth-child(2n) {
  height: 14px;
  animation-delay: -0.35s;
}

.wave span:nth-child(3n) {
  height: 22px;
  animation-delay: -0.7s;
}

.wave span:nth-child(4n) {
  height: 12px;
  animation-delay: -1s;
}

.wave span:nth-child(5n) {
  height: 26px;
  animation-delay: -0.2s;
}

.wave span:nth-child(7n) {
  height: 6px;
  animation-delay: -0.55s;
}

@keyframes wave {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 0.7;
    transform: scaleY(1.12);
  }
}

.demo__badge {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.demo__body {
  padding: clamp(20px, 3vw, 34px);
}

.demo__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 64px minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

.demo__block {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: 18px;
}

.demo__block--source {
  border: 1px solid rgba(12, 14, 19, 0.06);
  background: rgba(12, 14, 19, 0.035);
}

.demo__block--output {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 40px -34px rgba(12, 14, 19, 0.45);
}

.demo__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(18, 51, 232, 0.08);
  color: var(--blue);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.demo__spoken {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.filler {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(12, 14, 19, 0.3);
  transition:
    color 0.3s var(--ease),
    text-decoration-color 0.3s var(--ease);
}

.demo__spoken.is-literal .filler {
  color: inherit;
  text-decoration-color: transparent;
}

.demo__hint {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted);
}

.demo__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
}

.demo__arrow-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(18, 51, 232, 0.14);
  border-radius: 50%;
  background: var(--blue-soft);
}

.demo__arrow-icon .icon {
  width: 16px;
  height: 16px;
}

.demo__arrow-label {
  max-width: 60px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

.demo__output {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    filter 0.2s var(--ease);
}

.demo.is-changing .demo__output {
  opacity: 0.25;
  transform: translateY(4px);
  filter: blur(2px);
}

.demo__result-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--blue);
}

.demo__result-note .icon {
  width: 13px;
  height: 13px;
}

.demo__controls {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px 32px;
  align-items: start;
  margin-top: clamp(22px, 3vw, 30px);
  padding-top: clamp(20px, 3vw, 26px);
  border-top: 1px solid var(--line);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.control-label .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.1s var(--ease);
}

.chip .icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.chip:hover {
  border-color: rgba(18, 51, 232, 0.4);
  color: var(--blue);
}

.chip.is-active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(18, 51, 232, 0.6);
}

.chip.is-active .icon {
  opacity: 1;
}

.chip:active {
  transform: translateY(1px);
}

.chip:focus-visible {
  outline-offset: 2px;
}

.demo__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.demo__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo__meta .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.demo__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  max-width: 1000px;
  margin-top: 22px;
}

.demo__foot p {
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--muted);
}

.demo__foot strong {
  color: var(--ink-2);
  font-weight: 600;
}

.demo__noscript {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   Setup
   ========================================================================== */

.setup__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step__num {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.step__icon .icon {
  width: 15px;
  height: 15px;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.setup__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.kb-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper-2);
  box-shadow: 0 40px 70px -60px rgba(12, 14, 19, 0.6);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease);
}

.kb-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.kb-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #dfe1e6;
}

.kb-card__media img {
  width: 100%;
  height: auto;
}

.pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(10, 22, 90, 0.3);
  transform: translate(-50%, -50%);
}

.kb-card__caption {
  padding: 12px 6px 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--muted);
}

.kb-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding: 0 6px;
}

.kb-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
}

.kb-legend__key {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid rgba(18, 51, 232, 0.3);
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1;
}

.setup__visual > .text-link {
  align-self: flex-start;
}

/* ==========================================================================
   Features
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--line);
}

.feature {
  position: relative;
  min-height: 220px;
  padding: clamp(24px, 2.8vw, 34px);
  background: var(--paper);
  transition: background-color 0.3s var(--ease);
}

.feature:hover {
  background: var(--paper-2);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(18, 51, 232, 0.1);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}

.feature__icon .icon {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--muted);
}

.feature::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line-strong);
  transition: color 0.3s var(--ease);
}

.feature:hover::after {
  color: var(--blue);
}

.lang-band {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3.5vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(18, 51, 232, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, #e9edff 0%, #f1f3ff 55%, #e5e9ff 100%);
}

.lang-band::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 51, 232, 0.16), transparent 70%);
  pointer-events: none;
}

.lang-band__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.lang-band__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.lang-band__eyebrow .icon {
  width: 13px;
  height: 13px;
}

.lang-band h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lang-band__intro {
  max-width: 380px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.lang-band__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid rgba(18, 51, 232, 0.16);
  border-radius: 18px;
  background: rgba(18, 51, 232, 0.16);
}

.lang-item {
  padding: clamp(18px, 2.5vw, 26px);
  background: rgba(250, 250, 255, 0.72);
}

.lang-item__code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.lang-item p {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.lang-item__name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-band__note {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.lang-band__note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
  color: var(--blue);
}

/* ==========================================================================
   Details
   ========================================================================== */

.notes {
  border-top: 1px solid var(--line);
}

.note {
  display: grid;
  grid-template-columns: 120px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.note__lead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.note__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.note__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  color: var(--blue);
}

.note__icon .icon {
  width: 16px;
  height: 16px;
}

.note h3 {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.note p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
}

.privacy-panel {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border-radius: 30px;
  background: var(--night);
  color: var(--paper);
}

.privacy-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 51, 232, 0.35), transparent 65%);
  pointer-events: none;
}

.privacy-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 242, 234, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 242, 234, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 72%);
  pointer-events: none;
}

.privacy-panel > * {
  position: relative;
  z-index: 1;
}

.privacy-panel__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ghost);
}

.privacy-panel__eyebrow .icon {
  width: 13px;
  height: 13px;
}

.privacy-panel__head h3 {
  max-width: 780px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.privacy-panel__head > p {
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(245, 242, 234, 0.68);
}

.privacy-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(245, 242, 234, 0.14);
  border-radius: 18px;
  background: rgba(245, 242, 234, 0.14);
}

.privacy-item {
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--night);
}

.privacy-item__icon {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue-ghost);
}

.privacy-item__icon .icon {
  width: 20px;
  height: 20px;
}

.privacy-item h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
}

.privacy-item p {
  font-size: 0.88rem;
  line-height: 1.58;
  color: rgba(245, 242, 234, 0.6);
}

.privacy-panel__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 780px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 242, 234, 0.14);
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(245, 242, 234, 0.55);
}

.privacy-panel__note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: none;
  color: var(--blue-ghost);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 110px;
}

.faq__intro h2 {
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.faq__intro .lead {
  max-width: 400px;
  margin-top: 0;
}

.faq__alpha-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 380px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.faq__alpha-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: none;
  color: var(--blue);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  border-left: 5px solid var(--line-strong);
  background: transparent;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.faq-item:hover {
  border-left-color: var(--muted);
  background: rgba(255, 255, 255, 0.34);
}

.faq-item[open] {
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 44px 18px 54px;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-item[open] summary {
  color: var(--ink);
  font-weight: 600;
}

.faq-item[open] summary:hover {
  color: var(--ink);
}

.faq__mark {
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transform: translateY(-50%);
  transition: color 0.2s var(--ease);
}

.faq__mark .icon {
  width: 18px;
  height: 18px;
}

.faq__minus {
  display: none;
}

.faq-item[open] .faq__plus {
  display: none;
}

.faq-item[open] .faq__minus {
  display: block;
}

.faq-item[open] .faq__mark,
.faq-item summary:hover .faq__mark {
  color: var(--blue);
}

.faq__q {
  flex: 1;
}

.faq__chevron {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--muted);
  transition:
    transform 0.3s var(--ease),
    color 0.3s var(--ease);
}

.faq-item[open] .faq__chevron {
  color: var(--blue);
  transform: rotate(180deg);
}

.faq__body {
  padding: 0 44px 22px 54px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-2);
  animation: faqIn 0.3s var(--ease);
}

.faq__body p + p {
  margin-top: 12px;
}

.faq__body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px);
}

.final__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 34px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 50px 100px -60px rgba(18, 51, 232, 0.65);
}

.final__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(0, 10, 80, 0.35), transparent 60%);
  pointer-events: none;
}

.final__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 25%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 75% 25%, #000, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.final__copy,
.final__qr {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.final__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.final__eyebrow .pulse-dot {
  background: #fff;
}

.final__panel h2 {
  max-width: 680px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.final__panel h2 em {
  font-style: italic;
  font-weight: 400;
  color: #dce3ff;
}

.final__lede {
  max-width: 540px;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.final__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.final__panel .btn--light {
  min-height: 56px;
}

.final__url {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  word-break: break-all;
}

.final__url:hover {
  border-color: #fff;
  color: #fff;
}

.final__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.final__steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
}

.final__steps span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.5);
}

.final__disclaimer {
  max-width: 540px;
  margin-top: 22px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.final__qr {
  justify-self: end;
  width: min(100%, 300px);
}

.qr-card {
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  transform: rotate(2.5deg);
  transition: transform 0.4s var(--ease);
}

.qr-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.qr-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.qr-card__head img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.qr-card__head b {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--blue);
  vertical-align: super;
}

.qr-card__tag {
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 4px;
  background: var(--blue-soft);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.qr-card__code {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.qr-card figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: clamp(36px, 5vw, 56px) 0 calc(clamp(28px, 4vw, 44px) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.site-footer__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.site-footer__brand:hover {
  color: var(--blue);
}

.site-footer__tagline,
.site-footer__descriptor {
  max-width: 440px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* Status band in the middle of the footer */

.site-footer__status-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 34px);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.footer-status .pulse-dot {
  color: var(--blue);
  background: var(--blue);
}

/* Developer footer */

.site-footer__dev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  margin-top: clamp(20px, 2.6vw, 28px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dev__eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dev__name {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.dev__name-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.dev__name-link:hover {
  border-bottom-color: currentColor;
}

.dev__place {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.dev__place-mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.dev__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  max-width: 600px;
  font-size: 11.5px;
}

.dev__links a,
.dev__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.dev__links a:hover,
.dev__email:hover {
  color: var(--blue);
}

.dev__links .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.dev__email .icon {
  color: currentColor;
}

.dev__links a:hover .icon {
  color: currentColor;
}

.dev__email {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.dev__email:hover .icon {
  color: var(--blue);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 12px;
}

.site-footer__links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__links a:hover {
  color: var(--blue);
}

.site-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue) !important;
  font-weight: 500;
}

.site-footer__cta .icon {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   Mobile CTA
   ========================================================================== */

.mobile-cta {
  display: none;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js.reveal-fallback .reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .status-pill {
    display: none;
  }
}

@media (max-width: 1020px) {
  .site-nav {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 24px;
  }

  .hero__title {
    font-size: clamp(2.9rem, 6.4vw, 5rem);
  }

  .section-head {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-band__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .lang-band__intro {
    max-width: 620px;
  }

  .faq__grid {
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
  }

  .hero__copy {
    max-width: 760px;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: clamp(3rem, 9.2vw, 5rem);
  }

  .hero__visual {
    margin-top: 6px;
  }

  .stage {
    width: min(78vw, 460px);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-head__rail {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 0;
  }

  .section-head__rail::before {
    width: 18px;
    margin-bottom: 0;
  }

  .index {
    margin-bottom: 0;
  }

  .section-head__body .lead {
    margin-top: 20px;
  }

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

  .role {
    min-height: auto;
    padding: 26px;
  }

  .role + .role {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .role p {
    max-width: 560px;
  }

  .role__note {
    margin-top: 22px;
    padding-top: 0;
  }

  .role::before {
    right: 18px;
    bottom: -24px;
    font-size: 8rem;
  }

  .demo__stage {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo__block {
    min-height: 0;
  }

  .demo__arrow {
    flex-direction: row;
    gap: 10px;
  }

  .demo__arrow-icon {
    width: 30px;
    height: 30px;
  }

  .demo__arrow-label {
    max-width: none;
  }

  .demo__controls {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .setup__visual {
    max-width: 640px;
  }

  .kb-card {
    transform: none;
  }

  .lang-band__grid {
    grid-template-columns: 1fr;
  }

  .note {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px 18px;
    padding: 22px 0;
  }

  .note__lead {
    grid-row: 1 / span 2;
    align-self: start;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 2px;
  }

  .note h3,
  .note p {
    grid-column: 2;
  }

  .note h3 {
    margin-top: 0;
  }

  .privacy-panel__grid {
    grid-template-columns: 1fr;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__intro {
    position: static;
  }

  .faq__intro h2 {
    max-width: 620px;
  }

  .final__panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .final__qr {
    justify-self: start;
    width: min(100%, 270px);
    margin-top: 8px;
  }

  .site-footer__main {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .site-footer__dev {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .dev__links {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    height: 68px;
    gap: 12px;
  }

  .site-header__actions {
    gap: 6px;
  }

  .site-header__actions .header-cta {
    width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }

  .header-cta__label {
    display: none;
  }

  .header-cta .icon {
    width: 16px;
    height: 16px;
  }

  .lang-switch__button {
    height: 40px;
    padding: 0 10px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .lang-switch__menu {
    right: 0;
  }

  .brand__icon {
    width: 30px;
    height: 30px;
  }

  .brand__word {
    font-size: 15px;
  }


  .hero {
    padding-top: 10px;
  }

  .hero__copy {
    padding-top: 20px;
  }

  .hero__title {
    font-size: clamp(2.85rem, 10.8vw, 4.4rem);
    margin-bottom: 22px;
  }

  .hero__lede {
    margin-bottom: 26px;
    font-size: 1rem;
  }

  .hero__meta {
    font-size: 10.5px;
    gap: 8px 12px;
  }

  .hero__meta .hero__meta-sep {
    display: none;
  }

  .hero__actions {
    gap: 8px 18px;
    margin-bottom: 24px;
  }

  .hero__note {
    font-size: 11px;
  }

  .stage {
    width: min(86vw, 420px);
  }

  .stage__chip {
    font-size: 8.5px;
    padding: 7px 9px;
  }

  .stage__chip .icon {
    width: 11px;
    height: 11px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head__body h2 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .demo__bar {
    gap: 12px;
    padding: 12px 14px;
  }

  .demo__rec {
    font-size: 10.5px;
    padding: 8px 11px;
  }

  .wave {
    display: none;
  }

  .demo__bar {
    justify-content: space-between;
  }

  .demo__body {
    padding: 16px;
  }

  .demo__block {
    padding: 18px;
  }

  .demo__output {
    font-size: 1.22rem;
  }

  .demo__label {
    margin-bottom: 16px;
  }

  .demo__foot {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature {
    min-height: 0;
    padding: 24px;
  }

  .feature__icon {
    margin-bottom: 18px;
  }

  .lang-band {
    padding: 22px;
  }

  .lang-band h3 {
    font-size: 1.9rem;
  }

  .lang-item {
    padding: 20px;
  }

  .lang-item p {
    font-size: 1.12rem;
  }

  .privacy-panel {
    padding: 24px;
  }

  .privacy-panel__head h3 {
    font-size: 2.15rem;
  }

  .privacy-panel__head > p {
    font-size: 0.94rem;
  }

  .faq-item {
    border-left-width: 4px;
  }

  .faq-item summary {
    padding: 16px 18px 16px 46px;
    font-size: 0.98rem;
  }

  .faq__mark {
    left: 14px;
  }

  .faq__body {
    padding: 0 18px 18px 46px;
  }

  .final {
    padding: 18px 0 56px;
  }

  .final__panel {
    padding: 24px;
    border-radius: 26px;
  }

  .final__panel h2 {
    font-size: clamp(2rem, 8.4vw, 3rem);
  }

  .final__lede {
    font-size: 0.94rem;
  }

  .final__actions {
    margin-top: 24px;
  }

  .final__panel .btn--light {
    width: 100%;
    padding-inline: 18px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .final__steps {
    gap: 8px 16px;
  }

  .final__steps li {
    font-size: 10px;
  }

  .final__qr {
    width: 100%;
    max-width: 250px;
    margin-inline: auto;
  }

  .qr-card {
    width: 100%;
    min-width: 0;
  }

  .qr-card__code {
    min-width: 0;
  }

  .site-footer__dev {
    margin-top: 30px;
  }

  .dev__links {
    gap: 10px 16px;
    font-size: 11px;
  }

  .dev__email {
    font-size: 10px;
  }

  .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(251, 249, 243, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -20px rgba(12, 14, 19, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition:
      transform 0.35s var(--ease),
      opacity 0.35s var(--ease),
      visibility 0.35s var(--ease);
  }

  .mobile-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-cta__status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
  }

  .mobile-cta__status .pulse-dot {
    color: var(--blue);
    background: var(--blue);
  }

  .mobile-cta .btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .stage__chip {
    display: none;
  }

  .stage {
    width: min(84vw, 360px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn--primary {
    width: 100%;
  }

  .hero__actions .text-link {
    justify-content: center;
    padding-block: 10px;
  }

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

  .demo__meta {
    gap: 8px 14px;
  }

  .kb-legend {
    gap: 8px 10px;
    font-size: 10.5px;
  }

  .kb-legend li {
    font-size: 10.5px;
  }

  .final__steps {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer__brand {
    font-size: 2.8rem;
  }

  .site-footer__links {
    gap: 10px 16px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .lang-switch__chevron {
    display: none !important;
  }

  .final__panel {
    padding: 20px;
  }

  .final__panel h2 {
    font-size: 1.75rem;
  }


  .brand {
    gap: 7px;
  }

  .brand__edition {
    display: none;
  }

  .hero__title {
    font-size: 2.7rem;
  }

  .badge {
    font-size: 10.5px;
    padding: 6px 9px;
  }

  .chip {
    font-size: 11px;
    padding: 0 10px;
  }

  .kb-legend {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  body {
    transition: none;
  }

  .faq__body {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .stage__object,
  .stage__ring--2,
  .wave span,
  .pulse-dot::after {
    animation: none;
  }

  .wave span {
    opacity: 0.45;
    transform: none;
  }
}

/* ==========================================================================
   Dark theme
   ========================================================================== */

:root[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(11, 13, 18, 0.9);
}

:root[data-theme="dark"] .brand__edition {
  border-color: rgba(142, 166, 255, 0.25);
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .lang-switch__button {
  background: rgba(255, 255, 255, 0.055);
}

:root[data-theme="dark"] .btn--ink {
  border-color: var(--line);
  background: var(--paper-3);
  color: var(--ink);
}

:root[data-theme="dark"] .btn--ink:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

:root[data-theme="dark"] .badge {
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .badge--alpha {
  border-color: rgba(142, 166, 255, 0.24);
  background: rgba(142, 166, 255, 0.1);
}

:root[data-theme="dark"] .badge--testing {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

:root[data-theme="dark"] .hero__grid-bg {
  background-image: linear-gradient(to right, rgba(244, 241, 233, 0.06) 1px, transparent 1px);
}

:root[data-theme="dark"] .hero__glow {
  background: radial-gradient(
    circle,
    rgba(110, 134, 255, 0.22) 0,
    rgba(110, 134, 255, 0.07) 42%,
    rgba(110, 134, 255, 0) 68%
  );
}

:root[data-theme="dark"] .stage__ring--1 {
  border-color: rgba(142, 166, 255, 0.2);
}

:root[data-theme="dark"] .stage__ring--2 {
  border-color: rgba(142, 166, 255, 0.28);
}

:root[data-theme="dark"] .stage__dot {
  box-shadow: 0 0 0 5px rgba(142, 166, 255, 0.14);
}

:root[data-theme="dark"] .stage__chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 20, 27, 0.82);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .stage:hover .stage__chip {
  border-color: rgba(142, 166, 255, 0.38);
}

:root[data-theme="dark"] .roles__grid {
  background: rgba(17, 20, 27, 0.62);
}

:root[data-theme="dark"] .role:hover {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .role::before {
  color: rgba(142, 166, 255, 0.06);
}

:root[data-theme="dark"] .role__icon,
:root[data-theme="dark"] .demo__arrow-icon {
  border-color: rgba(142, 166, 255, 0.2);
}

:root[data-theme="dark"] .demo-section {
  background:
    linear-gradient(180deg, rgba(142, 166, 255, 0.05), rgba(142, 166, 255, 0) 55%),
    var(--paper-2);
}

:root[data-theme="dark"] .demo__bar {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .demo__rec {
  border: 1px solid var(--line);
  background: var(--paper-3);
  color: var(--ink);
}

:root[data-theme="dark"] .demo__block--source {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .demo__block--output {
  border-color: var(--line);
  background: var(--paper-3);
  box-shadow: 0 20px 40px -34px rgba(0, 0, 0, 0.8);
}

:root[data-theme="dark"] .lang-band {
  border-color: rgba(142, 166, 255, 0.22);
  background: linear-gradient(135deg, #111a33 0%, #151b2c 55%, #0e152b 100%);
}

:root[data-theme="dark"] .lang-band::before {
  background: radial-gradient(circle, rgba(142, 166, 255, 0.18), transparent 70%);
}

:root[data-theme="dark"] .lang-band__grid {
  border-color: rgba(142, 166, 255, 0.2);
  background: rgba(142, 166, 255, 0.2);
}

:root[data-theme="dark"] .lang-item {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .note__icon {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .privacy-panel {
  border: 1px solid rgba(244, 241, 233, 0.1);
}

:root[data-theme="dark"] .faq-item:hover {
  border-left-color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .faq-item[open] {
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

:root[data-theme="dark"] .final__panel .btn--light {
  background: #f5f2ea;
  color: #0c0e13;
}

:root[data-theme="dark"] .final__panel .btn--light:hover {
  background: #fff;
}

:root[data-theme="dark"] .final__panel .btn--light .btn__icon {
  background: rgba(12, 14, 19, 0.08);
}

:root[data-theme="dark"] .qr-card {
  background: #fbf9f3;
  color: #0c0e13;
}

:root[data-theme="dark"] .qr-card__head b,
:root[data-theme="dark"] .qr-card__tag {
  color: #1233e8;
}

:root[data-theme="dark"] .qr-card__tag {
  background: #e6e9ff;
}

:root[data-theme="dark"] .qr-card__code {
  border-color: rgba(12, 14, 19, 0.14);
}

:root[data-theme="dark"] .qr-card figcaption {
  color: #666a72;
}

:root[data-theme="dark"] .mobile-cta {
  background: rgba(17, 20, 27, 0.9);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.75);
}
