/* ═══════════════════════════════════════════════════════════════
   PeakPulse Marketing — Performance Instrument Aesthetic
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #060504;
  --bg-elevated: #0e0d0b;
  --bg-surface:  #141210;
  --border:      #1f1c18;
  --border-warm: #2a2520;

  --text:        #e8e4df;
  --text-muted:  #9a9189;
  --text-dim:    #706860;

  --orange:      #FF9100;
  --teal:        #58C5CC;
  --red:         #FF5050;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Utilities ──────────────────────────────────────────── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 28px; }
.text-orange { color: var(--orange); }
.text-teal { color: var(--teal); }
.mono { font-family: var(--font-mono); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--bg);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus-visible {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

/* ─── Shared ─────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.pill-teal {
  border-color: rgba(88, 197, 204, 0.25);
  color: var(--teal);
}

/* ─── Reveal Animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-line, .pulse-summit { animation: none !important; }
  .mockup-dot.runner { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 140px 0 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-icon {
  border-radius: 20px;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 8px;
}

.hero-sub-accent {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Button ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 145, 0, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 145, 0, 0.2);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ─── Pulse illustration ─────────────────────────────────── */
.hero-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.pulse-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-pulse 2.5s var(--ease-out) 0.5s forwards;
}

.pulse-summit {
  fill: var(--text);
  opacity: 0;
  animation: summit-appear 0.5s var(--ease-out) 2.2s forwards;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

@keyframes summit-appear {
  to { opacity: 0.9; }
}

/* ═══════════════════════════════════════════════════════════════
   PAIN POINTS
   ═══════════════════════════════════════════════════════════════ */
.pain {
  padding: 100px 0 80px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.pain-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.pain-quotes {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 64px;
}

.pain-quote {
  border: none;
  margin: 0;
  padding: 0;
  max-width: 680px;
}

.pain-quote p {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
}

.pain-quote strong {
  color: var(--red);
  font-style: normal;
  font-weight: 600;
}

.pain-quote:nth-child(2) { margin-left: auto; text-align: right; }
.pain-quote:nth-child(3) { margin-left: 8%; }

.pain-root {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   SOLUTION
   ═══════════════════════════════════════════════════════════════ */
.solution {
  padding: 120px 0;
}

.solution-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.solution-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 72px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 620px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  padding-top: 2px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   CALLOUT
   ═══════════════════════════════════════════════════════════════ */
.callout {
  padding: 140px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.callout-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.callout-accent {
  color: var(--orange);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */
.features {
  padding: 120px 0;
}

.features-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 72px;
  color: var(--text-muted);
}

/* Lead feature: horizontal split */
.feature-lead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

/* Alternate layout: data on left, content on right */
.feature-lead-alt {
  grid-template-columns: auto 1fr;
}

.feature-lead-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-lead-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.feature-lead-data {
  display: flex;
  gap: 32px;
  padding-top: 4px;
}

.data-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.data-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-value small {
  font-size: 0.7em;
  color: var(--text-dim);
  margin-left: 2px;
}

/* Feature pair */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   BEACON
   ═══════════════════════════════════════════════════════════════ */
.beacon {
  padding: 120px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.beacon-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.beacon-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.beacon-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.beacon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.beacon-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.beacon-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* Phone mockup */
.mockup-frame {
  width: 260px;
  height: 460px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-warm);
  border-radius: 32px;
  padding: 12px;
  margin: 0 auto;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(88, 197, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 197, 204, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

.mockup-dot {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--text);
}

.mockup-dot.runner {
  width: 16px;
  height: 16px;
  background: var(--orange);
  top: 35%;
  left: 55%;
  box-shadow: 0 0 10px rgba(255, 145, 0, 0.5);
  animation: dot-pulse 2.5s ease-in-out infinite;
}

.mockup-dot.viewer {
  width: 12px;
  height: 12px;
  background: var(--teal);
  top: 58%;
  left: 32%;
  opacity: 0.75;
}

.mockup-trail {
  position: absolute;
  top: 38%;
  left: 18%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange));
  transform: rotate(-14deg);
  opacity: 0.4;
}

.mockup-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 5, 4, 0.8);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 145, 0, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 145, 0, 0.8); }
}

/* ═══════════════════════════════════════════════════════════════
   PLATFORMS
   ═══════════════════════════════════════════════════════════════ */
.platforms {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.platform-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.platform { flex: 1; }

.platform h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.platform p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.platform-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   TEAM
   ═══════════════════════════════════════════════════════════════ */
.team {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.team-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}

.team-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: sticky;
  top: 48px;
}

.team-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════ */
.cta-final {
  padding: 100px 0 80px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-icon {
  border-radius: 18px;
  margin-bottom: 24px;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 100px 0 80px; min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-pulse { order: -1; max-width: 300px; margin: 0 auto; }

  .pain { padding: 72px 0 60px; }
  .pain-quote:nth-child(2) { margin-left: 0; text-align: left; }
  .pain-quote:nth-child(3) { margin-left: 0; }

  .solution { padding: 80px 0; }

  .callout { padding: 80px 0; }

  .features { padding: 80px 0; }
  .feature-lead { grid-template-columns: 1fr; gap: 24px; }
  .feature-lead-alt { grid-template-columns: 1fr; }
  .feature-pair { grid-template-columns: 1fr; gap: 32px; }

  .beacon { padding: 80px 0; }
  .beacon-layout { grid-template-columns: 1fr; gap: 40px; }
  .beacon-mockup { order: -1; }
  .mockup-frame { width: 220px; height: 380px; }

  .platforms { padding: 60px 0; }
  .platform-row { flex-direction: column; gap: 32px; }
  .platform-divider { width: 100%; height: 1px; align-self: auto; }

  .team { padding: 80px 0; }
  .team-content { grid-template-columns: 1fr; gap: 24px; }
  .team-content h2 { position: static; }

  .cta-final { padding: 80px 0 60px; }
}
