/* Funkpunkt landing page — funkpunkt.app/ (see ADR-0012).
   Standalone, no framework. Palette mirrors the app (src/index.css). */

:root {
  --bg: #0e1116;
  --bg-2: #101418;
  --panel: #161b21;
  --panel-2: #1a2129;
  --line: #232c36;
  --text: #ece6da;
  --muted: #9aa6b2;
  --teal: #2ec5b6;
  --teal-bright: #38d6c6;
  --gold: #f2c14e;
  --blue: #4ea3f2;
  --red: #e5484d;
  --radius: 14px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); }

h1, h2, h3 { line-height: 1.15; margin: 0; }

strong { color: var(--text); font-weight: 650; }

section { padding: clamp(3rem, 7vw, 6rem) 1.25rem; }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  text-align: center;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  max-width: 22ch;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 197, 182, 0.18), 0 0 14px rgba(46, 197, 182, 0.6);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 197, 182, 0.1), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(78, 163, 242, 0.08), transparent 55%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__links { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); }

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--teal);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 42ch;
  margin: 1.4rem 0 2rem;
}

.cta__sub {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- CTA blocks ---------- */
.cta { min-height: 56px; }
.cta__block { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.cta__block[hidden] { display: none; }

.cta__warn {
  margin: 0 0 0.9rem;
  padding: 0.9rem 1.1rem;
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  max-width: 46ch;
}

.qr { display: flex; align-items: center; gap: 0.75rem; }
.qr img {
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
.qr p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--teal);
  color: #06201d;
  box-shadow: 0 6px 24px -8px rgba(46, 197, 182, 0.7);
}
.btn--primary:hover { background: var(--teal-bright); color: #06201d; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn__meta { font-size: 0.78rem; font-weight: 500; opacity: 0.8; }

/* ---------- Hero motif (real Fusion map + live crew dots) ---------- */
.hero__motif {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.motif {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(46, 197, 182, 0.06), transparent 60%),
    var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.motif__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.motif__cap {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  max-width: 44ch;
}
.motif__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
}
.ping {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 197, 182, 0.18), 0 0 16px 2px rgba(46, 197, 182, 0.55);
}
.ping::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: var(--teal);
  opacity: 0;
  animation: ripple 3.4s ease-out infinite;
  animation-delay: var(--d);
}
.ping--teal { background: var(--teal); }
.ping--gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.16), 0 0 16px 2px rgba(242, 193, 78, 0.5);
}
.ping--gold::after { color: var(--gold); }
.ping--blue, .ping--self {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(78, 163, 242, 0.16), 0 0 16px 2px rgba(78, 163, 242, 0.5);
}
.ping--blue::after, .ping--self::after { color: var(--blue); }
.ping--self { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.ping--faint { opacity: 0.45; }

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ping::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Bands ---------- */
.band { max-width: 760px; margin: 0 auto; text-align: center; }
.band__kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 1rem;
}
.band__statement {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.band--need { max-width: var(--maxw); }
.need {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-top: 2.5rem;
}
.need__item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.need__item p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.band--fallback { background: transparent; }

/* ---------- Features ---------- */
.features { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: rgba(46, 197, 182, 0.45); transform: translateY(-3px); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1rem;
  background-color: var(--teal);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.card__icon[data-icon="map"]    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3 3 5v16l6-2 6 2 6-2V3l-6 2-6-2Z'/%3E%3Cpath d='M9 3v16M15 5v16'/%3E%3C/svg%3E"); }
.card__icon[data-icon="offline"]{ --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 18a4 4 0 0 1 .9-7.9 5.5 5.5 0 0 1 10.6-1.6A3.8 3.8 0 0 1 19 16'/%3E%3Cpath d='m3 3 18 18'/%3E%3C/svg%3E"); }
.card__icon[data-icon="find"]   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 3-9 18-2.5-7.5L2 11Z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="chat"]   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.5 7.2L3 21l1.8-6.5A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="pin"]    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.3 7-11a7 7 0 1 0-14 0c0 4.7 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.card__icon[data-icon="trail"]  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20c0-3 3-3 3-6S5 9 5 6'/%3E%3Cpath d='M19 4c0 3-3 3-3 6s3 5 3 8'/%3E%3Ccircle cx='5' cy='5' r='1.4'/%3E%3Ccircle cx='19' cy='19' r='1.4'/%3E%3C/svg%3E"); }

/* ---------- Install / steps ---------- */
.install { max-width: 820px; margin: 0 auto; }
.install__intro { color: var(--muted); text-align: center; max-width: 60ch; margin: 0 auto 2rem; }
.install__cta { text-align: center; margin-bottom: 3rem; }

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.3rem 1.4rem 1.3rem 4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.25rem;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(46, 197, 182, 0.14);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.faq {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0 1.3rem;
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " ＋"; color: var(--teal); }
.faq[open] summary::after { content: " －"; }
.faq dl { margin: 0 0 1.2rem; }
.faq dt { font-weight: 650; margin-top: 0.9rem; }
.faq dd { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__note { width: 100%; color: var(--muted); font-size: 0.82rem; margin: 0.5rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__motif { order: -1; }
  .motif { width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; }
  .need { grid-template-columns: 1fr; gap: 1.75rem; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .cta__block { gap: 0.7rem; }
  .btn { width: 100%; justify-content: center; }
  .qr { width: 100%; }
}
