:root {
  color-scheme: dark;
  --background: #1e1e21;
  --surface-dark: #17171a;
  --surface-medium: #222226;
  --surface-light: #2d2d31;
  --border: #27272a;
  --border-soft: rgba(255, 255, 255, 0.08);
  --overlay-subtle: rgba(255, 255, 255, 0.03);
  --overlay-light: rgba(255, 255, 255, 0.06);
  --overlay-medium: rgba(255, 255, 255, 0.1);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --primary: #34d399;
  --primary-dark: #1f8f6c;
  --primary-soft: rgba(52, 211, 153, 0.12);
  --purple-soft: rgba(124, 58, 237, 0.12);
  --yellow: #facc15;
  --red: #f87171;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(52, 211, 153, 0.08), transparent 26rem),
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.08), transparent 24rem),
    var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 4px;
}

body::after {
  content: "";
  position: fixed;
  inset: -12vh -8vw;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(0, 255, 163, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(220, 31, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 58% 96%, rgba(52, 211, 153, 0.14), transparent 34rem);
  background-repeat: no-repeat;
  background-size: 76rem 76rem, 70rem 70rem, 82rem 82rem;
  mix-blend-mode: screen;
  animation: fasolAmbientFlow 36s ease-in-out infinite alternate;
}

@keyframes fasolAmbientFlow {
  from {
    transform: translate3d(-1%, -0.6%, 0) scale(1);
  }

  to {
    transform: translate3d(1%, 0.6%, 0) scale(1.03);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(23, 23, 26, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 104px;
  height: 24px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
  border-radius: var(--radius-sm);
  padding: 5px 2px;
}

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

.desktop-nav a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  color: var(--primary);
}

.desktop-nav a[data-language-active="true"],
.mobile-menu a[data-language-active="true"] {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  min-width: 170px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-tertiary);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

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

.button:active {
  transform: translateY(0) scale(0.99);
}

.button-primary {
  background: linear-gradient(135deg, #34d399, #2aa786);
  color: #06130f;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 14px 36px rgba(52, 211, 153, 0.14);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-telegram {
  color: var(--text);
  background: rgba(52, 211, 153, 0.075);
  border-color: rgba(52, 211, 153, 0.22);
}

.button-small {
  min-height: 32px;
  padding: 0 13px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--overlay-light);
  color: var(--text);
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: clamp(560px, 74dvh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 28px;
  padding: 28px 0;
}

.updates-hero {
  min-height: calc(100dvh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 28px;
  padding: 46px 0 34px;
}

.doc-hero {
  min-height: calc(100dvh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 28px;
  padding: 46px 0 34px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.card-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 14ch;
  margin-top: 12px;
  font-size: clamp(44px, 6vw, 70px);
  line-height: 0.94;
  letter-spacing: 0;
}

.doc-hero h1 {
  max-width: 16ch;
}

.hero-lead {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
}

.hero-metrics div {
  padding: 11px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.hero-metrics dt {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.terminal-preview,
.screenshot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.terminal-preview::after,
.screenshot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.terminal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.terminal-toolbar span:first-child {
  color: var(--primary);
}

.terminal-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-product-stack {
  position: relative;
  min-height: 468px;
  padding-left: 96px;
}

.hero-terminal {
  margin: 0;
}

.phone-preview {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 30px;
  background: var(--surface-dark);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.phone-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-phone {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 8px;
  width: 220px;
  max-width: 30%;
}

.update-hero-visual {
  position: relative;
  min-height: 500px;
  margin: 0;
}

.update-hero-terminal,
.update-hero-mobile {
  position: absolute;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.update-hero-terminal {
  z-index: 1;
  top: 58px;
  right: 0;
  width: min(88%, 760px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.update-hero-mobile {
  z-index: 2;
  left: -18px;
  bottom: 0;
  width: min(34%, 220px);
  max-height: 410px;
  object-fit: cover;
  object-position: top center;
  border-color: rgba(52, 211, 153, 0.28);
}

.article-visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.article-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.article-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.surfaces-section,
.product-grid,
.guide-flow,
.faq-section,
.release-map,
.update-surfaces,
.release-template {
  padding: 86px 0 0;
}

.section-copy {
  max-width: 720px;
}

.section-copy h2,
.panel-copy h2,
.rewards-copy h2,
.summary-body h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p,
.panel-copy p,
.rewards-copy p {
  margin-top: 14px;
  max-width: 68ch;
  color: var(--text-secondary);
}

.surface-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 12px;
  margin-top: 28px;
}

.surface-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 520px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.1), transparent 38%),
    var(--surface-dark);
}

.surface-card h3 {
  margin-top: 12px;
  font-size: clamp(27px, 3.4vw, 44px);
  line-height: 1.02;
}

.surface-card p {
  max-width: 56ch;
  margin-top: 13px;
  color: var(--text-secondary);
}

.surface-card img {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-medium);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.surface-mobile {
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.12), transparent 42%),
    var(--surface-medium);
}

.surface-mobile img {
  width: 290px;
  max-width: 74%;
  justify-self: center;
  max-height: 430px;
  object-fit: cover;
  object-position: top center;
}

.surface-desktop {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(52, 211, 153, 0.1), transparent 42%),
    var(--surface-medium);
}

.surface-desktop img {
  align-self: end;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 28px;
}

.feature-card {
  min-height: 214px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-medium);
}

.feature-card h3 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.12;
}

.feature-card p {
  margin-top: 12px;
  color: var(--text-secondary);
}

.feature-card-large {
  grid-row: span 2;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.13), transparent 38%),
    linear-gradient(315deg, rgba(124, 58, 237, 0.12), transparent 42%),
    var(--surface-medium);
}

