/* NexusClicker marketing site — brand-aligned dark UI */

:root {
  --bg: #0a0c11;
  --bg-2: #0e1117;
  --surface: #141821;
  --surface-2: #1a1f2b;
  --elevated: #1f2634;
  --border: #262d3b;
  --border-strong: #333c4e;

  --text: #e7eaf1;
  --text-2: #aab3c5;
  --text-muted: #6b7488;

  --accent: #7c5cff;
  --accent-2: #4b7bff;
  --accent-hover: #916fff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --on-accent: #ffffff;

  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --cyan: #22d3ee;

  /* Onest: full Latin + Cyrillic, modern geometric; mono for labels */
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
  --display: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px var(--accent-soft), 0 16px 50px rgba(124, 92, 255, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.45;
}

.orb-a {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 65%);
}

.orb-b {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(75, 123, 255, 0.28), transparent 65%);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(10, 12, 17, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 12, 17, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--accent-hover);
}

.brand.compact .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav .nav-cta {
  margin-left: 8px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.28);
}

.nav .nav-cta:hover {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-2));
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 2px;
}

.lang-btn {
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.05);
  }
}

.hero h1,
.section-head h2,
.split-copy h2,
.download-copy h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.65rem);
  max-width: 16ch;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.grad {
  background: linear-gradient(120deg, var(--accent-hover) 0%, #a78bfa 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.section-desc {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 48ch;
}

.lead {
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

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

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-2));
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--text-2);
  font-weight: 600;
}

/* Demo panel / Bézier canvas */
.demo-panel {
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.9), rgba(14, 17, 23, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(124, 92, 255, 0.08);
  position: relative;
}

.demo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 70% 0%, rgba(124, 92, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.demo-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.demo-chrome span:nth-child(1) {
  background: #f87171;
}
.demo-chrome span:nth-child(2) {
  background: #fbbf24;
}
.demo-chrome span:nth-child(3) {
  background: #34d399;
}

.demo-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#bezier-canvas {
  width: 100%;
  min-height: 200px;
  height: auto;
  display: block;
  position: relative;
  vertical-align: top;
  background: #0a0c11;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.demo-stats > div {
  background: var(--bg-2);
  padding: 12px 10px;
  text-align: center;
}

.demo-stats .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.demo-stats .v {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Strip */
.strip {
  border-block: 1px solid var(--border);
  background: rgba(14, 17, 23, 0.6);
  position: relative;
  z-index: 1;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 18px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.strip .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Sections */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 17, 23, 0.55), transparent 30%, transparent 70%, rgba(14, 17, 23, 0.4));
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.feature-icon[data-tone="blue"] {
  background: rgba(75, 123, 255, 0.14);
  color: #7aa2ff;
}
.feature-icon[data-tone="green"] {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}
.feature-icon[data-tone="amber"] {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
}
.feature-icon[data-tone="rose"] {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
}
.feature-icon[data-tone="cyan"] {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.94rem;
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse .split-copy {
  order: 2;
}

.split.reverse .split-panel {
  order: 1;
}

.split-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.split-copy .section-desc {
  margin-bottom: 22px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23916fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8.2l2.5 2.5L12 5'/%3E%3C/svg%3E");
}

/* Motion model card (product-facing, not source code) */
.model-card {
  background: #0c0f15;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.model-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #0c0f15;
}

.model-k {
  font-size: 0.9rem;
  color: var(--text-2);
}

.model-v {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-hover);
  font-weight: 500;
}

