:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #12141a;
  --panel-soft: #171a20;
  --border: #262a33;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --muted: #8f93a0;
  --accent: #d4a75b;
  --claw: #ef7059;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --header-surface: rgba(18, 21, 28, 0.48);
  --glass-surface: rgba(18, 21, 28, 0.62);
  --glass-surface-strong: rgba(18, 21, 28, 0.84);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-line: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  --tint: rgba(255, 255, 255, 0.04);
  --tint-strong: rgba(255, 255, 255, 0.1);
  --hover-border: rgba(255, 255, 255, 0.18);
  --terminal-bg: #0f1116;
  --terminal-dot: #2e323d;
  --code-text: #dfe3ea;
  --radius: 20px;
  --width: min(1024px, calc(100vw - 40px));

  /* liquid glass — dark */
  --liquid-surface: rgba(18, 21, 28, 0.38);
  --liquid-border: rgba(255, 255, 255, 0.14);
  --liquid-rim-top: rgba(255, 255, 255, 0.22);
  --liquid-rim-bottom: rgba(255, 255, 255, 0.04);
  --liquid-rim-side: rgba(255, 255, 255, 0.06);
  --liquid-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  --liquid-hi-start: rgba(255, 255, 255, 0.10);
  --liquid-hi-end: rgba(255, 255, 255, 0.04);
  --liquid-dome: rgba(255, 255, 255, 0.08);
  --liquid-specular: rgba(255, 255, 255, 0.22);
  --liquid-specular-2: rgba(255, 255, 255, 0.12);
  --liquid-glaze: rgba(255, 255, 255, 0.06);
  --liquid-caustic: rgba(255, 255, 255, 0.55);
  --liquid-caustic-peak: rgba(255, 255, 255, 0.80);
  --liquid-caustic-opacity: 0.55;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f1f4f7;
  --border: #d7dce3;
  --border-soft: rgba(15, 23, 42, 0.08);
  --text: #111317;
  --muted: #66707c;
  --accent: #5e6875;
  --claw: #d06048;
  --shadow: 0 24px 58px rgba(15, 23, 42, 0.08);
  --header-surface: rgba(248, 250, 252, 0.58);
  --glass-surface: rgba(255, 255, 255, 0.74);
  --glass-surface-strong: rgba(248, 250, 252, 0.92);
  --glass-border: rgba(129, 140, 155, 0.18);
  --glass-line: rgba(255, 255, 255, 0.82);
  --glass-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  --tint: rgba(15, 23, 42, 0.04);
  --tint-strong: rgba(15, 23, 42, 0.08);
  --hover-border: rgba(99, 110, 123, 0.26);
  --terminal-bg: #f8fafc;
  --terminal-dot: #d8dee6;
  --code-text: #24313d;

  /* liquid glass — light */
  --liquid-surface: rgba(255, 255, 255, 0.42);
  --liquid-border: rgba(255, 255, 255, 0.55);
  --liquid-rim-top: rgba(255, 255, 255, 0.90);
  --liquid-rim-bottom: rgba(0, 0, 0, 0.04);
  --liquid-rim-side: rgba(255, 255, 255, 0.45);
  --liquid-shadow: 0 12px 40px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  --liquid-hi-start: rgba(255, 255, 255, 0.55);
  --liquid-hi-end: rgba(255, 255, 255, 0.20);
  --liquid-dome: rgba(255, 255, 255, 0.50);
  --liquid-specular: rgba(255, 255, 255, 0.70);
  --liquid-specular-2: rgba(255, 255, 255, 0.40);
  --liquid-glaze: rgba(255, 255, 255, 0.40);
  --liquid-caustic: rgba(255, 255, 255, 0.80);
  --liquid-caustic-peak: rgba(255, 255, 255, 1);
  --liquid-caustic-opacity: 0.75;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(214, 164, 73, 0.07), transparent 24rem),
    radial-gradient(circle at 85% 20%, rgba(239, 108, 84, 0.08), transparent 18rem),
    var(--bg);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top center, rgba(15, 23, 42, 0.035), transparent 22rem),
    radial-gradient(circle at 85% 20%, rgba(208, 96, 72, 0.06), transparent 18rem),
    var(--bg);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
}

code,
pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

