/* ============================================================
   SOCIAL SURGE — Design System v2 (2026 Redesign)
   Brand: navy #152337/#1F3451 · blue #5299E0 · green #37BE76
          orange #F7B76E · red #E44444
   ============================================================ */

:root {
  --navy-900: #d0d7dd;
  --navy-800: #8eb7d7;
  --navy-700: #8eb7d7;
  --navy-600: #8eb7d7;
  --navy-500: #9fc2dd;
  --blue: #7a6f72;
  --blue-bright: #b4aaac;
  --green: #8a7f82;
  --orange: #b4aaac;
  --red: #b4aaac;
  --text: #232b33;
  --text-dim: #3f4a55;
  --text-faint: #5c6873;
  --border: rgba(180, 170, 172, 0.5);
  --border-bright: rgba(180, 170, 172, 0.85);
  --glow-blue: rgba(180, 170, 172, 0.45);
  --glow-green: rgba(180, 170, 172, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--text-dim); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Announcement bar ---------- */
.announce {
  background: #8eb7d7;
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 9px 16px;
  font-size: 0.85rem; color: var(--text-dim);
  position: relative; z-index: 60;
}
.announce a { color: var(--text); font-weight: 600; text-decoration: underline; }
.announce .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; animation: pulse-dot 2s infinite; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(142, 183, 215, 0.92);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
  padding: 10px 14px; border-radius: 8px; display: block;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.35); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--navy-800); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease; box-shadow: 0 20px 50px rgba(35,43,51,.18);
}
.nav-links li:hover .dropdown, .nav-links li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }
.dropdown a span { display: block; font-size: 0.78rem; color: var(--text-faint); font-weight: 400; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: #b4aaac;
  color: #232b33; box-shadow: 0 0 0 0 var(--glow-blue);
  animation: btn-signal 3s infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow-blue); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-bright); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(180,170,172,0.2); }
.btn-green { background: #8a7f82; color: #fff; }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow-green); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
@keyframes btn-signal {
  0% { box-shadow: 0 0 0 0 var(--glow-blue); }
  70% { box-shadow: 0 0 0 14px rgba(180,170,172,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,170,172,0); }
}

/* ---------- Hero ---------- */
.hero { padding: 110px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 .grad { color: var(--blue); }
.hero-sub { font-size: 1.15rem; margin: 22px 0 32px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust .t { font-size: 0.85rem; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.hero-trust .t strong { color: var(--text); font-family: var(--font); }

/* signal canvas backdrop */
.signal-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.55; z-index: 0;
}
.hero .container, .cta-final .container { position: relative; z-index: 1; }

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue);
  border: 1px solid var(--border-bright); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 20px; background: rgba(180,170,172,0.18);
}
.eyebrow .signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 var(--glow-green); }
  70% { box-shadow: 0 0 0 8px rgba(180,170,172,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,170,172,0); }
}

/* ---------- Cards ---------- */
.card {
  background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-bright); box-shadow: 0 18px 40px rgba(35,43,51,0.12); }
