/* ============================================================
   VERBOSE MEME — Global Stylesheet
   Dark cinematic audio aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  /* Core palette */
  --bg-primary: #0a0a0c;
  --bg-secondary: #111116;
  --bg-card: #16161c;
  --bg-elevated: #1c1c24;

  --text-primary: #e8e6e3;
  --text-secondary: #8a8a96;
  --text-muted: #55555f;

  /* Accent: electric amber */
  --accent: #f0a830;
  --accent-dim: #c08520;
  --accent-glow: rgba(240, 168, 48, 0.15);
  --accent-glow-strong: rgba(240, 168, 48, 0.35);

  /* Cyan secondary accent */
  --cyan: #3dd8d8;
  --cyan-dim: #2aadad;
  --cyan-glow: rgba(61, 216, 216, 0.12);

  /* Borders & surfaces */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.03);

  /* Typography */
  --font-display: 'Space Mono', monospace;
  --font-body: 'Sora', sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-width: 1200px;
  --narrow-width: 860px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Noise overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Utility ---- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.container--narrow { max-width: var(--narrow-width); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-primary);
}
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a.active { color: var(--accent); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--border);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.05rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

/* Waveform canvas BG */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__canvas canvas {
  width: 100%;
  height: 100%;
}

/* Gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, var(--accent-glow) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 60%, var(--cyan-glow) 0%, transparent 70%),
    linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.hero__tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow-strong); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero h1 {
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--accent); }

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: #ffc04d;
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}
.btn--large {
  padding: 1rem 2.2rem;
  font-size: 0.88rem;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products {
  padding: var(--section-pad) 0;
}
.products__header {
  text-align: center;
  margin-bottom: 4rem;
}
.products__header h2 { margin-top: 0.75rem; }

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.product-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card__visual {
  position: relative;
  height: 220px;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated waveform inside card visual */
.product-card__waveform {
  width: 80%;
  height: 60%;
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-card__badge--live {
  background: var(--accent);
  color: var(--bg-primary);
}
.product-card__badge--soon {
  background: rgba(61, 216, 216, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(61, 216, 216, 0.25);
}

.product-card__body { padding: 1.8rem; }

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.product-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-card__tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
}
.product-card__price--tbd {
  font-size: 0.8rem;
  color: var(--cyan);
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}
.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(240, 168, 48, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.feature__icon--cyan {
  background: var(--cyan-glow);
  border-color: rgba(61, 216, 216, 0.12);
}
.feature__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CTA / NEWSLETTER
   ============================================================ */
.cta {
  padding: var(--section-pad) 0;
  text-align: center;
}
.cta__box {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta__box h2 { margin-bottom: 0.8rem; position: relative; }
.cta__box p {
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  position: relative;
}

.cta__form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.cta__input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-hover);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
}
.cta__input:focus { border-color: var(--accent-dim); }
.cta__input::placeholder { color: var(--text-muted); }

/* ============================================================
   LEGAL PAGES (Terms, Privacy)
   ============================================================ */
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal p,
.legal li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.legal ul,
.legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal__updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--text-secondary); }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-hero {
  padding: calc(var(--section-pad) + 4rem) 0 var(--section-pad);
}
.product-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.product-hero__visual {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-hero__info h1 { margin-bottom: 1rem; }
.product-hero__tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 300;
}

.product-hero__price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}
.product-hero__price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}
.product-hero__price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-hero__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-hero__compat {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.product-hero__compat span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Spec section */
.specs {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.spec-block {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.spec-block__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}
.spec-block ul {
  list-style: none;
}
.spec-block li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.spec-block li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__form { flex-direction: column; }
  .product-card__visual { height: 180px; }
  .products__grid { grid-template-columns: 1fr; }
}
