/* ============================================================
   Baube GeoData – Design System
   Aesthetik: "cartographic terminal" – tiefes Ink-Dunkel,
   Koordinatengitter, Signal-Lime Akzent, Mono-Details.
   (Marke "Baube GeoData" ist Platzhalter – im CSS/HTML umbenennbar.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Hanken+Grotesk:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --ink:        #0a0d12;
  --ink-2:      #0e131a;
  --surface:    #121922;
  --surface-2:  #182230;
  --line:       rgba(180, 200, 220, 0.10);
  --line-2:     rgba(180, 200, 220, 0.18);
  --text:       #e8eef5;
  --muted:      #8a97a8;
  --muted-2:    #5d6b7d;
  --accent:     #cdf24e;   /* signal lime */
  --accent-ink: #0a0d12;
  --cyan:       #5fe3f0;
  --danger:     #ff6b6b;
  --radius:     14px;
  --maxw:       1140px;
  --font-display: 'Bricolage Grotesque', serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Koordinatengitter im Hintergrund */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

/* sanftes Vignette/Glow oben */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(205,242,78,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(95,227,240,0.06), transparent 55%),
    linear-gradient(180deg, rgba(10,13,18,0.4), var(--ink) 40%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 12px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: #d7ff63; box-shadow: 0 8px 30px rgba(205,242,78,0.25); }
.btn-ghost { background: var(--surface); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10,13,18,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo .pin {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  background: var(--accent); transform: rotate(-45deg);
  box-shadow: inset 0 0 0 4px var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; }
.tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px;
  background: rgba(205,242,78,0.05);
}
.tagline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.03em;
  margin: 24px 0 20px; max-width: 14ch;
}
h1.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* live coordinate readout */
.coord-strip {
  margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  overflow: hidden;
}
.coord-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
}
.coord-head .lamp { width: 10px; height: 10px; border-radius: 50%; }
.lamp.r { background: #ff5f57; } .lamp.y { background: #febc2e; } .lamp.g { background: #28c840; }
.coord-body { padding: 22px; font-family: var(--font-mono); font-size: 13.5px; }
.coord-body .req { color: var(--cyan); }
.coord-body .resp { color: var(--muted); white-space: pre-wrap; }
.coord-body .k { color: var(--accent); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.stat { background: var(--ink-2); padding: 26px 22px; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.stat .l { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
h2.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; margin: 12px 0 16px; }
.section-lead { color: var(--muted); max-width: 60ch; font-size: 17px; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  transition: border-color .25s, transform .25s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature .ico { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 14px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  background: var(--ink-2); display: flex; flex-direction: column; position: relative;
}
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(205,242,78,0.06), var(--ink-2)); }
.plan .badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan .pname { font-family: var(--font-mono); color: var(--muted); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.plan ul { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { font-size: 14.5px; color: var(--text); display: flex; gap: 9px; align-items: baseline; }
.plan li .v { font-family: var(--font-mono); color: var(--accent); }
.plan li.dim { color: var(--muted); }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }

/* ---------- Code block ---------- */
.codewrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
@media (max-width: 880px) { .codewrap { grid-template-columns: 1fr; } }
pre.code {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
}
pre.code .c { color: var(--muted-2); }
pre.code .s { color: var(--accent); }
pre.code .u { color: var(--cyan); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.tab.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ---------- Demo ---------- */
.demo { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--ink-2); }
.demo .row { display: flex; gap: 10px; }
.demo input {
  flex: 1; background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-family: var(--font-mono); font-size: 14px;
}
.demo input:focus { outline: none; border-color: var(--accent); }
.demo pre { margin-top: 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); max-height: 280px; overflow: auto; white-space: pre-wrap; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--font-mono); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); padding-bottom: 18px; font-size: 15px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 60px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-attr { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); max-width: 44ch; line-height: 1.7; }
.foot-attr a { color: var(--cyan); }
.foot-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }

/* ---------- Dashboard / forms ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.field input { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); padding: 12px 14px; border-radius: 10px; font-family: var(--font-mono); }
.field input:focus { outline: none; border-color: var(--accent); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv > div { background: var(--ink-2); padding: 16px 18px; }
.kv .k { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.kv .val { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 4px; }
.bar { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; background: var(--accent); }

.notice { font-family: var(--font-mono); font-size: 13px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); }
.notice.ok { border-color: var(--accent); color: var(--accent); }
.notice.err { border-color: var(--danger); color: var(--danger); }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }
