:root {
  --bg: #0f1115;
  --panel: #161a22;
  --panel-2: #1c2230;
  --panel-3: #232a3b;
  --border: #2a3142;
  --border-strong: #3a4258;
  --text: #e7ebf3;
  --muted: #8a93a6;
  --accent: #8ab4ff;
  --accent-press: #6c9bff;
  --accent-soft: rgba(138, 180, 255, 0.12);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 18px 56px rgba(0, 0, 0, 0.42);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono); font-size: 0.92em;
  background: var(--panel-2); padding: 1px 6px; border-radius: 4px;
  color: var(--accent);
}
em { color: var(--text); font-style: italic; }
strong { color: var(--text); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #0b0f18;
  padding: 8px 12px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { left: 12px; z-index: 10; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container.narrow { max-width: 780px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }

/* ─────────── Header ─────────── */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px; height: 36px;
  filter: drop-shadow(0 0 14px rgba(138, 180, 255, 0.22));
  flex-shrink: 0;
}
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 16px; }

.primary-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.primary-nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.primary-nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) {
  .primary-nav a { display: none; }
  .primary-nav .lang-switcher { display: inline-flex; }
}

.lang-switcher {
  display: inline-flex; gap: 4px;
  padding: 3px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-btn {
  background: transparent; color: var(--muted);
  padding: 6px 12px; min-height: 28px;
  border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: #0b0f18; }
.lang-btn[aria-pressed="true"]:hover { background: var(--accent-press); }

/* ─────────── Hero ─────────── */

.hero { padding: 88px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: 2; }
}

/* Aurora */
.aurora { position: absolute; inset: -10% -5%; z-index: -1; pointer-events: none; }
.aurora-blob {
  position: absolute; width: 520px; height: 520px;
  border-radius: 50%; filter: blur(90px);
  opacity: 0.55; will-change: transform;
}
.aurora-blob.a1 {
  top: -8%; left: -6%;
  background: radial-gradient(circle, #6c9bff 0%, transparent 60%);
  animation: aurora-drift-1 22s ease-in-out infinite;
}
.aurora-blob.a2 {
  top: 30%; right: -6%;
  background: radial-gradient(circle, #8ab4ff 0%, transparent 60%);
  animation: aurora-drift-2 28s ease-in-out infinite;
}
.aurora-blob.a3 {
  bottom: -14%; left: 28%;
  background: radial-gradient(circle, #5e8eff 0%, transparent 60%);
  width: 600px; height: 600px; opacity: 0.4;
  animation: aurora-drift-3 26s ease-in-out infinite;
}
@keyframes aurora-drift-1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.08); } }
@keyframes aurora-drift-2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,40px) scale(1.06); } }
@keyframes aurora-drift-3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-25px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .aurora-blob { animation: none; } }

.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(138, 180, 255, 0.25);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero h1 .accent { color: var(--accent); }
.lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--text);
  max-width: 580px;
  margin: 0 0 28px;
}
.lede em { color: var(--accent); font-style: normal; font-weight: 600; }

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin: 0;
  color: var(--muted); font-size: 13px;
  font-family: var(--mono);
}
.hero-trust span { white-space: nowrap; }

