/* ==========================================================================
   SoundMesh — Test Landing Page v2
   Dark mode, photo-led, mono typography. Custom CSS only. No build step.
   ========================================================================== */

:root {
  --bg:            #0A0A0A;
  --surface:       #161616;
  --surface-hover: #212121;
  --border:        #2A2A2A;
  --border-bright: #3A3A3A;
  --text:          #F2F2F0;
  --text-muted:    #9A9A9A;
  --text-dim:      #5A5A5A;
  --pink:          #FF4F8B;
  --pink-deep:     #D12F63;
  --yellow:        #FFD93D;
  --green:         #3CD97C;

  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  --max-w: 1440px;
  --pad-x: 64px;
  --pad-y: 96px;
  --radius: 8px;
  --radius-tight: 4px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
blockquote { font-style: normal; }

/* ---------- shared helpers ---------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}
.section-head {
  margin-bottom: 56px;
}
.section-head__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.8px;
  color: var(--pink);
  margin: 0;
}
.section-heading {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}
.section-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 720px;
}

/* ---------- status pill ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-tight);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: rgba(242, 242, 240, 0.85);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-tight);
  padding: 16px 24px;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--yellow);
  color: var(--bg);
}
.btn--reveal {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  padding: 14px 20px;
}
.btn--reveal:hover {
  background: #000;
  color: var(--yellow);
}
.link-underline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: rgba(242, 242, 240, 0.75);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}
.link-underline:hover { color: var(--yellow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.65) 50%,
    rgba(10, 10, 10, 0.5) 100%
  );
}
.hero__wordmark {
  position: absolute;
  top: 32px;
  left: 64px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--text);
  z-index: 2;
}
.hero__status {
  position: absolute;
  top: 32px;
  right: 64px;
  z-index: 2;
}
.hero__content {
  position: absolute;
  bottom: 96px;
  left: 64px;
  right: 64px;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1;
}
.hero__headline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero__sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.85);
  max-width: 780px;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hero__credit {
  position: absolute;
  bottom: 32px;
  left: 64px;
  right: 64px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: rgba(242, 242, 240, 0.5);
  z-index: 1;
}

/* ============================================================
   TEST / WHICH ONE IS YOU
   ============================================================ */
.test {
  background: var(--bg);
}
.test__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.test__counter {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}

.panic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease, opacity 300ms ease;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.panic-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
  transform: scale(1.005);
}
.panic-card.is-selected {
  border: 1.5px solid var(--pink);
  transform: scale(1.005);
}
.panic-card.is-dimmed {
  opacity: 0.4;
}
.panic-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panic-card__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.8px;
}
.panic-card__num--pink { color: var(--pink); }
.panic-card__num--yellow { color: var(--yellow); }
.panic-card__arrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-muted);
}
.panic-card__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.panic-card__quote {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.panic-card__attribution {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: #595959;
}

/* reveal panel */
.reveal-panel {
  background: var(--pink);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.reveal-panel[hidden] {
  display: none !important;
}
.reveal-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-panel__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: rgba(242, 242, 240, 0.85);
}
.reveal-panel__arrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}
.reveal-panel__panic-label {
  color: var(--text);
}
.reveal-panel__short {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.reveal-panel__long {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.9);
  max-width: 780px;
}
.reveal-panel__cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.reveal-panel__reset {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: rgba(242, 242, 240, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
  cursor: pointer;
}
.reveal-panel__reset:hover { color: var(--text); }

/* ============================================================
   BUILD / WHAT'S IN THE BOX
   ============================================================ */
.build {
  background: var(--surface);
}
.build__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.build__status {
  flex-shrink: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card__image-wrap {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0A0A;
  overflow: hidden;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card__text {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.8px;
  color: var(--pink);
}
.product-card__name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.product-card__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* spec strip */
.spec-strip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spec-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.spec-row__key {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--yellow);
  width: 180px;
  flex-shrink: 0;
}
.spec-row__val {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  color: rgba(242, 242, 240, 0.85);
}

.build__github-link {
  text-align: center;
  margin-top: 32px;
}
.build__github-link a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}
.build__github-link a:hover { color: var(--yellow); }

/* ============================================================
   FIELD NOTES
   ============================================================ */
.notes {
  background: var(--bg);
}
.notes__heading {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}
.notes__wall {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.notes__col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.note blockquote {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.note figcaption {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: #595959;
}
.note--s blockquote  { font-size: 17px; }
.note--m blockquote  { font-size: 22px; }
.note--l blockquote  { font-size: 26px; }
.note--xl blockquote { font-size: 32px; }
/* exact spec overrides for specific quotes */
.notes__col:nth-child(1) .note:nth-child(1) blockquote { font-size: 22px; }
.notes__col:nth-child(1) .note:nth-child(2) blockquote { font-size: 32px; }
.notes__col:nth-child(1) .note:nth-child(3) blockquote { font-size: 38px; }
.notes__col:nth-child(2) .note:nth-child(1) blockquote { font-size: 18px; }
.notes__col:nth-child(2) .note:nth-child(2) blockquote { font-size: 19px; }
.notes__col:nth-child(2) .note:nth-child(3) blockquote { font-size: 24px; }
.notes__col:nth-child(3) .note:nth-child(1) blockquote { font-size: 26px; }
.notes__col:nth-child(3) .note:nth-child(2) blockquote { font-size: 17px; }
.notes__col:nth-child(3) .note:nth-child(3) blockquote { font-size: 18px; }

.note--white  blockquote { color: var(--text); }
.note--muted  blockquote { color: var(--text-muted); }
.note--pink   blockquote { color: var(--pink); }
.note--yellow blockquote { color: var(--yellow); }

.notes__db-link {
  margin-top: 48px;
}
.notes__db-link a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: rgba(242, 242, 240, 0.7);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}
.notes__db-link a:hover { color: var(--text); }

/* ============================================================
   ASK + FOOTER
   ============================================================ */
.ask {
  background: var(--surface);
}
.ask__inner {
  padding-top: 96px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.ask__block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}
.ask__heading {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}
.ask__sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 720px;
}
.ask__form {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 16px;
  max-width: 640px;
}
.ask__input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
  transition: border-color 200ms ease;
  min-width: 0;
}
.ask__input::placeholder { color: var(--text-muted); }
.ask__input:focus {
  outline: none;
  border-color: var(--pink);
}
.ask__submit {
  background: var(--text);
  color: var(--bg);
  border-radius: 0 6px 6px 0;
  padding: 20px 32px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  transition: background-color 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.ask__submit:hover { background: var(--yellow); }
.ask__privacy {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__link {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--text);
  transition: color 200ms ease;
}
.footer__link:hover { color: var(--yellow); }
.footer__link--muted { color: var(--text-muted); }

/* ============================================================
   SCROLL-TRIGGERED FADE-INS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root {
    --pad-x: 40px;
    --pad-y: 80px;
  }
  .hero__wordmark,
  .hero__status { top: 24px; }
  .hero__wordmark { left: 40px; }
  .hero__status { right: 40px; }
  .hero__content { left: 40px; right: 40px; bottom: 80px; }
  .hero__credit { left: 40px; right: 40px; }
  .product-card__image-wrap { height: 320px; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --pad-y: 64px;
  }
  .hero {
    min-height: 90vh;
  }
  .hero__wordmark {
    top: 20px;
    left: 24px;
    font-size: 22px;
  }
  .hero__status {
    top: 20px;
    right: 24px;
    font-size: 10px;
    padding: 4px 10px;
  }
  .hero__content {
    left: 24px;
    right: 24px;
    bottom: 64px;
    gap: 20px;
  }
  .hero__headline {
    font-size: clamp(32px, 9vw, 48px);
  }
  .hero__sub { font-size: 16px; }
  .hero__credit {
    left: 24px;
    right: 24px;
    bottom: 20px;
    font-size: 10px;
  }
  .hero__cta-row { gap: 16px; }

  .test__head,
  .build__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .panic-grid {
    grid-template-columns: 1fr;
  }
  .panic-card { padding: 24px; }
  .panic-card__label { font-size: 22px; }

  .reveal-panel { padding: 28px; }
  .reveal-panel__short { font-size: 32px; }
  .reveal-panel__long { font-size: 16px; }

  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card__image-wrap { height: 280px; }
  .product-card__text { padding: 24px; }
  .product-card__name { font-size: 24px; }

  .spec-strip { padding: 20px 24px; }
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .spec-row__key { width: auto; font-size: 12px; }
  .spec-row__val { font-size: 14px; }

  .notes__wall {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .notes__col {
    gap: 32px;
    margin-bottom: 32px;
  }

  .ask__inner { gap: 56px; }
  .ask__form {
    flex-direction: column;
    gap: 12px;
  }
  .ask__input {
    border-radius: 6px;
    width: 100%;
  }
  .ask__submit {
    border-radius: 6px;
    width: 100%;
    padding: 18px 24px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer__links { gap: 16px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-panel {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .panic-card { transition: none; }
  .panic-card:hover { transform: none; }
  .btn,
  .ask__input,
  .ask__submit,
  .footer__link,
  .reveal-panel__reset,
  .build__github-link a,
  .notes__db-link a,
  .link-underline { transition: none; }
}
