/* ============================================================
   Chat Support Service | Design System
   Self-contained, no CDN dependencies.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700;1,900&display=swap');

/* ---------- Tokens ---------- */
:root {
  --midnight:   #020617;
  --navy:       #0f172a;
  --navy-light: #1e293b;
  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-600:  #475569;
  --slate-900:  #0f172a;
  --white:      #ffffff;
  --red:        #DC2626;
  --red-dark:   #b91c1c;
  --red-light:  #fef2f2;

  --f-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-main);
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-dark { background: var(--midnight); color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-light { background: var(--slate-50); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}
.display {
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.display em { font-style: italic; font-weight: 700; color: var(--red); }
.headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.headline em { font-style: italic; font-weight: 700; color: var(--red); }
.subhead {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.body-lg { font-size: 18px; line-height: 1.7; color: var(--slate-500); font-style: italic; }
.body-sm { font-size: 14px; line-height: 1.6; }
.label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--slate-400);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-main);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 24px rgba(220,38,38,0.3); }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 12px 32px rgba(220,38,38,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 20px 40px; font-size: 14px; border-radius: var(--radius-md); }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 30px; width: auto; }
.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-name span { color: var(--red); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
@media (max-width: 1200px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.08em; }
}
.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
/* Prevent nav-links a rule from overriding button text color */
.nav-links a.btn { color: var(--white); }
.nav-links a.btn:hover { color: var(--white); }
.nav-divider { width: 1px; height: 18px; background: var(--slate-200); }
.nav-cta { margin-left: 8px; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: all 0.2s ease; }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--midnight);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-style: italic;
  color: var(--white);
  transition: color 0.15s ease;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .btn { font-size: 14px; padding: 18px 48px; border-radius: var(--radius-lg); }

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Ticker strip ---------- */
.ticker {
  background: var(--midnight);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 0;
}
.ticker-inner {
  display: flex;
  align-items: stretch;
}
.ticker-item {
  flex: 1;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
  min-width: 0;
}
.ticker-item:last-child { border-right: none; }
.ticker-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ticker-num.red { color: var(--red); }
.ticker-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-top: 6px;
}
@media (max-width: 768px) {
  .ticker-inner { flex-wrap: wrap; }
  .ticker-item { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-proof {
  background: var(--midnight);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--white);
}
.proof-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
}
.proof-row:last-child { border-bottom: none; padding-bottom: 0; }
.proof-row .lbl { color: var(--slate-400); font-style: italic; }
.proof-row .val { font-weight: 800; color: var(--white); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.proof-row .val.red { color: var(--red); }
.proof-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.proof-head .title { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-400); }
.proof-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; background: var(--red); color: var(--white); padding: 4px 10px; border-radius: 100px; }
.proof-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
.proof-total .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate-400); }
.proof-total .val { font-size: 42px; font-weight: 900; color: var(--white); letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 130px 0 64px; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .trust-inner { flex-wrap: nowrap; }
  .trust-item { white-space: nowrap; }
}
.trust-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item i { color: var(--red); font-size: 13px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.08);
}
.card-dark {
  background: var(--navy);
  border-color: rgba(255,255,255,0.08);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--slate-900);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 24px;
}
.card h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-style: italic; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--slate-500); line-height: 1.65; font-style: italic; }

/* ---------- Testimonials ---------- */
.testi-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.08);
}
.testi-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  padding: 3px;
  background: var(--white);
}
.testi-quote { font-size: 17px; font-style: italic; color: var(--slate-600); line-height: 1.7; flex-grow: 1; margin: 20px 0; }
.testi-name { font-size: 12px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate-900); }
.testi-role { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-top: 2px; }

/* ---------- Grid layouts ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: center; }
.grid-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-2-1, .grid-1-2, .grid-equal { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Process steps ---------- */
.process-step { position: relative; }
.step-num {
  width: 64px; height: 64px;
  background: var(--midnight);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  transition: background 0.2s ease;
}
.process-step:hover .step-num { background: var(--red); }
.step-title { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-style: italic; margin-bottom: 10px; }
.step-body { font-size: 15px; color: var(--slate-500); line-height: 1.65; font-style: italic; }

/* ---------- Pricing ---------- */
.pricing-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  background: var(--white);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1); }
.pricing-card.featured {
  background: var(--midnight);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.4);
}
.pricing-card.featured:hover { transform: translateY(-12px); }
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-name { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.pricing-tier { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
.pricing-price { margin: 24px 0; }
.pricing-price .amount { font-size: 52px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.pricing-price .period { font-size: 16px; color: var(--slate-400); }
.pricing-desc { font-size: 14px; font-style: italic; padding: 16px 0; border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); margin-bottom: 24px; }
.pricing-card.featured .pricing-desc { border-color: rgba(255,255,255,0.1); color: var(--slate-400); }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--slate-600);
}
.pricing-card.featured .pricing-feature { color: var(--slate-300); }
.pricing-feature i { color: var(--red); margin-top: 2px; flex-shrink: 0; }
.pricing-cta { margin-top: 32px; }

/* ---------- Stats blocks ---------- */
.stat-block { border-left: 3px solid var(--red); padding-left: 20px; }
.stat-block .num { font-size: 48px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.stat-block .desc { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-400); margin-top: 6px; }

/* ---------- Section header ---------- */
.section-header { max-width: 640px; margin-bottom: 56px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header .headline { margin-top: 12px; }
.section-header .body-lg { margin-top: 20px; }

/* ---------- Case study cards ---------- */
.case-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.case-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.08);
}
.case-icon {
  width: 52px; height: 52px;
  background: var(--slate-900);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px;
}
.case-badge {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red);
  padding: 5px 12px; border-radius: 100px;
}
.case-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.case-stat {
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.case-stat .num { font-size: 22px; font-weight: 900; color: var(--slate-900); }
.case-stat .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate-400); margin-top: 4px; }