.model-note {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Vision */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.vision-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.vision-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.vision-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.vision-card p {
  color: var(--text-2);
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.swatches {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.swatches i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.template-mock {
  margin-top: auto;
  position: relative;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #12151c, #1a2030);
}

.tm-scene {
  position: absolute;
  inset: 14px 18px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    -12deg,
    #1f2634,
    #1f2634 8px,
    #252d3d 8px,
    #252d3d 16px
  );
  opacity: 0.8;
}

.tm-box {
  position: absolute;
  width: 48px;
  height: 34px;
  top: 20px;
  left: 42%;
  border: 1.5px solid var(--success);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2), 0 0 20px rgba(52, 211, 153, 0.15);
  animation: boxPulse 2.4s ease infinite;
}

@keyframes boxPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.ocr-mock {
  margin-top: auto;
  position: relative;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1219;
}

.ocr-line {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: rgba(231, 234, 241, 0.22);
}

.ocr-box {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
  border: 1px dashed rgba(124, 92, 255, 0.7);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.08);
}

.capture-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.capture-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.capture-item strong {
  font-size: 0.92rem;
}

.capture-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Flow diagram */
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: var(--shadow-md);
}

.flow-node {
  width: min(100%, 280px);
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
}

.flow-node.start,
.flow-node.end {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(75, 123, 255, 0.12));
  border-color: rgba(124, 92, 255, 0.45);
  color: var(--text);
}

.flow-node.cond {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

.flow-node.call {
  border-color: rgba(34, 211, 238, 0.35);
  color: #67e8f9;
}

.flow-line {
  width: 2px;
  height: 18px;
  background: linear-gradient(var(--border-strong), var(--border));
}

.flow-branch {
  width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-fork {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.flow-node.then {
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.flow-node.else {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 18px;
}

.stat-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--text), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-2);
  font-size: 0.88rem;
}

.safety-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(14, 17, 23, 0.6));
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--r-xl);
  padding: 28px;
}

.safety-banner h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.safety-banner p {
  color: var(--text-2);
  max-width: 52ch;
}

.safety-banner ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.safety-banner li {
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 12, 17, 0.45);
  border: 1px solid var(--border);
}

/* Stack */
.stack-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stack-box {
  flex: 1 1 200px;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stack-box.accent {
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), var(--surface));
}

.stack-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stack-box strong {
  font-size: 1.05rem;
}

.stack-box span:last-child {
  color: var(--text-2);
  font-size: 0.88rem;
}

.stack-arrow {
  align-self: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(124, 92, 255, 0.4);
  background: var(--accent-soft);
}

/* Download */
.download-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.download-copy .hero-actions {
  margin-bottom: 0;
  margin-top: 22px;
}

.download-copy > p {
  color: var(--text-2);
  max-width: 46ch;
}

.dl-hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.45;
}

.download-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
}

