/* gridwork · Palette · Aurora (dunkles Teal, Nordlicht-Cyan) */
:root {
  --bg: #0c1a1e;
  --fg: #e0ece8;
  --fg-muted: #7a9a90;
  --accent: #00d4aa;
  --accent-fg: #0c1a1e;
  --line: #1a2e30;
  --surface: #12242a;
}
/* gridwork · Design 3 · Minimal Centered + Floating Nav */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 128px; /* topbar + floatnav */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { opacity: 0.75; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--bg);
  padding: 12px 16px; z-index: 200;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Topbar (Utility) ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  font-size: 0.8125rem;
  height: 40px;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.topbar .lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
}
.topbar .lang .lang-btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  padding: 4px 6px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.topbar .lang .lang-btn.active,
.topbar .lang .lang-btn[aria-current="true"] {
  color: var(--fg);
  border-bottom-color: var(--fg);
  font-weight: 500;
}
.topbar .lang .sep { color: var(--fg-muted); user-select: none; }
.topbar .utility {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}
.topbar .utility a {
  color: var(--fg-muted);
  border-bottom: none;
  letter-spacing: 0.02em;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.topbar .utility a:hover { color: var(--fg); }
.topbar .utility a.login {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.topbar .utility a.login::after {
  content: " · bald";
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ---------- Wordmark (shared tracking for GRIDWORK) ---------- */
.wordmark {
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Floating, shrinking Nav ---------- */
.floatnav {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(960px, calc(100vw - 32px));
  transition: top 0.35s ease, width 0.35s ease;
}
.floatnav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 36px;
  background: color-mix(in srgb, #525458 45%, transparent);
  backdrop-filter: saturate(180%) blur(28px) brightness(1.2);
  -webkit-backdrop-filter: saturate(180%) blur(28px) brightness(1.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow:
    0 0 80px -8px rgba(255, 255, 255, 0.22),
    0 0 36px -4px rgba(255, 255, 255, 0.10),
    0 8px 32px -16px color-mix(in srgb, var(--fg) 16%, transparent);
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.floatnav .brand-mark {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: none;
  transition: font-size 0.35s ease, letter-spacing 0.35s ease;
}
.floatnav .links {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
}
.floatnav .links a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  border-bottom: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}
.floatnav .links a:hover,
.floatnav .links a[aria-current="page"] { color: var(--fg); }

/* Shrunk state (added via JS on scroll > 80px) */
.floatnav.shrunk { top: 48px; width: min(760px, calc(100vw - 32px)); }
.floatnav.shrunk .bar {
  padding: 10px 28px;
  background: color-mix(in srgb, #525458 50%, transparent);
  box-shadow:
    0 0 56px -6px rgba(255, 255, 255, 0.16),
    0 0 24px -2px rgba(255, 255, 255, 0.08),
    0 6px 20px -12px color-mix(in srgb, var(--fg) 16%, transparent);
}
.floatnav.shrunk .brand-mark { font-size: 0.8125rem; letter-spacing: 0.18em; }
.floatnav.shrunk .links a { font-size: 0.8125rem; }

/* ---------- Main ---------- */
main {
  max-width: 60ch;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 120px) clamp(24px, 5vw, 48px);
  display: flex; flex-direction: column;
  gap: clamp(64px, 10vw, 120px);
  text-align: center;
}

.hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 32px;
  padding: clamp(32px, 8vw, 96px) 0;
}
.tag {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}
.hero h1 {
  font-size: clamp(2.75rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
}
.hero h1.wordmark {
  letter-spacing: 0.22em;
}
.hero .lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--fg);
  max-width: 38ch;
  margin: 0;
  font-weight: 300;
}
.cta {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover { background: var(--fg); color: var(--bg); }

.features {
  display: flex; flex-direction: column;
  gap: clamp(48px, 8vw, 80px);
  align-items: center;
}
.features article {
  max-width: 36ch;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center;
}
.features .num {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}
.features h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.features p { margin: 0; color: var(--fg-muted); font-size: 1rem; line-height: 1.6; }

.tagline {
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
  text-align: center;
}

.prose {
  max-width: 60ch;
  margin: 0 auto;
  text-align: left;
}
.prose .tag { margin-bottom: 16px; text-align: center; }
.prose h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--fg);
  letter-spacing: -0.015em;
  font-weight: 300;
  text-align: center;
}
.prose h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 32px 0 8px;
  color: var(--fg);
}
.prose p { font-size: 1rem; line-height: 1.7; margin: 0 0 12px; color: var(--fg); }
.prose p.muted { color: var(--fg-muted); font-size: 0.9375rem; }

.tight { list-style: none; padding: 0; margin: 0; text-align: left; }
.tight li {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.tight li:last-child { border-bottom: none; }

.status {
  max-width: 48ch;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border-radius: 4px;
  text-align: center;
}
.status p { margin: 0; font-size: 0.9375rem; color: var(--fg); line-height: 1.6; }

.contact-form { max-width: 40ch; margin: 0 auto; text-align: left; }
.contact-form .field { margin-bottom: 24px; }
.contact-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 0;
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-form button { margin-top: 16px; }
.contact-form .hint { font-size: 0.8125rem; color: var(--fg-muted); margin: 16px 0 0; line-height: 1.5; }

.sent-ok { text-align: center; padding: 48px 0; }
.sent-ok h2 { font-size: 1.75rem; font-weight: 300; margin: 16px 0; color: var(--fg); }
.sent-ok p { color: var(--fg-muted); }

.site-footer {
  text-align: center;
  padding: 48px 24px 32px;
  margin-top: clamp(64px, 10vw, 120px);
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.site-footer nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px; margin-bottom: 16px;
}
.site-footer nav a {
  color: var(--fg-muted);
  border-bottom: none;
}
.site-footer nav a:hover { color: var(--fg); }
.site-footer .copy { margin: 0; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { padding-top: 120px; }
  .topbar { font-size: 0.75rem; }
  .topbar .utility a.login::after { content: ""; }
  .floatnav { top: 50px; }
  .floatnav .bar { padding: 12px 18px; }
  .floatnav .brand-mark { font-size: 0.8125rem; letter-spacing: 0.16em; }
  .floatnav .links a { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
