/* EBD BEAT LAB — Modern Trap Toolkit */
:root {
  --bg: #07090c;
  --bg-elevated: #0e1218;
  --bg-panel: #12171f;
  --bg-soft: #181e28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #93a0b4;
  --faint: #667389;
  --accent: #00e8ff;
  --accent-2: #3dff9a;
  --accent-dim: rgba(0, 232, 255, 0.14);
  --danger: #ff4d6d;
  --player-h: 72px;
  --nav-h: 72px;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 232, 255, 0.08), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(61, 255, 154, 0.05), transparent 55%),
    linear-gradient(180deg, #05070a 0%, var(--bg) 40%, #05070a 100%);
  background-attachment: fixed;
  line-height: 1.55;
  padding-bottom: calc(var(--player-h) + 28px);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 12, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 12, 0.92);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 232, 255, 0.45);
  background: linear-gradient(145deg, #10151d, #07090c);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.brand-text span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary,
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #5affc0);
  color: #041016;
  box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.25), 0 10px 30px rgba(0, 232, 255, 0.18);
}

.btn-primary:hover,
.btn-accent:hover {
  box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.4), 0 14px 36px rgba(0, 232, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: rgba(0, 232, 255, 0.45);
  background: var(--accent-dim);
}

.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

/* HERO */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.72) 42%, rgba(5, 7, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.2) 0%, rgba(5, 7, 10, 0.85) 78%, #07090c 100%);
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-product {
  margin: 16px 0 0;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  color: #d7e2f0;
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.vu-strip {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-top: 26px;
}

.vu-strip span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: vu 1.1s ease-in-out infinite;
  opacity: 0.85;
}

.vu-strip span:nth-child(1) { height: 35%; animation-delay: 0s; }
.vu-strip span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.vu-strip span:nth-child(3) { height: 48%; animation-delay: 0.2s; }
.vu-strip span:nth-child(4) { height: 90%; animation-delay: 0.05s; }
.vu-strip span:nth-child(5) { height: 55%; animation-delay: 0.25s; }
.vu-strip span:nth-child(6) { height: 78%; animation-delay: 0.15s; }
.vu-strip span:nth-child(7) { height: 40%; animation-delay: 0.3s; }
.vu-strip span:nth-child(8) { height: 65%; animation-delay: 0.18s; }

@keyframes vu {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

/* SECTIONS */
section {
  padding: 88px 0;
}

.section-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.8;
}

.stat strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.feature-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
  position: relative;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.feature-visual .badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(7, 9, 12, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 23, 31, 0.7);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 232, 255, 0.2);
}

.feature-item h3 {
  margin: 0;
  font-size: 16px;
}

.feature-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.kits {
  background: linear-gradient(180deg, transparent, rgba(0, 232, 255, 0.03), transparent);
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.kit-card {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.kit-card:hover {
  border-color: rgba(0, 232, 255, 0.35);
  transform: translateY(-3px);
}

.kit-card .kit-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.kit-card strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.kit-card span {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-panel);
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.specs-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.pricing {
  position: relative;
}

.price-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border: 1px solid rgba(0, 232, 255, 0.28);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(0, 232, 255, 0.12), transparent 55%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.price-main {
  padding: 36px;
}

.price-main h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.price-main .lead {
  margin: 12px 0 0;
  color: var(--muted);
}

.price-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #d5deea;
  font-size: 15px;
}

.price-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.2 16.6 4.8 12.2l1.4-1.4 3 3 8-8 1.4 1.4z'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.2 16.6 4.8 12.2l1.4-1.4 3 3 8-8 1.4 1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.price-side {
  padding: 36px 28px;
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.price-tag {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-tag small {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.price-note {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-panel);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.contact-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.contact-panel a.mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 232, 255, 0.45);
}

.contact-panel a.mail:hover {
  color: var(--accent);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: #05070a;
  padding: 36px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.12em;
  font-size: 14px;
}

.footer-brand span,
.footer-copy {
  color: var(--faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* LEGAL */
.legal-hero {
  padding: 72px 0 28px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
}

.legal-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.legal-content {
  padding: 40px 0 80px;
  max-width: 780px;
}

.legal-meta {
  color: var(--faint);
  font-size: 13px;
  font-family: var(--mono);
  margin-bottom: 28px;
}

.legal-content h2 {
  margin: 32px 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 18px;
}

.legal-content a {
  color: var(--accent);
}

/* PLAYER BAR */
.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--player-h);
  background: #000;
  border-top: 1px solid #1a1a1a;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-art {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}

.player-meta {
  min-width: 0;
}

.player-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-time {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9aa3af;
  font-family: var(--mono);
}

.player-wave-wrap {
  position: relative;
  height: 42px;
  min-width: 0;
  cursor: pointer;
}

.player-wave-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.player-btn.play {
  width: 44px;
  height: 44px;
}

.player-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-btn.play svg {
  width: 20px;
  height: 20px;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.player-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 3px;
  background: #3a3a3a;
  border-radius: 2px;
  outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
}

.player-volume input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.player-volume .mute-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.player-volume .mute-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.player-volume .mute-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .price-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .price-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .kit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .player-bar {
    grid-template-columns: minmax(140px, 180px) 1fr auto;
    gap: 10px;
  }

  .player-volume {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 9, 12, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero-content {
    padding: 48px 0 48px;
  }

  .kit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-bar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: var(--player-h);
    padding: 10px 12px;
  }

  .player-track {
    grid-column: 1 / -1;
  }

  .player-wave-wrap {
    height: 36px;
  }

  body {
    padding-bottom: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