.req-card h3 {
  font-size: 0.92rem;
  font-weight: 650;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.check-list.compact {
  gap: 8px;
}

.check-list.compact li {
  font-size: 0.88rem;
  padding-left: 26px;
}

.check-list.compact li::before {
  top: 0.28em;
  width: 14px;
  height: 14px;
}

.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-note strong {
  color: var(--text-2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  position: relative;
  z-index: 1;
}

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

.footer-inner > p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 0.9rem;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse,
  .download-card,
  .safety-banner {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy,
  .split.reverse .split-panel {
    order: initial;
  }

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

  .stats-grid,
  .capture-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
  }

  .lang-btn {
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(14, 17, 23, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 60;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  .feature-grid,
  .vision-grid,
  .stats-grid,
  .capture-row,
  .demo-stats {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 40px;
  }

  .section {
    padding: 72px 0;
  }

  .download-card {
    padding: 22px;
  }

  .safety-banner ul {
    grid-template-columns: 1fr;
  }

  .strip .sep {
    display: none;
  }
}

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

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

  .feature-card:hover {
    transform: none;
  }

  .eyebrow .dot,
  .tm-box {
    animation: none;
  }
}

/* ========== Download page ========== */
.page-download {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-download .dl-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(160px, 300px) minmax(0, 1fr) minmax(160px, 300px);
  gap: 20px;
  width: min(100% - 24px, 1400px);
  margin: 28px auto 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.ad-rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  justify-content: center;
}

.ad-slot {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: rgba(20, 24, 33, 0.55);
  overflow: hidden;
}

.ad-slot.has-ad {
  border-style: solid;
  border-color: var(--border);
  background: var(--surface);
}

.ad-slot-sky {
  width: 100%;
  max-width: 300px;
  min-height: 600px;
}

.ad-slot-inline {
  width: 100%;
  min-height: 90px;
  margin: 8px 0 4px;
  border-radius: 12px;
}

.ad-placeholder {
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  color: var(--text-muted);
  text-align: center;
}

.ad-placeholder-inline {
  min-height: 90px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.ad-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.ad-size {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ad-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dl-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.dl-card h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.dl-card .lead {
  margin-bottom: 28px;
  max-width: 48ch;
}

.dl-timer {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.dl-ring-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.dl-ring-svg {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}

.dl-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.dl-ring-fg {
  fill: none;
  stroke: url(#none);
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.9s linear;
}

.dl-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dl-ring-num span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.dl-ring-num small {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dl-timer-copy {
  flex: 1;
  min-width: 200px;
}

.dl-timer-copy p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 12px;
}

.dl-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.dl-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.9s linear;
}

.dl-actions {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 0;
}

/* Match inline ad banner footprint (full width × ~90px) */
.dl-actions .btn-primary#dl-manual,
#dl-manual.btn-primary {
  display: inline-flex;
  width: 100%;
  min-height: 90px;
  height: 90px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  gap: 12px;
  box-shadow: var(--shadow-glow);
}

.dl-actions .btn-primary#dl-manual svg,
#dl-manual.btn-primary svg {
  width: 22px;
  height: 22px;
}

.dl-actions .btn.is-hidden,
.btn.is-hidden[hidden] {
  display: none !important;
}

.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ========== Screenshots gallery ========== */
.shots {
  position: relative;
  z-index: 1;
  padding: 56px 0 28px;
}

.shots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.shots-head-copy {
  max-width: 560px;
}

.shots-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.shots-head p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.shots-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.shot:hover,
.shot:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.shot-frame {
  position: relative;
  background: #080a10;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: radial-gradient(120% 80% at 50% 0%, #141821 0%, #080a10 70%);
}

.shot-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  pointer-events: none;
}

.shot:hover .shot-zoom,
.shot:focus-visible .shot-zoom {
  opacity: 1;
  transform: scale(1);
}

.shot-zoom svg {
  width: 18px;
  height: 18px;
}

.shot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.shot-meta strong {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.shot-meta span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 8, 12, 0.86);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  position: relative;
  width: min(100%, 1180px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #0a0c11;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.lightbox-caption {
  color: var(--text);
  font-weight: 650;
  font-size: 0.98rem;
}

.lightbox-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 10px;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lightbox-btn:hover {
  border-color: rgba(124, 92, 255, 0.45);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.lightbox-btn svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 17, 23, 0.82);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lightbox-nav:hover {
  background: rgba(124, 92, 255, 0.35);
  border-color: rgba(145, 111, 255, 0.55);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .shots-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot,
  .lightbox {
    transition: none;
  }

  .shot:hover {
    transform: none;
  }
}

.dl-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dl-meta li {
  position: relative;
  padding-left: 14px;
}

.dl-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

@media (max-width: 1100px) {
  .page-download .dl-main {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 720px);
  }

  .ad-rail {
    position: static;
    order: 3;
  }

  .ad-rail-left {
    order: 2;
  }

  .ad-rail-right {
    order: 3;
  }

  .dl-center {
    order: 1;
  }

  .ad-slot-sky {
    width: 100%;
    min-height: 120px;
  }

  .ad-placeholder {
    min-height: 120px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .dl-card {
    padding: 22px 18px;
  }

  .dl-timer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== Longread / SEO content ========== */
.longread {
  border-top: 1px solid var(--border);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 40px;
}

.toc-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.toc-list a:hover {
  color: var(--accent-hover);
}

/* Longread uses the same container width as Features / other marketing sections */
.longread .container {
  overflow: visible;
}

.lr-block {
  margin-bottom: 56px;
  width: 100%;
  max-width: none;
}

.lr-block .section-head {
  margin-bottom: 20px;
  max-width: 640px; /* same as .section-head elsewhere */
}

.lr-block .section-head h2 {
  max-width: none;
}

.prose {
  display: block;
  width: 100%;
  max-width: none; /* full content column like cards above */
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1em;
  max-width: 68ch; /* readable line length, full section width allowed for tables/grids */
}

.prose .answer-block,
.prose .callout,
.prose .table-wrap,
.prose .usecase-grid,
.prose .faq-list,
.prose .glossary,
.prose .steps,
.prose .lr-cta {
  max-width: none;
}

.prose h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 1.4em 0 0.6em;
  letter-spacing: -0.02em;
}

.prose a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.answer-block {
  display: block;
  box-sizing: border-box;
  width: 100%;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(14, 17, 23, 0.4));
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}

.callout {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px;
  margin: 1.2em 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
}

.table-wrap {
  overflow-x: auto;
  margin: 1em 0 1.4em;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.lr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
}

.lr-table th,
.lr-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.lr-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 34%;
}