.page {
  width: var(--width);
  margin: 0 auto;
  padding-bottom: 24px;
}

.hero-copy,
.hero-card,
.terminal,
.terminal-grid,
.terminal-panel,
.feature,
.future-card,
.future-copy,
.future-list,
.access,
.access-grid,
.copy-shell,
.code-shell,
.flow-step {
  min-width: 0;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  isolation: isolate;
  overflow: visible;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px solid var(--liquid-border);
  border-radius: 24px;
  background:
    linear-gradient(165deg, var(--liquid-hi-start) 0%, transparent 35%),
    linear-gradient(345deg, var(--liquid-hi-end) 0%, transparent 25%),
    radial-gradient(ellipse 120% 80% at 50% -10%, var(--liquid-dome), transparent 70%),
    var(--liquid-surface);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  box-shadow:
    inset 0 1.5px 0 var(--liquid-rim-top),
    inset 0 -1px 0 var(--liquid-rim-bottom),
    inset 1px 0 0 var(--liquid-rim-side),
    inset -1px 0 0 var(--liquid-rim-side),
    0 1px 3px rgba(0, 0, 0, 0.12),
    var(--liquid-shadow);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.site-header::before,
.site-header::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

/* specular highlight — top edge shimmer */
.site-header::before {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 45% at 30% -5%, var(--liquid-specular), transparent),
    radial-gradient(ellipse 40% 35% at 75% -8%, var(--liquid-specular-2), transparent),
    linear-gradient(180deg, var(--liquid-glaze), transparent 50%);
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* bevel ridge — top caustic line */
.site-header::after {
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--liquid-caustic) 20%,
    var(--liquid-caustic-peak) 50%,
    var(--liquid-caustic) 80%,
    transparent 100%
  );
  opacity: var(--liquid-caustic-opacity);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--liquid-border);
  border-radius: 999px;
  background: var(--tint);
  box-shadow:
    inset 0 1px 0 var(--liquid-rim-top),
    inset 0 -0.5px 0 var(--liquid-rim-bottom);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  opacity: 0.9;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  opacity: 1;
}

