/* ── ReplyBridge "The Digital Curator" Design System ── */
:root {
  --primary: #4A4BD7;
  --primary-gradient: linear-gradient(135deg, #4A4BD7 0%, #7073FF 100%);
  --primary-dim: #3D3DCB;
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --surface-low: #F0F4F7;
  --on-surface: #2C3437;
  --on-surface-variant: #596064;
  --on-surface-tertiary: #8A9298;
  --tertiary: #B5146E;
  --radius: 24px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1040px;
  --space: 16px;
  --space-lg: 24px;
  --shadow-card: 0 16px 32px rgba(44, 52, 55, 0.06);
  --shadow-glow: 0 0 40px rgba(74, 75, 215, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration-color: var(--primary); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--on-surface); }
img { max-width: 100%; height: auto; display: block; }

/* ── Utility ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--on-surface);
}
.section-desc {
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-bottom: 48px;
  max-width: 580px;
}
.section-wrap {
  padding: 100px var(--space-lg);
}
.section-alt {
  background: var(--surface-low);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Navigation ── */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(44, 52, 55, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 60px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--on-surface);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-surface-variant);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--on-surface); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background 0.15s !important;
  -webkit-text-fill-color: #fff !important;
}
.nav-cta:hover { background: var(--primary-dim) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--space-lg) 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 40%, color-mix(in srgb, var(--primary) 7%, transparent) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-line { display: block; }
.hero-line-accent {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--on-surface-variant);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-supplement {
  font-size: 13px;
  color: var(--on-surface-tertiary);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.12s, box-shadow 0.2s;
  border: 1.5px solid transparent;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  color: #fff;
}
.btn-outline {
  background: var(--surface);
  color: var(--on-surface);
  border-color: rgba(44, 52, 55, 0.15);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-block { width: 100%; text-align: center; }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.step-card {
  background: var(--surface);
  border: 1px solid rgba(44, 52, 55, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(44, 52, 55, 0.08);
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--on-surface);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step-number.is-active {
  background: var(--primary-gradient);
}
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-text { font-size: 14px; color: var(--on-surface-variant); line-height: 1.6; }
.step-connector {
  width: 32px;
  height: 2px;
  background: var(--on-surface-tertiary);
  opacity: 0.25;
  margin: 0 12px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(44, 52, 55, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(44, 52, 55, 0.08);
}
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon-wrap svg { width: 22px; height: 22px; }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-text { font-size: 14px; color: var(--on-surface-variant); line-height: 1.6; }

/* ── Use Cases ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border: 1px solid rgba(44, 52, 55, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.case-featured {
  border-color: var(--primary);
  border-width: 1.5px;
  position: relative;
}
.case-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-icon svg { width: 22px; height: 22px; }
.case-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.case-audience {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.case-text {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  flex: 1;
  font-style: italic;
}
.case-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

/* ── CTA Section ── */
.section-cta {
  background: var(--bg);
}
.cta-card {
  background: var(--primary-gradient);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.cta-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}
.cta-text {
  font-size: 16px;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.cta-card .btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
}
.cta-card .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: none;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(44, 52, 55, 0.06);
  padding: 56px var(--space-lg) 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-logo svg { width: 32px; height: auto; }
.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 14px;
  color: var(--on-surface-variant);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-tertiary);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(44, 52, 55, 0.06);
  padding: 20px var(--space-lg);
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--on-surface-tertiary);
}

/* ── Animations ── */
.section-wrap, .hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-wrap.is-visible, .hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-connector {
    width: 2px;
    height: 24px;
    margin: 0 auto;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  html { font-size: 14px; }
  .section-wrap { padding: 64px var(--space); }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(44, 52, 55, 0.08);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-card { padding: 40px 24px; }
  .cta-title { font-size: 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 26px; }
}
