/* VeloSync — Stripe-inspired layout, brand #5A32FA */
:root {
  --primary: #5a32fa;
  --primary-dark: #4520d4;
  --primary-light: #7b5afb;
  --primary-glow: rgba(90, 50, 250, 0.12);
  --stripe-navy: #0a2540;
  --text: #0a2540;
  --text-muted: #425466;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --border: #e6ebf1;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 64px;
  --transition: 0.2s ease;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header (Stripe) ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta { color: var(--primary) !important; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-text {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-text:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(90, 50, 250, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.link-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; }

/* ─── 1. Hero (Stripe gradient) ─── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #5a32fa 0%, #3d1fb8 40%, #1a0a4e 100%);
  z-index: -1;
}

.hero-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(255,255,255,0.15), transparent),
    radial-gradient(ellipse 40% 30% at 20% 90%, rgba(123,90,251,0.3), transparent);
}

.hero-inner {
  text-align: center;
  color: #fff;
  max-width: 800px;
}

.hero-ticker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ─── Sections common ─── */
.section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 56px;
}

.section-head.center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-head.light h2,
.section-head.light p { color: #fff; }

/* ─── 2. Solutions (alternating rows) ─── */
.solutions { background: var(--bg); }

.solution-list { display: flex; flex-direction: column; gap: 80px; }

.solution-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-row.reverse .solution-content { order: 2; }
.solution-row.reverse .solution-visual { order: 1; }

.solution-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
}

.solution-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.65;
}

.solution-visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mock UI components */
.mock-card {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.mock-header { font-weight: 700; font-size: 0.85rem; margin-bottom: 16px; }
.mock-line { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 10px; }
.mock-line.accent { background: var(--primary); width: 70%; }
.mock-line.short { width: 45%; }
.mock-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-pipeline span:nth-child(odd) {
  padding: 8px 12px;
  background: #fff;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.mock-layers { width: 100%; display: flex; flex-direction: column; gap: 8px; }

.mock-layers .layer {
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.mock-layers .layer.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.mock-flow { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.mock-flow .node {
  padding: 12px;
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border);
}

.mock-flow .node.split { font-size: 0.75rem; color: var(--text-muted); }
.mock-flow .node.highlight { background: var(--primary); color: #fff; border-color: var(--primary); }

.mock-gov {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 2;
}

.mock-gov .active { color: var(--primary); }

.mock-tiers { width: 100%; display: flex; flex-direction: column; gap: 8px; }

.mock-tiers .tier {
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.mock-tiers .tier.featured {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── 3. Stats (Stripe pillars) ─── */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, #2a1280 100%);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* ─── 4. Audiences (tabs) ─── */
.audiences { background: var(--bg-alt); }

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.tab:hover { color: var(--text); background: rgba(0,0,0,0.04); }

.tab.active {
  background: var(--text);
  color: #fff;
}

.tab-panels { position: relative; }

.tab-panel { display: none; animation: fadeTab 0.35s ease; }
.tab-panel.active { display: block; }

@keyframes fadeTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.audience-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--bg);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.audience-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
}

.audience-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.audience-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mini-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.mini-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── 5. Case Studies ─── */
.cases { background: var(--bg); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.case-visual {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-glow), var(--bg-alt));
}

.case-visual.c1 { background: linear-gradient(135deg, #5a32fa33, #f6f9fc); }
.case-visual.c2 { background: linear-gradient(135deg, #0a254033, #e6ebf1); }
.case-visual.c3 { background: linear-gradient(135deg, #5a32fa22, #7b5afb44); }

.case-body { padding: 24px; }

.case-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.case-body > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.case-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.metric-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.case-products {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Risk detail ─── */
.risk-detail { background: var(--bg-alt); padding: 80px 0; }

.risk-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  text-align: center;
}

.risk-banner h3 { font-size: 1.35rem; margin-bottom: 12px; }
.risk-banner p { opacity: 0.9; max-width: 720px; margin: 0 auto; font-size: 0.95rem; }

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.risk-item {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.risk-item span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  display: block;
  margin-bottom: 8px;
}

.risk-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.risk-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── 7. Developers ─── */
.developers { background: var(--bg); }

.dev-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  text-align: center;
}

.dev-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dev-stat span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.integration-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.path-card {
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.path-card.featured {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.path-card.featured p { color: rgba(255,255,255,0.75); }
.path-card.featured .link-arrow { color: var(--primary-light); }

.path-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.path-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.security-strip {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  text-align: center;
}

.sec-flow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sec-flow .accent { color: var(--primary); }

.sec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sec-tags span {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── 8. Highlights carousel ─── */
.highlights { background: var(--bg-alt); }

.highlights .section-head { margin-bottom: 32px; }

.highlights-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.highlights-track::-webkit-scrollbar { display: none; }

.highlight-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.highlight-card:hover { box-shadow: var(--shadow); }

.highlight-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin: 12px 0 10px;
  line-height: 1.3;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.highlights-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

.hl-prev, .hl-next {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}

.hl-prev:hover, .hl-next:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── 9. Bottom CTA ─── */
.cta-bottom {
  background: var(--bg-alt);
  padding: 100px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-inner > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cta-note a:hover { text-decoration: underline; }

/* ─── 10. Footer ─── */
.footer {
  background: var(--stripe-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo { color: #fff; margin-bottom: 12px; }

.brand-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 240px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-legal a:hover { color: #fff; }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
  .solution-row,
  .solution-row.reverse {
    grid-template-columns: 1fr;
  }

  .solution-row.reverse .solution-content,
  .solution-row.reverse .solution-visual { order: unset; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-layout { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .dev-stats,
  .integration-paths { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }

  .nav-toggle { display: flex; }

  .nav.open .nav-links {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open .nav-actions {
    display: flex;
    position: fixed;
    top: calc(var(--header-h) + 280px);
    left: 24px;
    right: 24px;
  }

  .section { padding: 72px 0; }
  .solution-list { gap: 56px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
