/* Honkwave website. Static, no cookies, no external fonts. */

:root {
  --bg: #07090c;
  --bg-2: #0c1117;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f5;
  --muted: #a1a7b0;
  --teal: #33d9d9;
  --amber: #ffb833;
  --orange: #ff7a35;
  --red: #ff4733;
  --magenta: #ff2e8c;
  --heat: linear-gradient(90deg, var(--teal), var(--amber) 35%, var(--red) 70%, var(--magenta));
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --radius: 24px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

/* Night: two soft glows, nothing else. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 75% 12%, rgba(255, 122, 53, 0.14), transparent 70%),
    radial-gradient(45% 35% at 8% 95%, rgba(51, 217, 217, 0.05), transparent 70%),
    var(--bg);
}

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #ffa070; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lang { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang a, .lang span { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang span { background: var(--surface-2); color: var(--text); }
.lang a:hover { color: var(--text); }

/* ── Hero: the benefit is the headline ───────────────── */

.hero { padding: 40px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 32px; }

h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.035em; }
.heat-text { white-space: nowrap; }
.heat-text { background: linear-gradient(90deg, var(--amber), var(--orange) 45%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 28px 0 0; max-width: 30em; color: var(--muted); font-size: 20px; line-height: 1.5; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 40px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px 10px 16px; border-radius: 16px; background: var(--text); color: #0b0d10; text-decoration: none; font-weight: 700; }
.store-badge img { border-radius: 8px; flex: none; }
.store-badge small { display: block; font-size: 12px; font-weight: 600; opacity: 0.65; line-height: 1.1; }
.store-badge strong { display: block; font-size: 19px; line-height: 1.15; }
.cta-note { color: var(--muted); font-size: 15px; }

/* The wheel and its pixel honk waves, laid out like the app icon. */
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; }
.stage svg.pixel-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage svg.pixel-waves rect { fill: var(--orange); }
.stage svg.pixel-waves g { opacity: 0; animation: honk 2.4s steps(1, end) infinite; }
.stage svg.pixel-waves .w2 { animation-delay: 0.2s; }
.stage svg.pixel-waves .w3 { animation-delay: 0.4s; }
.stage svg.wheel { position: absolute; inset: 20%; width: 60%; height: 60%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); }
.stage svg.wheel .edge { fill: none; stroke: var(--orange); stroke-opacity: 0.55; stroke-width: 4; }
.stage .glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 53, 0.45), transparent 65%); filter: blur(20px); animation: breathe 2.4s ease-in-out infinite; }

/* Each wave switches on like pixels on a screen, holds, then fades in steps. */
@keyframes honk {
  0%, 8% { opacity: 0; }
  10% { opacity: 1; }
  55% { opacity: 1; }
  65% { opacity: 0.6; }
  75% { opacity: 0.3; }
  85%, 100% { opacity: 0; }
}
@keyframes breathe { 50% { opacity: 0.55; transform: scale(0.9); } }

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

section { padding: 64px 0; }
h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }

/* Two benefits, one picture each. No cards. */
.benefits .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.benefit p { margin: 14px 0 0; max-width: 26em; color: var(--muted); font-size: 19px; }
.benefit .visual { display: flex; align-items: center; height: 220px; margin-bottom: 28px; }
.benefit .visual.meter { flex-direction: column; justify-content: center; align-items: stretch; }

.meter .bar { position: relative; height: 18px; border-radius: 999px; background: var(--heat); box-shadow: 0 0 48px rgba(255, 71, 51, 0.35); }
.meter .knob { position: absolute; left: 68%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 6px rgba(255, 71, 51, 0.35), 0 6px 18px rgba(0, 0, 0, 0.5); }
.meter ol { display: flex; justify-content: space-between; margin: 20px 0 0; padding: 0; list-style: none; font-family: var(--display); font-weight: 800; font-size: 15px; }
.meter li:nth-child(1) { color: var(--teal); }
.meter li:nth-child(2) { color: var(--amber); }
.meter li:nth-child(3) { color: var(--orange); }
.meter li:nth-child(4) { color: var(--red); }
.meter li:nth-child(5) { color: var(--magenta); }

.hexes { width: auto; height: 100%; max-width: 100%; }

/* Safe in the car: one calm band. */
.car .wrap { text-align: center; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; margin: 40px auto 0; }
.role { padding: 8px 12px; }
.role .icon { width: 40px; height: 40px; color: var(--orange); }
.role h3 { margin: 12px 0 6px; font-family: var(--display); font-size: 22px; }
.role p { margin: 0; color: var(--muted); }
.role q { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 600; quotes: "“" "”"; }
:lang(de) .role q { quotes: "„" "“"; }
.fine { max-width: 36em; margin: 32px auto 0; color: var(--muted); font-size: 15px; }

/* Privacy in one line. */
.trust { padding: 24px 0 72px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--text); font-weight: 600; }
.checks li::before { content: "✓"; margin-right: 10px; color: var(--teal); font-weight: 800; }

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

.site-footer { margin-top: 40px; padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── Legal and support pages ────────────────────────── */

.doc { max-width: 760px; padding: 32px 0 40px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1; }
.doc .updated { margin: 14px 0 34px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 44px 0 10px; font-size: 26px; letter-spacing: -0.01em; }
.doc h3 { margin: 26px 0 6px; font-family: var(--display); font-size: 19px; }
.doc p, .doc li { color: #d4d8de; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .summary { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.doc .summary p { margin: 0; }
.doc address { font-style: normal; }
.doc dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Facts Fei still has to provide (GitHub issue #5). Must not go live. */
.todo { padding: 1px 6px; border-radius: 6px; background: rgba(255, 184, 51, 0.18); color: var(--amber); font-weight: 600; }

/* ── Small screens ──────────────────────────────────── */

@media (max-width: 860px) {
  .hero { padding: 8px 0 72px; }
  .hero .wrap, .benefits .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 360px; order: -1; }
  .benefits .wrap { gap: 56px; }
  .benefit .visual { height: 180px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .roles { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage svg.pixel-waves g, .stage .glow { animation: none; }
  .stage svg.pixel-waves g { opacity: 1; }
  .stage svg.pixel-waves .w2 { opacity: 0.72; }
  .stage svg.pixel-waves .w3 { opacity: 0.45; }
}