/* CTA buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px; min-height: 44px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.cta.primary { background: var(--accent); color: #0b0f18; box-shadow: 0 6px 18px rgba(138, 180, 255, 0.22); }
.cta.primary:hover { background: var(--accent-press); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(138, 180, 255, 0.32); }
.cta.secondary { background: var(--panel); color: var(--text); border-color: var(--border); }
.cta.secondary:hover { background: var(--panel-2); text-decoration: none; transform: translateY(-1px); border-color: var(--border-strong); }
.cta-lg { padding: 14px 22px; font-size: 16px; min-height: 50px; }
.cta-ico { font-size: 18px; line-height: 1; }

/* ─────────── Hero card (live demo preview) ─────────── */

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
  width: 100%; max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform 280ms ease;
}
.hero-card:hover { transform: rotate(0deg) translateY(-3px); }
.hero-card-bar {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff6b6b; }
.dot-y { background: #ffd166; }
.dot-g { background: #6dd6a3; }
.hero-card-body { padding: 20px; }

.hero-prompt {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.hero-prompt-label {
  display: block;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-prompt-text {
  display: block;
  font-size: 14px; line-height: 1.5;
  color: var(--text);
}
.hero-card-bar-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.04em;
}

/* Typewriter loop — 4 ideas, each ~4s, total 16s. Each phrase "types"
   in, holds, then is replaced by the next phrase (no gradual delete —
   instant swap, simulates a typing user backspacing fast).
   Letter-by-letter typing is achieved with width:0→100% on a fixed-
   width inline-block. */
.hero-typewriter {
  position: relative;
  display: inline-block;
  vertical-align: top;
  min-height: 1.5em;
}
.hero-tw-word {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
  width: 0;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.hero-tw-1 { animation: hero-tw-1 16s steps(1, end) infinite; }
.hero-tw-2 { animation: hero-tw-2 16s steps(1, end) infinite; }
.hero-tw-3 { animation: hero-tw-3 16s steps(1, end) infinite; }
.hero-tw-4 { animation: hero-tw-4 16s steps(1, end) infinite; }

/* Each phrase: visible 0–25%, types 0–10%, holds 10–25%, then hidden */
@keyframes hero-tw-1 {
  0%   { opacity: 1; width: 0; }
  10%  { opacity: 1; width: 100%; animation-timing-function: linear; }
  25%  { opacity: 1; width: 100%; }
  25.01%, 100% { opacity: 0; width: 0; }
}
@keyframes hero-tw-2 {
  0%, 25% { opacity: 0; width: 0; }
  25.01%  { opacity: 1; width: 0; }
  35%     { opacity: 1; width: 100%; animation-timing-function: linear; }
  50%     { opacity: 1; width: 100%; }
  50.01%, 100% { opacity: 0; width: 0; }
}
@keyframes hero-tw-3 {
  0%, 50% { opacity: 0; width: 0; }
  50.01%  { opacity: 1; width: 0; }
  60%     { opacity: 1; width: 100%; animation-timing-function: linear; }
  75%     { opacity: 1; width: 100%; }
  75.01%, 100% { opacity: 0; width: 0; }
}
@keyframes hero-tw-4 {
  0%, 75% { opacity: 0; width: 0; }
  75.01%  { opacity: 1; width: 0; }
  85%     { opacity: 1; width: 100%; animation-timing-function: linear; }
  100%    { opacity: 1; width: 100%; }
}

/* Type-cursor blinks always */
.hero-tw-cursor {
  display: inline-block;
  width: 2px; height: 18px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: hero-tw-blink 1s steps(2) infinite;
}
@keyframes hero-tw-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Output rows: each pops in just AFTER its phrase finishes typing,
   stays for the rest of the phrase's hold, then cleared in next cycle.
   Cycle is 16s; the output row should be visible during 12.5%–25%
   (= during phrase 1's hold), 37.5%–50% (phrase 2), etc.
   But we want them to appear sequentially, not all at once.
   So: row 1 appears at 12% (right after typing finishes), row 2 at 14%,
   row 3 at 16%, row 4 at 18% — staggered by 2% (= 320ms each).
   Then they all disappear at 25%, when the phrase swaps. */
.hero-out-1 { animation: hero-out-row 16s ease-out infinite; animation-delay: 0s; }
.hero-out-2 { animation: hero-out-row 16s ease-out infinite; animation-delay: 0s; }
.hero-out-3 { animation: hero-out-row 16s ease-out infinite; animation-delay: 0s; }
.hero-out-more { animation: hero-out-row 16s ease-out infinite; animation-delay: 0s; }

/* Each row staggered: easier with 4 distinct keyframes */
.hero-out-1 { animation-name: hero-out-1; }
.hero-out-2 { animation-name: hero-out-2; }
.hero-out-3 { animation-name: hero-out-3; }
.hero-out-more { animation-name: hero-out-more; }

/* For each phrase i (i=1..4), rows fade in during 4 consecutive 320ms
   windows starting right after the phrase finishes typing, then stay
   visible until the phrase ends, then fade out. */
@keyframes hero-out-1 {
  0%, 11%   { opacity: 0; transform: translateY(6px); }
  13%, 24%  { opacity: 1; transform: translateY(0); }
  25%, 36%  { opacity: 0; transform: translateY(6px); }
  38%, 49%  { opacity: 1; transform: translateY(0); }
  50%, 61%  { opacity: 0; transform: translateY(6px); }
  63%, 74%  { opacity: 1; transform: translateY(0); }
  75%, 86%  { opacity: 0; transform: translateY(6px); }
  88%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-out-2 {
  0%, 13%   { opacity: 0; transform: translateY(6px); }
  15%, 24%  { opacity: 1; transform: translateY(0); }
  25%, 38%  { opacity: 0; transform: translateY(6px); }
  40%, 49%  { opacity: 1; transform: translateY(0); }
  50%, 63%  { opacity: 0; transform: translateY(6px); }
  65%, 74%  { opacity: 1; transform: translateY(0); }
  75%, 88%  { opacity: 0; transform: translateY(6px); }
  90%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-out-3 {
  0%, 15%   { opacity: 0; transform: translateY(6px); }
  17%, 24%  { opacity: 1; transform: translateY(0); }
  25%, 40%  { opacity: 0; transform: translateY(6px); }
  42%, 49%  { opacity: 1; transform: translateY(0); }
  50%, 65%  { opacity: 0; transform: translateY(6px); }
  67%, 74%  { opacity: 1; transform: translateY(0); }
  75%, 90%  { opacity: 0; transform: translateY(6px); }
  92%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-out-more {
  0%, 17%   { opacity: 0; transform: translateY(6px); }
  19%, 24%  { opacity: 1; transform: translateY(0); }
  25%, 42%  { opacity: 0; transform: translateY(6px); }
  44%, 49%  { opacity: 1; transform: translateY(0); }
  50%, 67%  { opacity: 0; transform: translateY(6px); }
  69%, 74%  { opacity: 1; transform: translateY(0); }
  75%, 92%  { opacity: 0; transform: translateY(6px); }
  94%, 100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tw-1, .hero-tw-2, .hero-tw-3, .hero-tw-4 { animation: none; }
  .hero-tw-1 { opacity: 1; width: 100%; position: static; }
  .hero-tw-2, .hero-tw-3, .hero-tw-4 { display: none; }
  .hero-tw-cursor { animation: none; }
  .hero-out-1, .hero-out-2, .hero-out-3, .hero-out-more {
    animation: none; opacity: 1; transform: none;
  }
}

.hero-arrow {
  text-align: center;
  font-size: 20px; color: var(--accent);
  margin: 12px 0;
  animation: arrow-bob 2.6s ease-in-out infinite;
}
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero-arrow { animation: none; } }

.hero-output {
  display: flex; flex-direction: column; gap: 8px;
}
.hero-output-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono); font-size: 13px;
  color: var(--text);
}
.hero-out-ico { color: var(--accent); }
.hero-output-more {
  color: var(--muted); font-style: italic;
  background: transparent; border-style: dashed;
}

/* ─────────── Sections ─────────── */

.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-alt { background: linear-gradient(to bottom, transparent, rgba(28, 34, 48, 0.4)); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.kicker {
  margin: 0 0 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}
.section-head p { color: var(--muted); margin: 0; font-size: 17px; line-height: 1.55; }

/* ─────────── How-it-works strip ─────────── */

.steps-strip {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps-strip { grid-template-columns: 1fr; gap: 14px; } }

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute; top: -14px; left: 22px;
  width: 32px; height: 32px;
  background: var(--accent); color: #0b0f18;
  border-radius: 50%;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(138, 180, 255, 0.32);
}
.step h3 { margin: 8px 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }

.step-visual {
  margin-top: auto;
  padding-top: 16px;
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center; justify-content: flex-start;
}

/* Step 1 mock tiles */
.mock-tile {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  font-size: 13px; color: var(--muted);
}
.mock-tile.sel {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft);
}

/* Step 2 mock document */
.mock-doc {
  flex: 0 0 96px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.mock-line { height: 5px; border-radius: 3px; background: rgba(138, 180, 255, 0.4); }
.mock-line.w70 { width: 70%; background: var(--accent); }
.mock-line.w50 { width: 50%; }
.mock-line.w65 { width: 65%; }
.mock-line.w40 { width: 40%; }
.mock-doc-stack {
  display: inline-flex; flex-direction: column; gap: 4px;
  align-self: flex-start;
}
.mock-doc-stack span {
  display: block; width: 80px; height: 22px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px;
  opacity: 0.6;
}
.mock-doc-stack span:nth-child(2) { opacity: 0.4; transform: translateX(4px); }
.mock-doc-stack span:nth-child(3) { opacity: 0.25; transform: translateX(8px); }

/* Step 3 mock chat */
.mock-chat {
  flex: 1; min-width: 180px;
  display: flex; flex-direction: column; gap: 6px;
}
.mock-chat-msg, .mock-chat-reply {
  padding: 8px 12px; border-radius: 8px; font-size: 13px;
}
.mock-chat-msg {
  align-self: flex-end; background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(138, 180, 255, 0.3);
}
.mock-chat-reply {
  align-self: flex-start; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border);
}

.how-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }

/* ─────────── Example output preview ─────────── */

.example-preview {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.example-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}
.example-tag {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 4px;
}
.example-meta { font-family: var(--mono); font-size: 12px; }
.example-preview-body {
  position: relative;
  margin: 0;
  padding: 22px 24px;
  background: var(--panel-2);
  font-family: var(--mono); font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
  overflow: hidden;
  max-height: 360px;
}
.example-preview-body code {
  background: transparent; padding: 0; color: inherit; font-size: inherit;
  white-space: pre-wrap; word-break: break-word;
  display: block;
}
.example-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--panel-2));
  pointer-events: none;
}
.example-preview-foot {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

/* ─────────── What-you-get file cards ─────────── */

.files-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.file-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
  transition: border-color 140ms ease, transform 140ms ease;
}
.file-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.file-card h3 {
  margin: 0 0 6px; font-size: 14px; font-family: var(--mono); color: var(--accent);
  font-weight: 600; letter-spacing: 0;
}
.file-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ─────────── Code blocks ─────────── */