.card h3 { margin-bottom: 10px; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(180,170,172,0.18); border: 1px solid var(--border-bright); margin-bottom: 18px; font-size: 1.3rem;
}
/* ---------- Blog carousel ---------- */
.blog-carousel { position: relative; }
.bc-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; scrollbar-width: none; }
.bc-track::-webkit-scrollbar { display: none; }
.bc-card { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.bc-card:hover { color: var(--text); }
.bc-card h3 { font-size: 1.05rem; line-height: 1.35; }
.bc-card p { font-size: 0.92rem; color: var(--text-dim); flex: 1; }
.bc-tag { display: inline-block; align-self: flex-start; font-family: var(--font); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); background: rgba(180,170,172,0.18); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; margin-bottom: 14px; }
.bc-read { margin-top: 16px; font-family: var(--font); font-weight: 600; font-size: 0.88rem; color: var(--blue); }
.bc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: #ffffff; border: 1px solid var(--border-bright); color: var(--blue); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: box-shadow .25s ease, transform .25s ease; }
.bc-arrow:hover { box-shadow: 0 8px 22px rgba(35,43,51,0.15); transform: translateY(-50%) scale(1.06); }
.bc-prev { left: -16px; }
.bc-next { right: -16px; }
@media (max-width: 640px) { .bc-prev { left: -6px; } .bc-next { right: -6px; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- KPI / metric cards ---------- */
.kpi {
  text-align: center; padding: 28px 18px;
  background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.kpi::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, #b4aaac, transparent);
  animation: kpi-scan 3.2s infinite linear;
}
@keyframes kpi-scan { to { left: 140%; } }
.kpi .num { font-family: var(--font); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--text); }
.kpi .num .unit { font-size: 0.55em; color: var(--blue); }
.kpi .label { font-size: 0.85rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.kpi.green .num { color: var(--green); }

/* ---------- Section headers ---------- */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: 16px; font-size: 1.08rem; }

/* ---------- Answer box (AI Overview / GEO target) ---------- */
.answer-box {
  border-left: 3px solid #b4aaac;
  background: rgba(180,170,172,0.16);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px; margin: 28px 0;
}
.answer-box .q { font-family: var(--font); font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 1.05rem; }
.answer-box p { margin: 0; }

/* ---------- Ticker / marquee ---------- */
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: rgba(255,255,255,0.55); }
.ticker { display: flex; gap: 56px; width: max-content; animation: ticker 34s linear infinite; }
.ticker span { font-family: var(--font); font-size: 0.92rem; color: var(--text-faint); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.ticker b { color: var(--green); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Case study rows ---------- */
.case-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.case-row:last-child { border-bottom: 0; }
.case-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-metric { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #ffffff; }
.case-metric .v { font-family: var(--font); font-size: 1.7rem; font-weight: 800; color: var(--green); }
.case-metric .l { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Signal line divider ---------- */
.signal-divider { height: 60px; position: relative; overflow: hidden; }
.signal-divider svg { width: 100%; height: 100%; }
.signal-divider .wave { stroke: var(--blue); stroke-width: 1.5; fill: none; opacity: 0.4; }
.signal-divider .pulse-dot-svg { fill: var(--green); filter: drop-shadow(0 0 6px var(--glow-green)); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: #ffffff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-family: var(--font); font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; }

/* ---------- Testimonial ---------- */
.quote-card { padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); background: #ffffff; }
.quote-card blockquote { font-size: 1.2rem; color: var(--text); font-family: var(--font); font-weight: 500; line-height: 1.5; }
.quote-card .who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: #b4aaac; display: flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; color: #fff; }
.quote-card .who small { display: block; color: var(--text-faint); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font); font-size: 2.4rem; font-weight: 800; margin: 12px 0 4px; }
.price-card .price small { font-size: 0.95rem; color: var(--text-faint); font-weight: 500; }
.price-card ul { list-style: none; margin: 22px 0; flex-grow: 1; }
.price-card ul li { padding: 8px 0 8px 28px; position: relative; color: var(--text-dim); font-size: 0.95rem; border-bottom: 1px dashed rgba(180,170,172,0.5); }
.price-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card.featured { border-color: #b4aaac; box-shadow: 0 0 40px rgba(180,170,172,0.35); }
.badge-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #8a7f82; color: #fff; font-family: var(--font); font-size: 0.75rem; font-weight: 700; padding: 5px 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #ffffff; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font); font-weight: 800; font-size: 2rem;
  color: #b4aaac;
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; padding: 110px 0;
  background: radial-gradient(ellipse at center, rgba(142,183,215,0.4), var(--navy-900) 75%);
  border-top: 1px solid var(--border); overflow: hidden;
}
.cta-final h2 { max-width: 700px; margin: 0 auto 18px; }
.cta-final p { max-width: 560px; margin: 0 auto 34px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 70px 0 36px; background: var(--navy-800); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); transition: color .2s; }
.footer-grid a:hover { color: var(--blue-bright); }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: 0.85rem; }
.footer-bottom a { color: var(--text-faint); margin-left: 18px; }
.footer-bottom a:hover { color: var(--blue-bright); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 20px 0 0; font-size: 0.85rem; color: var(--text-faint); }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--blue-bright); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 80px 0 60px; }
.page-hero p.lead { font-size: 1.18rem; max-width: 680px; margin-top: 20px; }

/* ---------- Prose (blog / legal) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 48px 0 18px; font-size: 1.7rem; }
.prose h3 { margin: 34px 0 14px; }
.prose p, .prose li { margin-bottom: 16px; color: var(--text-dim); font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 24px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.prose th { background: rgba(142,183,215,0.4); color: var(--text); font-family: var(--font); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- Live chart ---------- */
.chart-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #ffffff; }
.chart-card canvas, .chart-card svg { width: 100%; height: auto; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.chart-head .delta { color: var(--green); font-family: var(--font); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .case-row, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  section { padding: 64px 0; }
  .hero { padding: 70px 0 60px; }
  .hero-grid, .case-row, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--navy-800); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; display: none; gap: 2px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-left: 16px; min-width: 0; }
  .hamburger { display: block; }
  .nav-cta .btn { padding: 10px 18px; font-size: 0.85rem; }
  .steps { grid-template-columns: 1fr; }
  /* data tables scroll sideways instead of cramming/clipping */
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  /* hero chart: tighter card padding + larger axis/series labels at small scale */
  .chart-card { padding: 20px 12px; }
  .chart-card svg text.axis { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- icon SVGs (emoji replacement) --- */
.card .icon { color: var(--blue); }
.card .icon svg { width: 22px; height: 22px; }

/* --- chart end-point radar pulse --- */
.chart-ring.pulsing {
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: chartRing 2.2s ease-out infinite;
}
@keyframes chartRing {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
