/* Snovai marketing design system — shared tokens, components, polish */

:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-section: clamp(80px, 10vw, 140px);
  --space-card: 28px;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(124, 58, 237, 0.45);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --accent-soft: rgba(91, 33, 182, 0.14);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Cards */
.sys-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-card);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

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

/* Buttons */
.sys-btn-primary {
  background: #5b21b6;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.sys-btn-primary:hover {
  background: #4c1d95;
  transform: translateY(-1px);
}

.sys-btn-primary:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.6);
  outline-offset: 2px;
}

.sys-btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 600;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.sys-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.sys-btn-secondary:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.6);
  outline-offset: 2px;
}

a.sys-btn-primary,
a.sys-btn-secondary,
.sys-btn-primary,
.sys-btn-secondary {
  text-decoration: none !important;
}

/* Eyebrow */
.sys-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #af90df;
  display: block;
  margin-bottom: 16px;
}

/* Global polish */
::selection {
  background: rgba(124, 58, 237, 0.4);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

h1,
h2 {
  letter-spacing: -0.02em;
}

.sys-muted {
  color: #a0a0b8;
}

.sys-prose {
  max-width: 68ch;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.6);
  outline-offset: 2px;
}

/* Nav scroll state */
.nav.nav-scrolled {
  background: rgba(26, 26, 46, 0.85);
}

/* Scroll reveal */
.sys-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.sys-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sys-reveal-d1 {
  transition-delay: 80ms;
}

.sys-reveal-d2 {
  transition-delay: 160ms;
}

.sys-reveal-d3 {
  transition-delay: 240ms;
}

.sys-reveal-d4 {
  transition-delay: 320ms;
}

/* Hero */
.hero {
  position: relative;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 120vw;
  height: 120vw;
  min-width: 120vw;
  min-height: 120vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner,
.hero-video-wrap {
  position: relative;
  z-index: 1;
}

.hero-video-frame {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--dark), var(--dark)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(124, 58, 237, 0.05)) border-box;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-trust {
  margin: 16px 0 0;
  font-size: 13px;
}

@media (max-width: 480px) {
  .hero .sys-eyebrow {
    letter-spacing: 0.06em;
    white-space: normal;
    max-width: 100%;
    line-height: 1.4;
  }
}

.sys-countup {
  font-variant-numeric: tabular-nums;
}

.hero-sub {
  margin: 20px 0 0;
  max-width: 60ch;
  line-height: 1.6;
}

.hero-headline {
  text-wrap: balance;
  max-width: 16ch;
}

/* Comparison section */
.compare-section {
  background: var(--bg);
  padding-block: var(--space-section);
  padding-inline: 48px;
}

.compare-section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.compare-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.compare-intro {
  margin: 0 0 40px;
  max-width: 60ch;
  line-height: 1.6;
}

.compare-rows-wrap {
  max-width: 880px;
}

.compare-rows {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.compare-row-label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.compare-bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-bar-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.compare-bar {
  flex: none;
  height: 14px;
  border-radius: 3px;
  width: 0;
  transition: width 0.7s var(--ease);
}

.compare-bar--trad {
  background: #34324f;
}

.compare-bar--snovai {
  background: #7c3aed;
  min-width: 24px;
}

.compare-bar-label {
  flex: none;
  margin-left: 12px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.compare-bar-label--trad {
  color: #a0a0b8;
}

.compare-bar-label--snovai {
  color: #c4b5fd;
}

.compare-footnote {
  margin: 28px 0 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 68ch;
}

/* Problem band */
.problem-band {
  background: var(--dark);
  padding-block: var(--space-section);
  padding-inline: 48px;
}

.problem-band-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.problem-band h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  max-width: 28ch;
}

.problem-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin: 48px 0 16px;
}

.problem-stat {
  flex: 1 1 180px;
  min-width: 0;
}

.problem-stat-num {
  margin: 0 0 8px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
}

.problem-stat-cap {
  margin: 0;
  font-size: 14px;
}

.problem-footnote {
  margin: 0;
  font-size: 12px;
}

/* Reports */
.reports-section {
  padding-block: var(--space-section);
  padding-inline: 48px;
}

.reports-section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.reports-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.reports-intro {
  margin: 0 0 40px;
}

.sample-report-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 12px 0 0;
  font-size: 14px;
  color: #c4b5fd;
  text-decoration: none;
}

.sample-report-link:hover {
  text-decoration: underline;
}

.reports-sample {
  margin: 0 0 40px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.reports-grid .sys-card {
  grid-column: span 2;
}

.reports-grid .sys-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.reports-grid .sys-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.reports-grid .sys-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
}

.reports-grid .sys-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #a0a0b8;
}

/* Instance Pulse */
.pulse-section {
  padding-block: var(--space-section);
  padding-inline: 48px;
  background: var(--dark);
}

.pulse-section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.pulse-section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.pulse-body {
  margin: 0 0 40px;
  max-width: 68ch;
  line-height: 1.6;
}

.pulse-panel {
  background: #14122a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pulse-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pulse-panel-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  flex-shrink: 0;
}

.pulse-section.is-visible .pulse-header-dot {
  animation: pulse-header-ring 0.9s var(--ease) 1;
}

@keyframes pulse-header-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
  }
}

.pulse-header-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #af90df;
}

.pulse-header-updated {
  margin: 0;
  font-size: 12.5px;
  color: #a0a0b8;
}

.pulse-header-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 13px;
  color: #a0a0b8;
  cursor: default;
  background: transparent;
}

.pulse-header-refresh svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pulse-ekg {
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pulse-product-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 168px;
}

.pulse-product-category {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #af90df;
}

.pulse-product-metric-name {
  margin: 6px 0 10px;
  font-size: 13px;
  color: #a0a0b8;
  transition: opacity 0.15s var(--ease);
}

.pulse-product-value {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s var(--ease);
}

.pulse-product-status {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  transition: opacity 0.15s var(--ease);
}

.pulse-product-dots {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.pulse-product-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.pulse-product-dot.is-active {
  background: #7c3aed;
}

.pulse-tile-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0b8;
}

.pulse-tile-metric {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.pulse-tile-sub {
  margin: 0;
  font-size: 12px;
}

.pulse-tile-sub--amber {
  color: #d97706;
}

.pulse-tile-sub--red {
  color: #dc2626;
}

.pulse-tile-sub--purple {
  color: #7c3aed;
}

.pulse-closing {
  margin: 16px 0 0;
  font-size: 13px;
  text-align: center;
}

.cta-partner-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-partner-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .problem-band,
  .compare-section,
  .reports-section,
  .pulse-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .compare-bar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .compare-bar-label {
    margin-left: 0;
    white-space: normal;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .reports-grid .sys-card,
  .reports-grid .sys-card:nth-child(4),
  .reports-grid .sys-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .pulse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .pulse-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sys-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sys-reveal-d1,
  .sys-reveal-d2,
  .sys-reveal-d3,
  .sys-reveal-d4 {
    transition-delay: 0ms;
  }

  .sys-card {
    transition: none;
  }

  .sys-card:hover {
    transform: none;
  }

  .sys-btn-primary:hover,
  .sys-btn-secondary:hover {
    transform: none;
  }

  .compare-bar {
    transition: none;
  }

  .pulse-product-metric-name,
  .pulse-product-value,
  .pulse-product-status {
    transition: none;
  }

  .pulse-section.is-visible .pulse-header-dot {
    animation: none;
  }
}

.hero-video-frame { display: inline-block; max-width: 100%; line-height: 0; padding: 0; }
.hero-video-frame video { display: block; width: 100%; height: auto; }

.hero-video-frame .preview-stage,
.hero-video-frame .preview-shell,
.hero-video-frame .video-player-wrap,
.hero-video-frame .hero-video-inner {
  padding: 0; margin: 0; background: transparent; border: none;
  aspect-ratio: auto; height: auto; min-height: 0; max-height: none;
}
.hero-video-frame { font-size: 0; }
.hero-video-frame .hero-video {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius-lg) - 1px);
}