.codeblock {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin: 0 0 20px;
  overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
}
.codeblock code { background: transparent; padding: 0; font-size: inherit; color: var(--text); }

/* ─────────── Deep flow ("From one word to a working project") ─────────── */

.section-flow {
  background:
    radial-gradient(ellipse 70% 50% at 30% 10%, rgba(138, 180, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(108, 155, 255, 0.05), transparent 60%);
  position: relative;
  overflow: hidden;
}

.deep-flow {
  list-style: none; padding: 0; margin: 0 0 36px;
  position: relative;
  display: flex; flex-direction: column;
  gap: 32px;
}

/* Vertical connecting line behind the stages — desktop only */
.deep-flow::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(138, 180, 255, 0.5) 0%,
    rgba(138, 180, 255, 0.2) 50%,
    rgba(138, 180, 255, 0.5) 100%);
  z-index: 0;
}
@media (max-width: 820px) { .deep-flow::before { display: none; } }

.deep-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  padding: 24px 24px 24px 88px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.deep-stage.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 820px) {
  .deep-stage {
    grid-template-columns: 1fr;
    padding: 22px 22px 22px 22px;
    gap: 18px;
  }
}

/* Stage number bubble */
.deep-step-num {
  position: absolute;
  left: 16px;
  top: 22px;
  width: 40px; height: 40px;
  background: var(--accent); color: #0b0f18;
  border-radius: 50%;
  font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(138, 180, 255, 0.42);
  z-index: 1;
}
@media (max-width: 820px) {
  .deep-step-num {
    position: relative; left: 0; top: 0;
    margin-bottom: 4px;
  }
}

