/* Resonant Pulse Labs — company landing page.
   Dark-first. Indigo/violet primary with the Downpick teal as a secondary accent. */

:root {
  --bg: #0b0d12;
  --surface-1: #12161d;
  --surface-2: #181e27;
  --border: #242d3a;
  --border-strong: #33404f;

  --fg: #e8edf4;
  --fg-muted: #9aa7b6;
  --fg-subtle: #6b7887;

  --primary: #8b5cf6;
  --primary-deep: #6366f1;
  --accent: #2dd4bf;

  --shell: 1120px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 680;
}

p {
  margin: 0;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-name {
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--fg-muted);
}

.site-nav a:not(.btn):hover {
  color: var(--fg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 8px 28px -14px var(--primary);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -14px var(--primary);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--fg);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 32px;
}

.hero-glow {
  position: absolute;
  inset: -40% 0 auto 0;
  height: 720px;
  background: radial-gradient(
      52% 46% at 28% 42%,
      color-mix(in srgb, var(--primary) 26%, transparent) 0%,
      transparent 70%
    ),
    radial-gradient(
      46% 40% at 76% 30%,
      color-mix(in srgb, var(--accent) 15%, transparent) 0%,
      transparent 72%
    );
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 24px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--fg-muted);
}

.hero .cta-row {
  margin-top: 36px;
}

.pulse-line {
  display: block;
  width: 100%;
  height: 72px;
  margin-top: 56px;
  opacity: 0.85;
}

/* 1500 slightly exceeds the path's ~1474 user-unit length, so the line draws
   itself once from left to right without ever repeating. */
.pulse-path {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: trace 2.4s ease-out 0.15s forwards;
}

@keyframes trace {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
}

.section-sub {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--fg-muted);
}

/* ---------- Featured product ---------- */

.product-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface-1), var(--bg) 70%);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.7;
}

.product-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-name {
  font-size: 15px;
  font-weight: 660;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.tag {
  font-size: 11px;
  font-weight: 660;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.tag-alpha {
  color: #f59e0b;
}

.product-title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

.product-sub {
  margin-top: 16px;
  color: var(--fg-muted);
  max-width: 48ch;
}

.product-card .cta-row {
  margin-top: 28px;
}

.product-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-subtle);
}

/* Abstract "setlist on stage" visual */

.stage {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 14px;
  box-shadow: 0 30px 60px -40px #000;
}

.stage-bar {
  display: flex;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.stage-rows {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid transparent;
}

.row.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-2));
}

.row-num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-subtle);
  width: 12px;
}

.row-fill {
  height: 7px;
  border-radius: 999px;
  background: var(--border-strong);
}

.row.is-active .row-fill {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-85 { width: 85%; }

.row-key {
  margin-left: auto;
  font-size: 11px;
  font-weight: 620;
  color: var(--fg-subtle);
}

.row.is-active .row-key {
  color: var(--accent);
}

.stage-meter {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tick {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}

.tick:first-child {
  background: var(--accent);
}

/* ---------- Value grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

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

.card-index {
  display: block;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--fg-muted);
  font-size: 15px;
}

/* ---------- Callout ---------- */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(
      110% 160% at 0% 0%,
      color-mix(in srgb, var(--primary) 16%, transparent),
      transparent 60%
    ),
    var(--surface-1);
}

.callout-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.callout-sub {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--fg-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 56px 0 32px;
  background: var(--surface-1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-subtle);
  max-width: 30ch;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 660;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--fg-muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-subtle);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .product-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .product-visual {
    order: -1;
  }

  .hero {
    padding: 72px 0 48px;
  }

  .callout {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  .footer-cols {
    gap: 32px;
  }

  .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse-path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
