/* ── Tokens ────────────────────────────────────────────────────────────────
   Brand values are the product's own, from frontend/src/styles/tokens.css;
   sun/sky/lime are the logo's accent colours.                              */
:root {
  --ozv-ink:    #091a14;
  --ozv-deep:   #0d2b1d;
  --ozv-brand:  #143828;
  --ozv-mid:    #1f5c3a;
  --ozv-step5:  #2f7a4d;
  --ozv-sage:   #9ec3ac;
  --ozv-pale:   #e8f0ec;
  --ozv-sun:    #f6c213;
  --ozv-sky:    #62c8ff;
  --ozv-lime:   #a7d63a;

  --bg:         #f8faf7;
  --bg-raised:  #ffffff;
  --bg-sunk:    #f3f6f2;
  --fg:         #0f172a;
  --fg-soft:    #334155;
  --fg-muted:   #5c6d64;
  --line:       #dde5df;
  --line-soft:  #e9efea;
  --accent:     #1f5c3a;
  --accent-hi:  #2f7a4d;
  --on-accent:  #ffffff;
  --shadow:     0 1px 2px rgba(9,26,20,.05), 0 8px 24px -12px rgba(9,26,20,.18);

  --measure: 65ch;
  --radius: 14px;
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.2rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0b1410;
    --bg-raised: #11211a;
    --bg-sunk:   #091a14;
    --fg:        #e9f1ec;
    --fg-soft:   #c2d4c8;
    --fg-muted:  #93a89b;
    --line:      #1f3a2c;
    --line-soft: #172c21;
    --accent:    #9ec3ac;
    --accent-hi: #a7d63a;
    --on-accent: #06120d;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg:        #0b1410;
  --bg-raised: #11211a;
  --bg-sunk:   #091a14;
  --fg:        #e9f1ec;
  --fg-soft:   #c2d4c8;
  --fg-muted:  #93a89b;
  --line:      #1f3a2c;
  --line-soft: #172c21;
  --accent:    #9ec3ac;
  --accent-hi: #a7d63a;
  --on-accent: #06120d;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ozv-lime); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: Archivo, Inter, system-ui, sans-serif;
  text-wrap: balance;
  letter-spacing: -.021em;
  line-height: 1.08;
  margin: 0;
  /* German compounds ("Viertelstundenwert") are longer than a phone screen at
     display size; the page sets lang, so the browser knows where to break. */
  hyphens: auto;
  overflow-wrap: break-word;
}
p { margin: 0; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: clamp(20px, 4vw, 44px); }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ── Hero — deliberately dark in both themes, echoing the app's sidebar ── */
.hero {
  background:
    radial-gradient(120% 80% at 82% -10%, rgba(47,122,77,.42), transparent 62%),
    radial-gradient(80% 60% at 8% 0%, rgba(98,200,255,.10), transparent 60%),
    var(--ozv-ink);
  color: #eaf3ed;
  border-bottom: 1px solid rgba(158,195,172,.16);
}
.hero-inner { padding-block: clamp(30px, 5vw, 56px) clamp(40px, 6vw, 76px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topbar img { width: 132px; }
.toplinks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.toplinks a { color: var(--ozv-sage); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.toplinks a:hover { color: #fff; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(38px, 6vw, 70px);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero .eyebrow { color: var(--ozv-lime); }
.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  margin-top: 18px;
  letter-spacing: -.033em;
}
.hero h1 em { font-style: normal; color: var(--ozv-sun); }
.hero-lede {
  margin-top: 20px;
  max-width: 48ch;
  color: #c6dacd;
  font-size: var(--step-1);
  line-height: 1.5;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ozv-step5); color: #fff; }
.btn-primary:hover { background: #379059; }
.btn-ghost { border-color: rgba(158,195,172,.34); color: #dcebe1; }
.btn-ghost:hover { border-color: var(--ozv-sage); background: rgba(158,195,172,.09); }

/* Energy-flow ribbon */
.flow-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(158,195,172,.2);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
  backdrop-filter: blur(2px);
}
.flow-card .eyebrow { color: var(--ozv-sage); }
.flow-card svg { width: 100%; height: auto; margin-top: 14px; }
.flow-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: .78rem; color: #b6cdc0; }
.flow-legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.flow-note { margin-top: 14px; font-size: .78rem; color: #8fa89a; line-height: 1.5; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vw, 64px);
  background: rgba(158,195,172,.18);
  border: 1px solid rgba(158,195,172,.18);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--ozv-deep); padding: 18px 20px; }
.stat dt { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ozv-sage); font-family: "IBM Plex Mono", monospace; margin: 0; }
.stat dd { margin: 7px 0 0; font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.16rem; color: #fff; letter-spacing: -.01em; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { max-width: var(--measure); }
.sec-head .eyebrow { color: var(--accent-hi); }
.sec-head h2 { font-size: var(--step-3); font-weight: 700; margin-top: 14px; }
.sec-head p { margin-top: 16px; color: var(--fg-soft); font-size: var(--step-1); line-height: 1.55; }

/* Feature grid — spans vary by weight, so it doesn't read as six equal boxes */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: clamp(34px, 4vw, 52px); }
.feature {
  grid-column: span 2;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  min-width: 0;
}
.feature.wide { grid-column: span 3; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature, .feature.wide { grid-column: span 1; } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature h3 { font-size: var(--step-1); font-weight: 700; }
.feature .eyebrow { color: var(--fg-muted); display: block; margin-bottom: 11px; }
.feature p { margin-top: 11px; color: var(--fg-soft); font-size: .95rem; line-height: 1.6; }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--fg-soft); line-height: 1.5; }
.feature li::before {
  content: ""; position: absolute; left: 3px; top: .58em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent-hi);
}