.deep-step h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.deep-step p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.deep-step p em { color: var(--accent); font-style: normal; font-weight: 600; }
.deep-step p code {
  font-family: var(--mono); font-size: 0.92em;
  background: var(--panel-2); color: var(--accent);
  padding: 1px 6px; border-radius: 4px;
}

/* Animation panels */
.deep-anim {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 140px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}

/* Stage 1 — typing animation */
.deep-anim-typing { font-family: var(--mono); }
.anim-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 15px;
  display: flex; align-items: center;
  min-height: 56px;
}
.anim-typed { color: var(--text); }
.anim-cursor {
  display: inline-block;
  width: 2px; height: 18px;
  background: var(--accent);
  margin-left: 2px;
  animation: anim-blink 1s steps(2) infinite;
}
@keyframes anim-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.deep-stage.is-visible .anim-typed {
  display: inline-block;
  overflow: hidden; white-space: nowrap;
  width: 0;
  animation: anim-type 1.6s steps(20, end) 0.3s forwards;
}
@keyframes anim-type {
  from { width: 0; }
  to   { width: 100%; }
}

/* Stage 2 — pills appearing */
.deep-anim-pills { gap: 8px; }
.anim-pill {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  width: fit-content;
  opacity: 0;
  transform: translateX(-8px);
}
.deep-stage.is-visible .anim-pill-1 { animation: anim-pill-in 400ms ease-out 0.3s forwards; }
.deep-stage.is-visible .anim-pill-2 { animation: anim-pill-in 400ms ease-out 0.7s forwards; }
.deep-stage.is-visible .anim-pill-3 { animation: anim-pill-in 400ms ease-out 1.1s forwards; }
@keyframes anim-pill-in {
  to { opacity: 1; transform: translateX(0); }
}
.anim-checkmark {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--success); color: #0b0f18;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  opacity: 0; transform: scale(0.5);
}
.deep-stage.is-visible .anim-checkmark { animation: anim-check-in 400ms cubic-bezier(0.5, 1.6, 0.6, 1) 1.5s forwards; }
@keyframes anim-check-in {
  to { opacity: 1; transform: scale(1); }
}

