/* SubSignal design system — light SaaS aesthetic */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #f1f3f5;
  --bg-hover: #eef0f3;
  --fg-primary: #0f1117;
  --fg-secondary: #5a6475;
  --fg-muted: #9ba3af;
  --accent: #6366f1;
  --accent-hover: #4f52e8;
  --accent-light: rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-dim: rgba(99, 102, 241, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --surface-border: #e5e7eb;
  --surface-border-strong: #d1d5db;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- GLOBAL NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  color: var(--fg-primary);
  text-decoration: none;
}

.site-nav-logo em {
  font-style: normal;
  color: var(--accent);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav-links a:hover { color: var(--fg-primary); }

.btn-nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-sm) !important;
  transition: background 0.15s, box-shadow 0.15s !important;
  box-shadow: 0 1px 3px rgba(99,102,241,0.25) !important;
}

.btn-nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.35) !important;
}

/* ---- HERO ---- */
.hero {
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--fg-primary);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--fg-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--surface-border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  color: var(--fg-primary);
  border-color: var(--surface-border-strong);
  background: var(--bg-secondary);
}

.hero-proof {
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-proof-item::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- SOCIAL PROOF / STATS ---- */
.stats {
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: var(--bg-secondary);
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-number em {
  font-style: normal;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ---- SIGNALS / FEATURES SECTION ---- */
.signals {
  padding: 6rem 2rem;
}

.signals-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--fg-primary);
  margin-bottom: 1rem;
  max-width: 680px;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 3rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.signal-card {
  background: var(--bg-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.signal-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.signal-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.signal-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg-primary);
  letter-spacing: -0.015em;
}

.signal-card p {
  font-size: 0.86rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.how-inner {
  max-width: 860px;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.how-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--surface-border);
  position: relative;
}

.how-step:last-child { border-bottom: 1px solid var(--surface-border); }

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ---- INTELLIGENCE / FEATURE HIGHLIGHTS ---- */
.intelligence {
  padding: 6rem 2rem;
}

.intelligence-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.intel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.intel-card {
  background: var(--bg-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.intel-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--surface-border-strong);
}

.intel-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.intel-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}

.intel-card p {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

/* ---- SOCIAL PROOF / TESTIMONIALS ---- */
.testimonials {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.testimonial-quote {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-quote::before { content: '"'; }
.testimonial-quote::after { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-primary);
  line-height: 1.2;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ---- PRICING ---- */
.pricing {
  padding: 6rem 2rem;
}

.pricing-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: #fafafe;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--fg-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pricing-price sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 0.4rem;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--surface-border);
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.btn-pricing {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-pricing-outline {
  border: 1px solid var(--surface-border);
  color: var(--fg-primary);
  background: transparent;
}

.btn-pricing-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--surface-border-strong);
}

.btn-pricing-solid {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(99,102,241,0.25);
}

.btn-pricing-solid:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

/* ---- CLOSING CTA ---- */
.closing {
  padding: 7rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #fafafe 0%, #f3f4ff 100%);
  border-top: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--fg-primary);
  margin-bottom: 1.25rem;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--fg-primary);
  padding: 3.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand {}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-logo em {
  font-style: normal;
  color: #a5b4fc;
}

.footer-brand-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col-links a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .intel-row { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .hero { padding: 5rem 1.25rem 3.5rem; }
  .signals, .intelligence, .pricing { padding: 4rem 1.25rem; }
  .how, .testimonials { padding: 4rem 1.25rem; }
  .closing { padding: 5rem 1.25rem; }
  .signal-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .site-nav { padding: 0 1.25rem; }
  .site-nav-links a:not(.btn-nav-cta) { display: none; }
}