.feature-card-large h3 {
  font-size: clamp(30px, 4vw, 46px);
}

.feature-card-visual {
  grid-column: span 2;
  padding: 0;
  overflow: hidden;
  min-height: 214px;
  background: var(--surface-dark);
}

.feature-card-visual img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: top center;
}

.source-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.source-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.08), transparent 42%),
    var(--surface-dark);
}

.source-card-wide {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14), transparent 44%),
    var(--surface-medium);
}

.source-card strong {
  color: var(--text);
  font-size: 18px;
}

.source-card span {
  color: var(--text-secondary);
}

.guide-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.guide-meta-grid article {
  display: grid;
  gap: 7px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.08), transparent 42%),
    var(--surface-dark);
}

.guide-meta-grid strong {
  color: var(--text);
  font-size: 18px;
}

.guide-meta-grid span {
  color: var(--text-secondary);
}

.article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding-top: 86px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 82px;
}

.toc-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(23, 23, 26, 0.84);
  backdrop-filter: blur(14px);
}

.toc-card strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.toc-card a {
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.toc-card a:hover {
  color: var(--primary);
  background: var(--overlay-light);
}

.article-content {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.article-content > section {
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
}

.article-content h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: 0;
}

.article-content p {
  max-width: 82ch;
  margin-top: 14px;
  color: var(--text-secondary);
}

.guide-callout {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.08);
}

.guide-callout strong,
.guide-checklist strong,
.guide-card-grid strong,
.setup-grid strong,
.metric-table strong,
.workflow-strip strong {
  color: var(--text);
}

.guide-callout span,
.guide-checklist span,
.guide-card-grid span,
.setup-grid span,
.metric-table span,
.workflow-strip span {
  color: var(--text-secondary);
}

.guide-card-grid,
.guide-checklist,
.metric-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.guide-card-grid article,
.guide-checklist article,
.metric-table article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.metric-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-table article {
  min-height: 138px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.setup-grid article {
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.1), transparent 38%),
    var(--surface-medium);
}

.setup-grid span {
  display: block;
  margin-top: 9px;
}

.setup-grid ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.workflow-strip article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 124px;
  padding: 15px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.risk-note {
  background:
    linear-gradient(145deg, rgba(248, 113, 113, 0.09), transparent 38%),
    var(--surface-dark) !important;
}

.release-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 18px;
  margin-top: 28px;
  align-items: start;
}

.release-feature {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 18px;
  min-height: 520px;
  align-content: end;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.14), transparent 38%),
    linear-gradient(315deg, rgba(124, 58, 237, 0.13), transparent 44%),
    var(--surface-medium);
}

.release-feature h3 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.02;
}

.release-feature p {
  color: var(--text-secondary);
}

.release-feature .button {
  justify-self: start;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
}

.timeline-item time {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-top: 12px;
  font-size: 23px;
  line-height: 1.12;
}

.timeline-item p {
  margin-top: 11px;
  color: var(--text-secondary);
}

.update-shot-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  margin-top: 28px;
}

.shot-card {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-medium);
}

.shot-card-wide {
  grid-row: span 2;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border-soft);
}

.shot-card:not(.shot-card-wide) img {
  max-height: 230px;
  object-position: top center;
}

.shot-card div {
  padding: 18px;
}

.shot-card h3 {
  font-size: 24px;
}

.shot-card p {
  margin-top: 9px;
  color: var(--text-secondary);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.template-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.template-grid strong {
  color: var(--text);
}

.template-grid span {
  color: var(--text-secondary);
  font-size: 14px;
}

.alerts-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 96px 0 0;
}

.alerts-showcase {
  position: relative;
  min-height: 500px;
}

.alerts-desktop {
  margin: 0;
}

.alerts-desktop img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.alerts-phone {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: -18px;
  width: 210px;
  max-width: 29%;
}

.panel-copy {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
}

.alert-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.alert-points div,
.learning-path div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.alert-points strong,
.learning-path strong {
  color: var(--text);
}

.alert-points span,
.learning-path span {
  color: var(--text-secondary);
  font-size: 14px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.guide-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.1), transparent 34%),
    var(--surface-medium);
  transition: transform 160ms ease, border-color 160ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.35);
}