/* Stage 3 — file icons appearing in a stack */
.deep-anim-files { gap: 6px; padding: 14px; }
.anim-file {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
}
.anim-file-more { color: var(--muted); font-style: italic; border-style: dashed; }
.deep-stage.is-visible .anim-file-1 { animation: anim-file-in 360ms ease-out 0.2s forwards; }
.deep-stage.is-visible .anim-file-2 { animation: anim-file-in 360ms ease-out 0.4s forwards; }
.deep-stage.is-visible .anim-file-3 { animation: anim-file-in 360ms ease-out 0.6s forwards; }
.deep-stage.is-visible .anim-file-4 { animation: anim-file-in 360ms ease-out 0.8s forwards; }
.deep-stage.is-visible .anim-file-5 { animation: anim-file-in 360ms ease-out 1.0s forwards; }
@keyframes anim-file-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Stage 4 — chat bubbles back-and-forth */
.deep-anim-chat { gap: 8px; }
.anim-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
}
.anim-bubble-user {
  align-self: flex-end;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(138, 180, 255, 0.3);
}
.anim-bubble-ai {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.deep-stage.is-visible .anim-bubble:nth-child(1) { animation: anim-bubble-in 380ms ease-out 0.2s forwards; }
.deep-stage.is-visible .anim-bubble:nth-child(2) { animation: anim-bubble-in 380ms ease-out 0.7s forwards; }
.deep-stage.is-visible .anim-bubble:nth-child(3) { animation: anim-bubble-in 380ms ease-out 1.2s forwards; }
.deep-stage.is-visible .anim-bubble:nth-child(4) { animation: anim-bubble-in 380ms ease-out 1.7s forwards; }
@keyframes anim-bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Stage 5 — code editor / terminal */
.deep-anim-code { padding: 0; overflow: hidden; }
.anim-code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.anim-code-dot { width: 9px; height: 9px; border-radius: 50%; }
.anim-code-dot-r { background: #ff6b6b; }
.anim-code-dot-y { background: #ffd166; }
.anim-code-dot-g { background: #6dd6a3; }
.anim-code-title {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}
.anim-code-body {
  padding: 12px 14px;
  font-family: var(--mono); font-size: 12.5px;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--text);
  background: var(--panel-2);
}
.anim-code-line {
  opacity: 0;
  transform: translateY(4px);
  display: flex; gap: 8px;
}
.ac-prompt { color: var(--muted); flex-shrink: 0; }
.ac-prompt.ac-ok { color: var(--success); }
.ac-text-ok { color: var(--success); }
.deep-stage.is-visible .anim-code-line:nth-child(1) { animation: anim-code-in 320ms ease-out 0.3s forwards; }
.deep-stage.is-visible .anim-code-line:nth-child(2) { animation: anim-code-in 320ms ease-out 0.9s forwards; }
.deep-stage.is-visible .anim-code-line:nth-child(3) { animation: anim-code-in 320ms ease-out 1.5s forwards; }
.deep-stage.is-visible .anim-code-line:nth-child(4) { animation: anim-code-in 320ms ease-out 2.0s forwards; }
@keyframes anim-code-in {
  to { opacity: 1; transform: translateY(0); }
}

.flow-cta {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 8px;
}

/* ─────────── Try-these-ideas cards (one-click deep-links) ─────────── */

.try-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .try-cards { grid-template-columns: 1fr; } }

.try-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.try-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.try-card-quote {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.005em;
  font-style: italic;
}
.try-card-desc {
  margin: 0; flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.try-card-desc code {
  background: var(--panel-2);
  padding: 1px 6px; border-radius: 4px;
  font-size: 0.92em;
}
.try-card-cta { align-self: flex-start; }

/* Reduced motion — show all animation states immediately, no transitions */
@media (prefers-reduced-motion: reduce) {
  .deep-stage { opacity: 1; transform: none; transition: none; }
  .anim-typed { width: 100% !important; animation: none !important; white-space: normal !important; }
  .anim-cursor { animation: none; }
  .anim-pill, .anim-bubble, .anim-file, .anim-code-line, .anim-checkmark {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}

/* ─────────── Footer ─────────── */

.site-footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 32px; }
.footer-row { display: flex; flex-direction: column; gap: 8px; }
.footer-row p { margin: 0; color: var(--muted); }
.footer-row p a { color: var(--text); }

/* ─────────── Legal pages (impressum, datenschutz) ─────────── */

.legal-main { padding: 56px 0 80px; }
.legal-article { display: flex; flex-direction: column; gap: 8px; }
.legal-head {
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-head h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 4px 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}
.legal-head .muted { font-size: 16px; }
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-size: clamp(20px, 3vw, 24px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text);
}
.legal-section h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  font-weight: 600;
  color: var(--accent);
}
.legal-section p { margin: 0 0 14px; line-height: 1.65; }
.legal-section ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.7; }
.legal-section ul li { margin-bottom: 6px; }
.legal-section address {
  font-style: normal;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 14px;
  line-height: 1.65;
}
.legal-section a { color: var(--accent); }
.legal-section a:hover { color: var(--accent-press); }
.legal-back {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.legal-back a { color: var(--accent); font-weight: 600; }

/* ─────────── Mobile polish ─────────── */

@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .header-row { padding: 12px 16px; }
  .hero { padding: 44px 0 36px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .hero-trust { gap: 12px; font-size: 12px; }
  .step { padding: 22px 18px; }
  .example-preview-body { padding: 16px 18px; max-height: 280px; }
}
