/* Audio Spectrum Pro — landing
   Dark "instrument" aesthetic mirroring the app:
   pure black, monospace headings, neon data-viz palette. */

:root {
  --bg: #000000;
  --bg-soft: #07090a;
  --panel: #0c1012;
  --panel-2: #0f1416;
  --line: #1a2024;
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #e9eef0;
  --muted: #8a9398;
  --faint: #5b656a;
  --green: #2ee89e;
  --cyan: #35c5f0;
  --amber: #f5a623;
  --red: #ff5c5c;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: rgba(46, 232, 158, 0.25); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.kicker.cyan { color: var(--cyan); }
.kicker.amber { color: var(--amber); }
.kicker.red { color: var(--red); }

h1, h2, h3 { font-family: var(--mono); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.brand .glyph { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.brand .glyph i {
  width: 2.5px; border-radius: 2px; background: var(--green);
  animation: brandbars 1.4s ease-in-out infinite;
}
.brand .glyph i:nth-child(1){ height: 40%; animation-delay: 0s; background: var(--green);}
.brand .glyph i:nth-child(2){ height: 90%; animation-delay: .15s; background: var(--green);}
.brand .glyph i:nth-child(3){ height: 60%; animation-delay: .3s; background: var(--cyan);}
.brand .glyph i:nth-child(4){ height: 100%; animation-delay: .45s; background: var(--cyan);}
.brand .glyph i:nth-child(5){ height: 50%; animation-delay: .6s; background: var(--amber);}
@keyframes brandbars { 0%,100%{ transform: scaleY(.55);} 50%{ transform: scaleY(1);} }

.nav-links { display: flex; align-items: center; gap: 30px; font-family: var(--mono); font-size: 13.5px; }
.nav-links a { color: var(--muted); transition: color .18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--mono); font-size: 13px; padding: 9px 16px; border-radius: 8px;
  background: var(--green); color: #00140c !important; font-weight: 600;
  border: 1px solid var(--green); transition: transform .15s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px -8px rgba(46,232,158,.55); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  position: relative; z-index: 2;
}
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.02; }
.hero h1 .accent { color: var(--green); }
.hero h1 .accent2 { color: var(--cyan); }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 520px; margin: 24px 0 0; }
.hero-tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }

.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.badge-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #000; padding: 11px 18px; border-radius: 12px;
  font-family: var(--sans); transition: transform .15s ease, box-shadow .2s ease;
}
.badge-store:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(255,255,255,.35); }
.badge-store svg { width: 26px; height: 26px; }
.badge-store .bs-small { font-size: 10.5px; line-height: 1; opacity: .7; }
.badge-store .bs-big { font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.badge-note { font-family: var(--mono); font-size: 12px; color: var(--faint); }

.hero-stats { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .st { }
.hero-stats .st b { font-family: var(--mono); font-size: 22px; color: var(--text); display: block; }
.hero-stats .st span { font-size: 12.5px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.hero-stats .st b.g { color: var(--green);} .hero-stats .st b.c { color: var(--cyan);} .hero-stats .st b.a { color: var(--amber);}

/* hero device */
.hero-device { justify-self: end; }

/* full-bleed animated spectrum at bottom of hero */
.hero-analyzer {
  position: relative; z-index: 2; margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 0;
}
.analyzer-wrap { position: relative; }
canvas#heroSpectrum { display: block; width: 100%; height: 200px; }
.analyzer-axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  padding: 8px 2px 0; letter-spacing: .04em;
}
.hero-glow {
  position: absolute; z-index: 1; top: -10%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 480px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 40%, rgba(46,232,158,.10), transparent 70%);
  filter: blur(20px);
}

/* ---------- device frame ---------- */
.device {
  position: relative; width: 280px; max-width: 78vw;
  border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #1b2226, #090c0d);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05) inset, 0 2px 0 rgba(255,255,255,.06) inset;
}
.device .screen {
  position: relative; border-radius: 32px; overflow: hidden; background: #000;
  aspect-ratio: 9 / 19.5;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device .island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; background: #000; border-radius: 14px; z-index: 3;
}
.device.glow::after {
  content: ""; position: absolute; inset: -2px; border-radius: 44px; z-index: -1;
  background: linear-gradient(160deg, rgba(46,232,158,.5), rgba(53,197,240,.35));
  filter: blur(26px); opacity: .35;
}

/* ---------- feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 80px 0; border-top: 1px solid var(--line-soft);
}
.feature:nth-child(even) .feature-media { order: 2; }
.feature-text h3 { font-size: clamp(26px, 3.4vw, 36px); margin: 16px 0 14px; }
.feature-text p { color: var(--muted); font-size: 17.5px; margin: 0 0 22px; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.spec-list li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; color: var(--text); }
.spec-list li::before {
  content: "›"; color: var(--green); font-family: var(--mono); font-weight: 700;
  flex: none;
}
.spec-list li b { font-family: var(--mono); font-weight: 600; }
.feature.c .spec-list li::before { color: var(--cyan); }
.feature.a .spec-list li::before { color: var(--amber); }
.feature.r .spec-list li::before { color: var(--red); }

.feature-media { display: flex; justify-content: center; }

/* loudness meter (built, since no screenshot) */
.meter-card {
  width: 280px; max-width: 78vw; border-radius: 42px; padding: 26px 22px 30px;
  background: linear-gradient(160deg, #1b2226, #090c0d);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.meter-inner {
  background: #000; border-radius: 26px; padding: 24px 20px; aspect-ratio: 9/16;
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line);
}
.meter-row { }
.meter-row .lbl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.meter-row .lbl b { color: var(--text); }
.bar-track { height: 12px; border-radius: 6px; background: #0e1416; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; width: 40%; border-radius: 6px; transition: width .12s linear; }
.bar-fill.rms { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.bar-fill.peak { background: linear-gradient(90deg, var(--amber), var(--red)); }
.history { flex: 1; display: flex; align-items: flex-end; gap: 2px; min-height: 120px; }
.history i { flex: 1; background: linear-gradient(180deg, var(--green), rgba(46,232,158,.15)); border-radius: 2px 2px 0 0; height: 20%; }

/* ---------- field strip ---------- */
.field { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.field-cell { background: var(--bg); padding: 40px 28px; }
.field-cell .ic { font-family: var(--mono); color: var(--green); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.field-cell h4 { font-family: var(--mono); font-size: 18px; margin: 0 0 8px; }
.field-cell p { color: var(--muted); font-size: 14.5px; margin: 0; }
.field-cell:nth-child(2) .ic { color: var(--cyan); }
.field-cell:nth-child(3) .ic { color: var(--amber); }
.field-cell:nth-child(4) .ic { color: var(--red); }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 110px 0;
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(46,232,158,.10), transparent 60%),
    var(--bg);
}
.cta h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 18px; }
.cta p { color: var(--muted); font-size: 19px; max-width: 540px; margin: 0 auto 36px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer-about { color: var(--muted); font-size: 14.5px; max-width: 300px; }
.footer h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--muted); font-size: 14.5px; transition: color .16s ease; }
.footer ul a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
}

/* ---------- legal / content pages ---------- */
.page-head { padding: 80px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.page-head .meta { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.langbar { display: flex; gap: 8px; margin-top: 26px; }
.langbar button {
  font-family: var(--mono); font-size: 12.5px; padding: 7px 14px; border-radius: 8px;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line); cursor: pointer;
  transition: all .15s ease;
}
.langbar button.active { background: var(--green); color: #00140c; border-color: var(--green); font-weight: 600; }
.langbar button:hover:not(.active) { color: var(--text); border-color: #2a3338; }

.prose { padding: 56px 0 100px; max-width: 760px; }
.prose h2 { font-size: 22px; margin: 40px 0 14px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c4ccd0; font-size: 16.5px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--green); border-bottom: 1px solid rgba(46,232,158,.35); }
.prose strong { color: var(--text); }
.prose .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; margin: 24px 0;
}
.lang-block { display: none; }
.lang-block.active { display: block; }

.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px;
}
.faq summary {
  cursor: pointer; padding: 18px 0; font-family: var(--mono); font-size: 16px; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-family: var(--mono); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }

.contact-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; margin: 30px 0; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.contact-card .big { font-family: var(--mono); font-size: 22px; color: var(--green); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-device { justify-self: center; order: -1; }
  .feature { grid-template-columns: 1fr; gap: 34px; padding: 60px 0; }
  .feature:nth-child(even) .feature-media { order: -1; }
  .feature-media { order: -1; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: #000; border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px;
  }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); color: var(--text);
    border-radius: 8px; padding: 8px 11px; font-family: var(--mono); cursor: pointer; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

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