/* Screenshots */
.shots { display: grid; gap: clamp(26px, 4vw, 44px); margin-top: clamp(34px, 4vw, 52px); }
.shot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.shot:nth-child(even) .shot-text { order: 2; }
@media (max-width: 900px) { .shot, .shot:nth-child(even) .shot-text { grid-template-columns: 1fr; order: 0; } }
.shot-text h3 { font-size: var(--step-2); font-weight: 700; }
.shot-text p { margin-top: 12px; color: var(--fg-soft); font-size: .96rem; line-height: 1.6; }
.shot-text .eyebrow { color: var(--fg-muted); display: block; margin-bottom: 10px; }
.shot figure { margin: 0; }
.shot img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}
.shot figcaption { margin-top: 10px; font-size: .78rem; color: var(--fg-muted); }

/* Quick start */
.quickstart { background: var(--ozv-ink); color: #e6efe9; }
.quickstart .sec-head h2 { color: #fff; }
.quickstart .sec-head p { color: #b9cfc2; }
.quickstart .eyebrow { color: var(--ozv-lime); }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 920px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.path {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(158,195,172,.2);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.path h3 { font-size: 1.12rem; font-weight: 700; color: #fff; }
.path .eyebrow { color: var(--ozv-sage); display: block; margin-bottom: 10px; }
.path > p { margin-top: 10px; font-size: .88rem; color: #b3c9bc; line-height: 1.55; flex: 1; }
pre {
  margin: 16px 0 0;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(158,195,172,.15);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .8rem;
  line-height: 1.75;
  color: #dcecdf;
}
pre .c { color: #85a894; }
pre .p { color: var(--ozv-lime); }
.after { margin-top: 26px; display: flex; gap: 12px 26px; flex-wrap: wrap; font-size: .84rem; color: #b3c9bc; }
.after b { color: #fff; font-weight: 600; }

/* Stack + honesty */
.stack-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: clamp(30px, 4vw, 44px); }
.stack-item { border-left: 2px solid var(--accent-hi); padding-left: 16px; }
.stack-item dt { font-family: "IBM Plex Mono", monospace; font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-muted); }
.stack-item dd { margin: 7px 0 0; font-size: .93rem; color: var(--fg-soft); line-height: 1.55; }
.stack-item a { color: var(--accent-hi); text-decoration: none; border-bottom: 1px solid currentColor; }
.stack-item a:hover { color: var(--fg); }

.note {
  margin-top: clamp(44px, 5vw, 64px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ozv-sun);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 24px 26px;
  max-width: 78ch;
}
.note h3 { font-size: 1.06rem; font-weight: 700; }
.note p { margin-top: 11px; font-size: .9rem; color: var(--fg-soft); line-height: 1.62; }

/* Footer */
footer { background: var(--bg-sunk); border-top: 1px solid var(--line); padding-block: 46px; }
.foot { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 14px 30px; flex-wrap: wrap; }
.foot-links a { color: var(--fg-soft); text-decoration: none; font-size: .88rem; }
.foot-links a:hover { color: var(--accent-hi); text-decoration: underline; }
.foot-meta { font-size: .8rem; color: var(--fg-muted); max-width: 42ch; line-height: 1.6; }

/* Language switcher */
.lang { display: flex; gap: 4px; align-items: center; }
.lang a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.lang a[aria-current="page"] { color: #fff; border-color: rgba(158,195,172,.45); }