/* ---------- ROI Calculator ---------- */
.calc-wrap { background: var(--navy); padding: 48px; border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,0.06); }
.calc-result { background: var(--midnight); border-radius: var(--radius-lg); padding: 40px; text-align: center; margin-top: 32px; border: 1px solid rgba(255,255,255,0.06); }
.calc-result .amount { font-size: 64px; font-weight: 900; color: var(--white); letter-spacing: -0.04em; line-height: 1; font-style: italic; }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(220,38,38,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 50%;
  border: none;
}

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { padding: 18px 24px; font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; text-align: left; background: var(--navy); color: var(--white); }
.compare-table th.highlight { background: var(--red); }
.compare-table td { padding: 18px 24px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--slate-100); }
.compare-table td.strong { font-weight: 800; color: var(--red); background: var(--red-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--white); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand-name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; color: var(--white); margin: 16px 0 8px; }
.footer-brand-name span { color: var(--red); }
.footer-tagline { font-size: 13px; color: var(--slate-400); font-style: italic; line-height: 1.6; margin-bottom: 24px; }
.footer-contact { font-size: 13px; color: var(--slate-400); font-style: italic; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--red); font-size: 12px; }
.footer-social { display: flex; gap: 14px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-400); font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); }
.footer-col h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 13px; color: var(--slate-400); font-style: italic; transition: color 0.15s ease; }
.footer-col ul a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase; font-style: italic; color: var(--white); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2,6,23,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  width: 100%; max-width: 480px;
  position: relative;
  border-top: 6px solid var(--red);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  font-size: 22px;
  color: var(--slate-400);
  transition: color 0.15s ease;
}
.modal-close:hover { color: var(--slate-900); }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--slate-100);
  padding: 12px 0; font-family: var(--f-main); font-size: 18px; font-weight: 700;
  background: transparent; outline: none; transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--red); }
.form-field textarea { resize: vertical; min-height: 80px; }

/* ---------- Page Hero (interior) ---------- */
.page-hero {
  background: var(--midnight);
  padding: 140px 0 72px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220,38,38,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .display { color: var(--white); }
.page-hero .body-lg { color: rgba(255,255,255,0.65); }
.breadcrumb { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--slate-500); margin-bottom: 20px; }
.breadcrumb a { color: var(--slate-500); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--red); }

/* em inside red CTA band is invisible (red on red) - force white */
.cta-band .headline em,
.cta-band .display em { color: rgba(255,255,255,0.88); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--red);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band .headline { color: var(--white); max-width: 16ch; }
.cta-band .body-lg { color: rgba(255,255,255,0.8); margin-top: 12px; max-width: 44ch; }

/* ---------- Edge article cards ---------- */
.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.08);
}
.article-tag {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.article-title { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-style: italic; line-height: 1.1; margin-bottom: 14px; }
.article-card:hover .article-title { color: var(--red); }
.article-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--slate-100); margin-top: 20px; }
.article-read-time { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate-400); }
.article-link { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); transition: letter-spacing 0.15s ease; }
.article-card:hover .article-link { letter-spacing: 0.2em; }

/* ---------- Case study interior ---------- */
.cs-hero { background: linear-gradient(135deg, var(--midnight) 0%, var(--navy) 100%); }
.cs-snapshot { background: var(--red); padding: 24px 0; color: var(--white); }
.cs-snap-inner { display: flex; flex-wrap: wrap; gap: 0; }
.cs-snap-item { flex: 1; min-width: 160px; padding: 0 28px; border-right: 1px solid rgba(255,255,255,0.2); text-align: center; }
.cs-snap-item:last-child { border-right: none; }
.cs-snap-num { font-size: 26px; font-weight: 900; }
.cs-snap-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 4px; }
.timeline { padding-left: 28px; border-left: 2px solid var(--slate-100); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -37px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-date { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.timeline-title { font-size: 15px; font-weight: 800; text-transform: uppercase; font-style: italic; }
.timeline-body { font-size: 14px; color: var(--slate-500); font-style: italic; margin-top: 4px; line-height: 1.6; }
.sidebar-card { border: 1px solid var(--slate-100); border-radius: var(--radius-xl); padding: 32px; background: var(--slate-50); margin-bottom: 24px; }
.platform-item { display: flex; align-items: flex-start; gap: 16px; background: var(--slate-50); border-radius: var(--radius-md); padding: 18px; margin-bottom: 12px; }
.platform-item i { color: var(--red); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.platform-item strong { font-size: 13px; font-weight: 800; text-transform: uppercase; display: block; margin-bottom: 2px; }
.platform-item span { font-size: 13px; color: var(--slate-500); font-style: italic; }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 768px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Utility ---------- */
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-muted { color: var(--slate-500); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.divider { height: 1px; background: var(--slate-200); }
.divider-dark { height: 1px; background: rgba(255,255,255,0.07); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--slate-100); border-radius: var(--radius-xl); padding: 40px; background: var(--white); margin-bottom: 16px; transition: border-color 0.2s ease; }
.faq-item:hover { border-color: var(--red); }
.faq-q { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-style: italic; margin-bottom: 16px; }
.faq-a { font-size: 16px; color: var(--slate-500); font-style: italic; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 28px; flex-direction: column; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .page-hero { padding: 120px 0 56px; }
}