.lr-table tr:last-child th,
.lr-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  width: auto;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table .yes {
  color: var(--success);
  font-weight: 600;
}

.compare-table .no {
  color: var(--text-muted);
}

.compare-table .mid {
  color: var(--warn);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding: 14px 14px 14px 52px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: none;
}

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}

.usecase-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.usecase-card p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.glossary {
  display: grid;
  gap: 12px;
  max-width: none;
}

.glossary > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.glossary dt {
  font-weight: 650;
  color: var(--text);
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.glossary dd {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.5;
}

.faq-list {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  color: var(--text);
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-hover);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-a {
  padding: 0 0 16px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.faq-a a {
  color: var(--accent-hover);
}

.lr-cta {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(14, 17, 23, 0.5));
  margin-top: 20px;
}

.lr-cta h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.lr-cta p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.lr-updated {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.dl-longread {
  margin-top: 28px;
  max-width: 720px;
}

.dl-longread .prose {
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Cookie banner ========== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(14, 17, 23, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(124, 92, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}

.cookie-title {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.95rem;
}

.cookie-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 46ch;
}

.cookie-copy a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}

/* lang switch as links */
.lang-switch a.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ========== Legal pages ========== */
.page-legal .legal-main,
.page-guide .guide-main {
  position: relative;
  z-index: 1;
  padding: 40px 0 72px;
}

.legal-wrap {
  max-width: 760px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.legal-card h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-bottom: 24px;
}

.legal-card h2 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.5em;
  letter-spacing: -0.02em;
}

.legal-card ul {
  margin: 0.6em 0 1em;
  padding-left: 1.2rem;
  color: var(--text-2);
}

.legal-card li {
  margin: 0.35em 0;
}

.legal-card p {
  color: var(--text-2);
  margin: 0.7em 0;
  line-height: 1.65;
}

.legal-card a {
  color: var(--accent-hover);
}

/* ========== Guide page ========== */
.guide-hero {
  max-width: 720px;
  margin-bottom: 36px;
}

.guide-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.guide-body {
  max-width: 760px;
}

.guide-body section {
  margin-bottom: 42px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.guide-body h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.guide-body h3 {
  font-size: 1.05rem;
  margin: 1.2em 0 0.45em;
  color: var(--text);
}

.guide-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 32px;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-2);
  font-size: 0.92rem;
  display: grid;
  gap: 5px;
}

.guide-toc a:hover {
  color: var(--accent-hover);
}

.guide-body .box {
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin: 1em 0;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.55;
}

.guide-body .box.tip {
  border-left-color: var(--accent);
}

.guide-body .box.warn {
  border-left-color: var(--warn);
}

.guide-body .box.danger {
  border-left-color: var(--danger);
}

.guide-body kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

.guide-body .recipe {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 10px 0;
}

.guide-body .recipe h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.guide-body .recipe p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.guide-body .faq-item {
  margin-bottom: 8px;
}
