/* ====================================================
   DESIGN TOKENS
   Ruhiges, gut lesbares Dark-Theme mit einem
   konsistenten Violett-Akzent.
   ==================================================== */
:root {
  /* Surfaces */
  --bg:            #0c0e14;   /* Seitenhintergrund (tiefes Ink-Blau) */
  --bg-soft:       #0f1119;   /* leicht abgesetzte Flächen */
  --surface:       #14161f;   /* Karten */
  --surface-hi:    #191c27;   /* Karten-Hover / erhöhte Flächen */

  /* Text */
  --text:          #eceef4;   /* Überschriften / kräftiger Text */
  --text-soft:     #b9becc;   /* Fließtext – bewusst hell für Lesbarkeit */
  --text-muted:    #7b8092;   /* Nebeninfos */

  /* Accent (ein Akzent, konsequent eingesetzt) */
  --accent:        #8b7cf6;
  --accent-bright: #a99bff;
  --accent-soft:   rgba(139, 124, 246, 0.14);
  --accent-line:   rgba(139, 124, 246, 0.35);

  /* Semantische Statusfarben (Terminal / Projekte) */
  --ok:            #4ade80;
  --warn:          #fbbf24;
  --info:          #38bdf8;
  --discord:       #7c86ff;

  /* Linien */
  --border:        rgba(255, 255, 255, 0.08);
  --border-hi:     rgba(255, 255, 255, 0.15);

  /* Radius */
  --r-sm:          10px;
  --r-md:          14px;
  --r-lg:          20px;
  --r-xl:          28px;

  /* Abstände */
  --sp-sm:         1rem;
  --sp-md:         2rem;
  --sp-lg:         4rem;
  --sp-xl:         6.5rem;

  /* Typografie */
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  /* Schatten */
  --shadow-sm:     0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md:     0 14px 40px rgba(0, 0, 0, 0.4);

  /* Easing */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ====================================================
   RESET
   ==================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }

::selection {
  background: var(--accent-soft);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #363a4a; }
html { scrollbar-color: #2a2d3a var(--bg); scrollbar-width: thin; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ====================================================
   TYPOGRAFIE
   ==================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--sp-sm);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 65ch;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.text-accent {
  color: var(--accent-bright);
}

/* ====================================================
   HINTERGRUND
   Eine einzige, ruhige, statische Ebene.
   ==================================================== */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 124, 246, 0.12), transparent 60%),
    var(--bg);
}

/* extrem dezentes, statisches Raster – nur oben angedeutet */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
}

/* ====================================================
   LAYOUT
   ==================================================== */
.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-sm);
}

section {
  padding: var(--sp-xl) 0;
  position: relative;
}

main { flex: 1; }

/* ====================================================
   NAVIGATION
   ==================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease), background 0.35s ease,
              border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(12, 14, 20, 0.8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--text); }

.nav-link--active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link--cta {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-left: 0.4rem;
}
.nav-link--cta:hover {
  color: #fff;
  background: rgba(139, 124, 246, 0.24);
  border-color: rgba(139, 124, 246, 0.55);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease,
              background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }

.btn-arrow { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 124, 246, 0.28);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(139, 124, 246, 0.4);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: var(--text);
}

.btn-discord {
  background: rgba(124, 134, 255, 0.12);
  border-color: rgba(124, 134, 255, 0.32);
  color: #b7bdff;
}
.btn-discord:hover {
  background: rgba(124, 134, 255, 0.22);
  border-color: rgba(124, 134, 255, 0.55);
  transform: translateY(-2px);
  color: #fff;
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h1 { margin-bottom: 1.1rem; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}
.scroll-cue-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.scroll-cue-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--accent-bright);
  animation: wheel 1.8s var(--ease) infinite;
}
.scroll-cue-text {
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-cue:hover { color: var(--text-soft); }

@keyframes wheel {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ====================================================
   TERMINAL-KARTE
   ==================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.tbar-dots { display: flex; gap: 0.45rem; flex-shrink: 0; }
.tbar-dot { width: 11px; height: 11px; border-radius: 50%; }
.tbar-dot--red { background: #ff5f57; }
.tbar-dot--yellow { background: #febc2e; }
.tbar-dot--green { background: #28c840; }
.tbar-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 0.4rem;
}

.terminal-body {
  padding: 1.1rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  min-height: 232px;
}

.tl {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  max-width: none;
  color: var(--text-soft);
}
.tl-out { padding-left: 0.1rem; }
.tl-prompt { color: var(--accent-bright); font-weight: 700; flex-shrink: 0; }
.tl-cmd { color: var(--text); }
.tl-dim {
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-left: auto;
  padding-left: 0.5rem;
}
.tl-accent { color: var(--ok); }

.tl-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.tl-status--ok { background: var(--ok); box-shadow: 0 0 6px rgba(74, 222, 128, 0.7); }
.tl-status--pulse {
  background: var(--warn);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
  animation: blink 1.3s ease-in-out infinite;
}

.tl-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-bright);
  border-radius: 1px;
  animation: cursor-blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@keyframes lineIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tl-new { animation: lineIn 0.2s var(--ease) both; }

/* ====================================================
   SECTION HEADER
   ==================================================== */