.site-nav a.is-active {
  color: var(--text);
  opacity: 1;
  background: var(--tint-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.08);
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  cursor: pointer;
  border: 1px solid var(--liquid-border);
  border-radius: 999px;
  background:
    linear-gradient(165deg, var(--liquid-hi-start), transparent 50%),
    var(--glass-surface);
  box-shadow:
    inset 0 1px 0 var(--liquid-rim-top),
    inset 0 -0.5px 0 var(--liquid-rim-bottom),
    0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.control-button:hover,
.control-button:focus-visible {
  color: var(--text);
  border-color: var(--hover-border);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 var(--liquid-rim-top),
    inset 0 -0.5px 0 var(--liquid-rim-bottom),
    0 4px 14px rgba(0, 0, 0, 0.12);
}

.locale-switcher {
  position: relative;
  z-index: 3;
}

.locale-button {
  gap: 8px;
  min-width: 74px;
  padding: 0 12px;
  color: var(--muted);
}

.locale-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.locale-current {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.locale-button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
  transition: transform 180ms ease;
}

.locale-switcher.is-open .locale-button::after {
  transform: rotate(-135deg) translateY(-1px);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--liquid-border);
  border-radius: 18px;
  background:
    linear-gradient(165deg, var(--liquid-hi-start), transparent 40%),
    var(--glass-surface-strong);
  box-shadow:
    inset 0 1.5px 0 var(--liquid-rim-top),
    inset 0 -0.5px 0 var(--liquid-rim-bottom),
    var(--liquid-shadow);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.locale-switcher.is-open .locale-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.locale-option {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.locale-option:hover,
.locale-option:focus-visible,
.locale-option.is-active {
  color: var(--text);
  background: var(--tint-strong);
}

.locale-short {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}

.locale-name {
  font-size: 0.9rem;
}

.theme-toggle {
  width: 42px;
  padding: 0;
  color: var(--muted);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.github-link {
  width: 42px;
  padding: 0;
  color: var(--muted);
}

.theme-icon svg,
.github-link svg {
  width: 17px;
  height: 17px;
}

.hero,
.section {
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  padding-top: 64px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

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

h1 {
  max-width: 8ch;
  margin-top: 14px;
  font-size: clamp(3.35rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.section-head h2,
.feature h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.feature h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-text,
.feature p,
.flow-step p,
.copy-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 1.02rem;
}

.hero-actions,
.hero-links,
.tab-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-links {
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-links span::after {
  content: "·";
  margin-left: 12px;
}

.hero-links span:last-child::after {
  content: "";
  margin: 0;
}

.button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button-primary {
  color: var(--bg);
  background: var(--text);
}

.button-secondary,
.tab-button {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible,
.tab-button:hover,
.tab-button:focus-visible {
  color: var(--text);
  border-color: var(--glass-border);
}

.tab-button.is-active {
  color: var(--text);
  border-color: var(--glass-border);
  background: var(--panel-soft);
}

.hero-card,
.feature,
.future-card,
.flow-step,
.access {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-card {
  position: relative;
  padding: 16px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%);
  pointer-events: none;
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.45;
}

.orb-gold {
  top: 16px;
  right: 22px;
  width: 132px;
  height: 132px;
  background: rgba(214, 164, 73, 0.16);
}

.orb-red {
  bottom: 34px;
  left: 24px;
  width: 92px;
  height: 92px;
  background: rgba(239, 108, 84, 0.12);
}

.card-top,
.brand-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-inline {
  justify-content: flex-start;
}

.brand-inline strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
}

.brand-inline span,
.status-pill,
.panel-label,
.flow-step span,
.feature-index {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
}

.status-pill {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.terminal,
.code-shell {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%),
    var(--terminal-bg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terminal-dot);
}

.terminal-bar p {
  min-width: 0;
  margin-left: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-grid,
.access-grid,
.feature-grid {
  display: grid;
  gap: 0;
}

.terminal-grid,
.access-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.terminal-panel {
  padding: 16px;
}

.terminal-panel + .terminal-panel,
.copy-shell {
  border-left: 1px solid var(--border);
}

.panel-label {
  margin-bottom: 14px;
}

.mail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--border-soft);
}

.mail-item:first-of-type {
  border-top: 0;
}

.mail-item > div {
  min-width: 0;
  flex: 1 1 auto;
}

.mail-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.mail-item span,
.mail-item time {
  color: var(--muted);
  font-size: 0.86rem;
}

.mail-item span {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.mail-item time {
  flex: 0 0 auto;
  padding-left: 8px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.terminal-code pre,
.code-panel {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.8;
}

.terminal-code pre {
  color: var(--code-text);
  font-size: 0.84rem;
}

.compact-section {
  padding-top: 12px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.future-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(214, 164, 73, 0.09), transparent 15rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 46%),
    var(--panel);
}

.future-copy,
.future-list {
  padding: 22px;
}

.future-copy p:last-child,
.future-item p {
  color: var(--muted);
  line-height: 1.75;
}

.future-copy p:last-child {
  max-width: 56ch;
  margin-top: 14px;
}

.future-copy .eyebrow {
  margin-bottom: 10px;
}

.future-list {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--border);
}

.future-item {
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}

.future-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.future-item:last-child {
  padding-bottom: 0;
}

.future-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature {
  min-height: 160px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 46%),
    var(--panel);
}

.feature p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.feature-index {
  margin-bottom: 12px;
}

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

.section-head .eyebrow {
  margin-bottom: 10px;
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.flow-step {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 46%),
    var(--panel);
}

.flow-step strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
}

.flow-step p {
  margin-top: 8px;
  font-size: 0.93rem;
}

.flow-line {
  align-self: center;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #242428, rgba(214, 164, 73, 0.4));
}

.access {
  overflow: hidden;
}

.tab-row {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.copy-shell {
  display: grid;
}

.copy-panel,
.code-panel {
  display: none;
}

.copy-panel.is-active,
.code-panel.is-active {
  display: block;
}

.copy-panel {
  padding: 18px;
}

.copy-panel p {
  margin-top: 10px;
  font-size: 0.95rem;
}

/* code-shell inside access card — remove own border so it doesn't overlap the outer card */
.access-grid > .code-shell {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: var(--terminal-bg);
}

.code-panel {
  padding: 18px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--code-text);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* syntax highlighting */
.code-panel .tok-cmd   { color: #7ec8e3; }
.code-panel .tok-flag  { color: #c4b5fd; }
.code-panel .tok-str   { color: #a3d9a5; }
.code-panel .tok-key   { color: #93c5fd; }
.code-panel .tok-val   { color: #a3d9a5; }
.code-panel .tok-bool  { color: #f9a875; }
.code-panel .tok-brace { color: #8f93a0; }
.code-panel .tok-cmt   { color: #6b7280; font-style: italic; }
.code-panel .tok-var   { color: #f9a875; }
.code-panel .tok-url   { color: #93c5fd; text-decoration: underline; text-decoration-color: rgba(147, 197, 253, 0.3); }

:root[data-theme="light"] .code-panel .tok-cmd   { color: #0369a1; }
:root[data-theme="light"] .code-panel .tok-flag  { color: #7c3aed; }
:root[data-theme="light"] .code-panel .tok-str   { color: #16a34a; }
:root[data-theme="light"] .code-panel .tok-key   { color: #2563eb; }
:root[data-theme="light"] .code-panel .tok-val   { color: #16a34a; }
:root[data-theme="light"] .code-panel .tok-bool  { color: #d97706; }
:root[data-theme="light"] .code-panel .tok-brace { color: #6b7280; }
:root[data-theme="light"] .code-panel .tok-cmt   { color: #9ca3af; }
:root[data-theme="light"] .code-panel .tok-var   { color: #d97706; }
:root[data-theme="light"] .code-panel .tok-url   { color: #2563eb; }

.site-footer {
  padding: 22px 0 8px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (max-width: 920px) {
  .hero,
  .terminal-grid,
  .access-grid,
  .future-card,
  .feature-grid,
  .feature-grid-expanded,
  .flow {
    grid-template-columns: 1fr;
  }

  .flow-line {
    width: 1px;
    min-height: 24px;
    margin: 0 auto;
    background: linear-gradient(180deg, #242428, rgba(214, 164, 73, 0.4));
  }

  .terminal-panel + .terminal-panel,
  .copy-shell,
  .future-list {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .hero-copy .eyebrow {
    white-space: normal;
  }

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

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

  .card-top {
    flex-wrap: wrap;
  }

  .status-pill {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .site-footer,
  .hero-actions,
  .tab-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .tab-row {
    width: 100%;
  }

  .button,
  .tab-button {
    width: 100%;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .header-controls {
    display: contents;
  }

  .header-utility {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    justify-self: end;
  }

  .site-nav {
    display: none;
  }

  .locale-switcher {
    min-width: auto;
  }

  .locale-button {
    min-width: 48px;
    gap: 4px;
    padding: 0 10px;
  }

  .locale-button svg {
    display: none;
  }

  .theme-toggle,
  .github-link,
  .locale-button,
  .control-button {
    min-height: 38px;
  }

  .theme-toggle,
  .github-link {
    width: 38px;
  }

  .locale-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .hero-card,
  .feature,
  .future-copy,
  .future-list,
  .flow-step,
  .copy-panel,
  .code-panel {
    padding: 16px;
  }

  .tab-row {
    gap: 10px;
    padding: 14px;
  }

  .card-top {
    align-items: flex-start;
  }

  .status-pill {
    margin-left: 0;
  }

  .terminal-bar {
    padding: 12px;
  }

  .terminal-panel {
    padding: 14px;
  }

  .terminal-code pre,
  .code-panel {
    font-size: 0.8rem;
    line-height: 1.72;
  }

  .future-item {
    padding: 14px 0;
  }

  .site-footer p {
    max-width: 40ch;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  :root {
    --width: min(100vw - 24px, 1024px);
  }

  .hero,
  .section {
    padding: 48px 0;
  }

  .hero-links {
    gap: 6px 10px;
    font-size: 0.84rem;
  }

  .hero-links span::after {
    margin-left: 10px;
  }

  .brand-inline {
    align-items: flex-start;
  }

  .mail-item {
    gap: 10px;
  }

  .mail-item strong {
    font-size: 0.88rem;
  }

  .mail-item span,
  .mail-item time {
    font-size: 0.82rem;
  }

  .site-footer {
    gap: 10px;
    padding-top: 18px;
  }

  .header-utility {
    gap: 6px;
  }
}