.guide-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.guide-card h3 {
  margin-top: 28px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.04;
}

.guide-card p {
  margin-top: 14px;
  color: var(--text-secondary);
}

.learning-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rewards-band {
  display: block;
  padding: 96px 0 0;
}

.rewards-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.14), transparent 44%),
    var(--surface-dark);
}

.reward-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.reward-stats div {
  padding: 14px;
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.08);
}

.reward-stats strong {
  display: block;
  color: #6ee7c4;
  font-size: 24px;
}

.reward-stats span {
  color: var(--text-secondary);
  font-size: 12px;
}

.seo-summary {
  padding: 96px 0 0;
}

.summary-terminal {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 750;
}

.summary-body {
  padding: 28px;
}

.summary-body p {
  max-width: 88ch;
  margin-top: 16px;
  color: var(--text-secondary);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

details {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-medium);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

details p {
  padding: 0 20px 20px;
  color: var(--text-secondary);
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 96px auto 0;
  padding: 26px 0 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--border-soft);
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 480px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a {
  white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 1041px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-search {
    display: none;
  }
}

@media (max-width: 1040px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-menu {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding-top: 8px;
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    padding: 9px 8px;
    border-radius: var(--radius-sm);
    background: var(--overlay-light);
    color: var(--text-secondary);
    text-align: center;
    font-size: 13px;
    font-weight: 750;
  }

  .hero,
  .updates-hero,
  .doc-hero,
  .alerts-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .updates-hero,
  .doc-hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    max-width: 11ch;
  }

  .doc-hero h1 {
    max-width: 16ch;
  }

  .terminal-preview {
    order: -1;
  }

  .hero-product-stack {
    min-height: 390px;
    padding-left: 76px;
  }

  .hero-phone {
    width: 200px;
    max-width: 26%;
  }

  .alerts-showcase {
    min-height: 540px;
  }

  .update-hero-visual {
    order: -1;
    min-height: 430px;
  }

  .update-hero-terminal {
    top: 18px;
    width: 100%;
  }

  .update-hero-mobile {
    left: 0;
    width: min(30%, 170px);
    bottom: 0;
  }

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

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

  .source-grid,
  .guide-meta-grid,
  .release-layout,
  .update-shot-grid {
    grid-template-columns: 1fr;
  }

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

  .article-sidebar {
    position: static;
  }

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

  .toc-card strong {
    grid-column: 1 / -1;
  }

  .metric-table,
  .workflow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-feature {
    position: static;
    min-height: 360px;
  }

  .shot-card-wide {
    grid-row: auto;
  }

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

  .feature-card-large,
  .feature-card-visual {
    grid-column: span 2;
    grid-row: auto;
    min-height: 280px;
  }

  .learning-path {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 8px 12px;
  }

  .button-small {
    display: none;
  }

  .mobile-menu {
    grid-template-columns: 1fr 1fr;
  }

  .section-shell,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .hero,
  .updates-hero,
  .doc-hero {
    gap: 20px;
    padding: 28px 0 26px;
  }

  .hero {
    min-height: auto;
  }

  .hero-product-stack {
    min-height: 340px;
    padding-left: 58px;
  }

  .hero-phone {
    bottom: 0;
    width: 142px;
    max-width: 34%;
  }

  .phone-preview {
    border-radius: 24px;
  }

  .surface-mobile img {
    width: 250px;
    max-width: 68%;
    max-height: 430px;
  }

  .alerts-showcase {
    display: grid;
    gap: 12px;
    min-height: auto;
  }

  .alerts-phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: 240px;
    max-width: 62%;
    justify-self: center;
  }

  .update-hero-visual {
    min-height: 300px;
  }

  .update-hero-terminal {
    top: 0;
  }

  .update-hero-mobile {
    width: min(38%, 132px);
    bottom: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(39px, 13vw, 54px);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .site-footer,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .guide-cards,
  .guide-meta-grid,
  .guide-card-grid,
  .guide-checklist,
  .metric-table,
  .setup-grid,
  .workflow-strip,
  .learning-path,
  .reward-stats,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .article-shell {
    padding-top: 64px;
  }

  .article-content > section {
    padding: 20px;
  }

  .toc-card {
    grid-template-columns: 1fr;
  }

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

  .feature-card-large,
  .feature-card-visual {
    grid-column: auto;
  }

  .feature-card-large {
    min-height: 320px;
  }

  .panel-copy,
  .rewards-copy,
  .summary-body {
    padding: 20px;
  }

  .surfaces-section,
  .product-grid,
  .guide-flow,
  .faq-section,
  .alerts-layout,
  .rewards-band,
  .seo-summary,
  .release-map,
  .update-surfaces,
  .release-template,
  .article-shell {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  body::before {
    transform: none !important;
  }

  body::after {
    transform: none !important;
  }
}