.section-head {
  max-width: 620px;
  margin-bottom: 2.75rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.85rem;
}
.section-label::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-intro {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}

/* ====================================================
   KARTEN
   ==================================================== */
.card {
  position: relative;
  background: var(--surface);
  padding: var(--sp-md);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s var(--ease),
              background 0.25s ease;
}
.card:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-4px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-md);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}
.icon-badge svg { width: 24px; height: 24px; color: var(--accent-bright); }

/* ====================================================
   TECH-STACK
   ==================================================== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.stack-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease;
  cursor: default;
}
.stack-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: var(--surface-hi);
}

.stack-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.stack-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* ====================================================
   PROJEKTE
   ==================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-md);
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.card-visual--server {
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.28) 0%, rgba(56, 189, 248, 0.14) 100%);
}
.card-visual--minecraft {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.18) 0%, rgba(139, 124, 246, 0.22) 100%);
}
.card-visual-svg { width: 100%; height: 100%; position: absolute; inset: 0; }

.card-body {
  flex: 1;
  padding: 1.5rem var(--sp-md) 0.5rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.project-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.project-status.active { color: var(--ok); }
.project-status.active::before {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.project-status.paused { color: var(--text-muted); }
.project-status.paused::before { background: var(--text-muted); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem var(--sp-md) var(--sp-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-bright);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.card-link:hover svg { transform: translate(2px, -2px); }

/* ====================================================
   KONTAKT-CTA
   ==================================================== */
.cta-panel {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--sp-md);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(139, 124, 246, 0.14), transparent 65%),
    var(--surface);
  overflow: hidden;
}

.cta-panel .section-label { justify-content: center; }
.cta-panel h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.cta-panel p {
  margin: 0.5rem auto 1.9rem;
  max-width: 48ch;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.footer-brand .logo-mark { width: 28px; height: 28px; font-size: 0.9rem; }

.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
}
.footer-links a:hover { color: var(--text); }
.footer-discord:hover { color: var(--discord) !important; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
}

/* ====================================================
   SCROLL-REVEAL (Progressive Enhancement)
   Der versteckte Zustand greift nur bei aktivem JS,
   damit die Seite ohne Skript vollständig lesbar bleibt.
   ==================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* leichtes Nachziehen der Grid-Kinder */
.about-grid.visible .card,
.stack-grid.visible .stack-tile,
.projects-grid.visible .project-card {
  animation: rise 0.5s var(--ease) both;
}
.about-grid.visible .card:nth-child(2) { animation-delay: 0.08s; }
.stack-grid.visible .stack-tile:nth-child(2) { animation-delay: 0.04s; }
.stack-grid.visible .stack-tile:nth-child(3) { animation-delay: 0.08s; }
.stack-grid.visible .stack-tile:nth-child(4) { animation-delay: 0.12s; }
.stack-grid.visible .stack-tile:nth-child(5) { animation-delay: 0.16s; }
.stack-grid.visible .stack-tile:nth-child(6) { animation-delay: 0.20s; }
.stack-grid.visible .stack-tile:nth-child(7) { animation-delay: 0.24s; }
.stack-grid.visible .stack-tile:nth-child(8) { animation-delay: 0.28s; }
.projects-grid.visible .project-card:nth-child(2) { animation-delay: 0.1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   PAGE-LOADER
   ==================================================== */
#page-loader {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.4s var(--ease), opacity 0.35s ease;
}
#page-loader.done {
  width: 100% !important;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.4s ease 0.1s;
}

/* ====================================================
   RECHTLICHE SEITEN
   ==================================================== */
.legal-page {
  padding-top: 8rem;
  padding-bottom: var(--sp-xl);
}
.legal-page h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: 2rem;
}
.legal-page .card { max-width: 760px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.legal-page .card:hover { transform: none; background: var(--surface); border-color: var(--border); }
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--accent-bright);
}
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.legal-page h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.legal-page p, .legal-page li {
  font-size: 0.96rem;
  color: var(--text-soft);
}
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-page p.legal-source {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .section-head { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(12, 14, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    text-align: center;
  }
  .nav-link--cta { margin-left: 0; margin-top: 0.3rem; }
  .nav-toggle { display: flex; }

  .scroll-cue { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  section { padding: var(--sp-lg) 0; }
}

@media (max-width: 560px) {
  .hero-visual { display: none; }
  .hero { min-height: auto; padding-top: 7.5rem; padding-bottom: 3rem; }
}

/* ====================================================
   REDUCED MOTION
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
