/**
 * FUNK — OFFICIAL STUDIO DESIGN SYSTEM
 * Mischpult Ästhetik: Dunkles Studio-Graphit, Signal-Orange (#FF5A1F), LED-Bars, Siebdruck-Typografie.
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0C0B0A;
  --bg-subtle: #12110F;
  --panel: #181714;
  --panel-elevated: #22201C;
  --panel-hover: #292723;
  --well: #0A0908;
  --line: #262420;
  --line-strong: #3A3731;
  --line-highlight: rgba(255, 255, 255, 0.06);

  --text: #F4EFEB;
  --text-muted: #A8A195;
  --text-dim: #706B62;

  --accent: #FF5A1F;
  --accent-hover: #FF7138;
  --accent-glow: rgba(255, 90, 31, 0.45);
  --accent-soft: rgba(255, 90, 31, 0.12);
  --accent-text: #0E0502;

  --ok: #7BD88F;
  --ok-glow: rgba(123, 216, 143, 0.45);
  --warn: #FFB020;
  --danger: #FF4D4D;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-avatar: 30%;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 32px var(--accent-glow);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 90, 31, 0.18) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  overflow-x: hidden;
}

/* Typography & Labels */
.mono {
  font-family: var(--font-mono);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mono-tag.accent { color: var(--accent); }
.mono-tag.ok { color: var(--ok); }

/* LEDs */
.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.led-pulse {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px var(--ok-glow)); }
  50% { opacity: 0.35; filter: none; }
}

.led-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok-glow); }
.led-warn { background: var(--warn); box-shadow: 0 0 8px rgba(255, 176, 32, 0.45); }
.led-accent { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel-elevated);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn:hover {
  background: var(--panel-hover);
  border-color: #524E46;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
  background: var(--well);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: linear-gradient(180deg, #FF6930 0%, #FF5A1F 100%);
  border-color: #FF7138;
  color: #0E0502;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 90, 31, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #FF7B47 0%, #FF662B 100%);
  border-color: #FF8554;
  box-shadow: 0 6px 26px rgba(255, 90, 31, 0.6);
  color: #0E0502;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--panel-elevated);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 10.5px;
}

/* HEADER NAVIGATION */
.site-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 11, 10, 0.85);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.35));
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms ease;
}

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

/* HERO SECTION - BALANCED & CENTERED */
.hero-section {
  padding: 80px 24px 64px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  margin-bottom: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.accent-orange {
  color: var(--accent);
  text-shadow: 0 0 36px rgba(255, 90, 31, 0.45);
}

.hero-lead {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.65;
  margin: 0 auto 36px;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 56px;
}

/* HARDWARE AUDIO-RACK / MISCHPULT CONSOLE */
.hero-visualizer-card {
  width: 100%;
  max-width: 1240px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.hero-visualizer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
}

.rack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.rack-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rack-ch {
  background: var(--well);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rack-ch-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rack-ch-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-dim);
}

.gate-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gate-badge.active {
  color: var(--ok);
  border-color: rgba(123, 216, 143, 0.35);
  background: rgba(123, 216, 143, 0.08);
}

.rack-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.rack-avatar-squircle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-avatar);
  background: var(--panel-elevated);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.rack-avatar-squircle.speaking {
  border-color: var(--ok);
  box-shadow: 0 0 12px var(--ok-glow);
  color: var(--ok);
}

.rack-ch-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}

.vu-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.vu-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 106px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  text-align: right;
  user-select: none;
  line-height: 1;
}

.vu-display {
  display: flex;
  gap: 4px;
  height: 106px;
  padding: 6px 4px;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  width: 36px;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
}

.vu-col {
  width: 10px;
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.vu-block {
  height: 4px;
  width: 100%;
  background: #181614;
  border-radius: 1px;
  flex-shrink: 0;
}

.vu-block.on-green { background: var(--ok); box-shadow: 0 0 4px var(--ok-glow); }
.vu-block.on-amber { background: var(--warn); box-shadow: 0 0 4px rgba(255, 176, 32, 0.4); }
.vu-block.on-red { background: var(--danger); box-shadow: 0 0 4px rgba(255, 77, 77, 0.5); }

.rack-fader-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.rack-fader-track {
  flex: 1;
  height: 4px;
  background: #000;
  border-radius: 2px;
  position: relative;
  margin: 0 8px;
  border: 1px solid #1C1A17;
}

.rack-fader-thumb {
  width: 7px;
  height: 14px;
  background: #E0DAD0;
  border: 1px solid #666;
  border-radius: 1px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.ch-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  margin-top: 2px;
}

/* METRICS STRIP */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* SECTION STRUCTURE */
.section {
  padding: 80px 24px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.section-head {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-transform: uppercase;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
}

/* 4 PILLARS FEATURE CARDS */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-avatar);
  background: var(--well);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  align-self: flex-start;
}

/* SPECS COMPARISON TABLE */
.specs-table-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.specs-table th {
  background: var(--panel-elevated);
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.specs-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.badge-included {
  background: rgba(123, 216, 143, 0.12);
  border: 1px solid var(--ok);
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* DOWNLOAD PORTAL SECTION */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.dl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 160ms ease;
}

.dl-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.05) 0%, var(--panel) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 90, 31, 0.12);
}

.dl-header {
  margin-bottom: 16px;
}

.dl-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dl-title {
  font-size: 22px;
  font-weight: 800;
}

.dl-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.dl-features {
  list-style: none;
  margin: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-features li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-features li svg {
  color: var(--ok);
  flex-shrink: 0;
}

.dl-card .btn {
  width: 100%;
  padding: 13px;
  font-size: 12px;
}

.dl-footer-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

/* SMARTSCREEN HINWEIS */
.smartscreen-card {
  margin-top: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.smartscreen-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  width: 100%;
  max-width: 500px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.key-input {
  width: 100%;
  background: var(--well);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  outline: none;
  text-transform: uppercase;
}

.key-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.3);
}

.key-status {
  padding: 10px 14px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
}

.admin-table th, .admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #090807;
  padding: 48px 24px;
  width: 100%;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-title { font-size: 46px; }
  .rack-channels { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .rack-channels { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
