/* ==========================================================================
   API Connect — landing page styles
   Palette: navy #1b2a4a (brand) · WHC red #ce1126 (accent) · warm neutrals
   ========================================================================== */

:root {
  --navy: #1b2a4a;
  --navy-dark: #12203c;
  --red: #ce1126;
  --red-dark: #a90e1f;
  --ink: #22293a;
  --muted: #5b6478;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-card: #ffffff;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.10);
  --shadow-sm: 0 4px 14px rgba(27, 42, 74, 0.08);
  --radius: 16px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.container-narrow { width: min(820px, 92%); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(206, 17, 38, 0.35); }
.btn-primary:hover { background: var(--red-dark); }

.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(206, 17, 38, 0.30); }
.btn-red:hover { background: var(--red-dark); }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); transform: none; }

.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 1.25rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 0;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); letter-spacing: -0.01em; }

.main-nav { display: flex; gap: 1.6rem; margin-inline: auto; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.15s; }
.main-nav a:hover { color: var(--red); }

.header-cta { display: flex; gap: 0.6rem; align-items: center; }

.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(206, 17, 38, 0.07), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(27, 42, 74, 0.06), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  padding: 5rem 0 5.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(206, 17, 38, 0.08);
  border: 1px solid rgba(206, 17, 38, 0.18);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(206, 17, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0); }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero h1 .accent { color: var(--red); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; }

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-trust {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  list-style: none;
  margin-top: 1.6rem;
  font-size: 0.9rem; color: var(--muted); font-weight: 500;
}

/* Hero mock dashboard */

.hero-panel { position: relative; }

.mock-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-card-header {
  display: flex; align-items: center; gap: 6px;
  padding: 0.7rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.mock-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mock-dot.red { background: #f26d6d; }
.mock-dot.yellow { background: #f2c94c; }
.mock-dot.green { background: #6fcf97; }

.mock-title { margin-left: 0.6rem; font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.mock-body { padding: 1.2rem; }

.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1.1rem; }

.mock-stat {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex; flex-direction: column; gap: 2px;
}

.mock-stat-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.mock-stat-delta { font-size: 0.75rem; font-weight: 600; }
.mock-stat-delta.up { color: #1a9e55; }
.mock-stat-delta.down { color: #1a9e55; }

.mock-chart { border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem; margin-bottom: 1.1rem; }
.mock-chart svg { width: 100%; height: 90px; display: block; }

.mock-invoice {
  display: flex; align-items: center; gap: 0.8rem;
  border: 1px solid var(--line);
  border-left: 4px solid #1a9e55;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.mock-invoice-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(26, 158, 85, 0.12); color: #1a9e55;
  display: grid; place-items: center; font-weight: 700;
}

.mock-invoice strong { display: block; font-size: 0.88rem; color: var(--navy); }
.mock-invoice span { font-size: 0.78rem; color: var(--muted); }

.hero-badge-float {
  position: absolute;
  bottom: -1.6rem;
  left: -1.2rem;
  display: flex; align-items: center; gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 1rem;
  font-size: 0.85rem; font-weight: 600; color: var(--navy);
}

.whc-float-logo { width: 74px; border-radius: 8px; }

/* ---------- Partner strip ---------- */

.partner-strip { background: var(--navy); }

.partner-inner {
  display: flex; align-items: center; justify-content: center; gap: 2.2rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
}

.partner-label {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.partner-logo { height: 58px; border-radius: 10px; }
.partner-badge { height: 52px; }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }

.kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.kicker-light { color: #ffb3bc; }

.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.015em; }

.section-sub { color: var(--muted); margin-top: 0.9rem; font-size: 1.05rem; }

/* ---------- Features ---------- */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(206, 17, 38, 0.35);
}

.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: rgba(27, 42, 74, 0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Steps ---------- */

.steps {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 3rem;
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

.step-arrow {
  align-self: center;
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 700;
}

/* Code teaser */

.code-teaser {
  max-width: 620px;
  margin: 0 auto;
  background: var(--navy-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-teaser-head {
  display: flex; align-items: center; gap: 6px;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-teaser-head .mock-title { color: rgba(255,255,255,0.55); }

.code-teaser pre {
  padding: 1.3rem 1.4rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
}

.code-teaser code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; color: #dbe4f3; }
.code-teaser .c { color: #7d8aa5; }
.code-teaser .k { color: #ff8896; }
.code-teaser .s { color: #8fd3a5; }

/* ---------- WHC section ---------- */

.whc-section {
  background:
    radial-gradient(900px 400px at 110% 0%, rgba(206, 17, 38, 0.10), transparent 60%),
    var(--navy);
}

.whc-section .section-head h3,
.whc-section .section-head { color: #fff; }
.whc-section .section-sub { color: rgba(255,255,255,0.65); }

.whc-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.whc-big-logo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.whc-hero-copy h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.9rem; }
.whc-hero-copy p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 36rem; }
.whc-hero-copy a { color: #ffb3bc; font-weight: 600; }
.whc-hero-copy a:hover { text-decoration: underline; }

.whc-badges { display: flex; gap: 1rem; margin-top: 1.3rem; }
.whc-badges img { height: 64px; }

.whc-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.whc-fact {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}

.whc-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
}

.whc-fact span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.whc-plans-title { color: #fff; font-size: 1.5rem; }

/* Plan cards (shared between WHC + pricing) */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border: 2px solid var(--red);
  box-shadow: 0 14px 36px rgba(206, 17, 38, 0.18);
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.plan-price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }

.plan-card ul { list-style: none; display: grid; gap: 0.55rem; flex: 1; }

.plan-card ul li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
}

.plan-card ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--red);
  font-weight: 700;
}

/* WHC services */

.whc-services { margin-top: 3.5rem; }
.whc-services h3 { color: #fff; text-align: center; font-size: 1.4rem; margin-bottom: 1.8rem; }

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

.whc-service {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.whc-service > span { font-size: 1.4rem; line-height: 1.2; }
.whc-service strong { color: #fff; display: block; font-size: 0.98rem; margin-bottom: 0.15rem; }
.whc-service p { color: rgba(255,255,255,0.62); font-size: 0.85rem; line-height: 1.5; }

.whc-cta-line { text-align: center; margin-top: 2.2rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.8rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item[open] { border-color: rgba(206, 17, 38, 0.4); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(135deg, var(--red) 0%, #8f0c1a 100%);
  padding: 4.5rem 0;
  text-align: center;
  color: #fff;
}

.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.7rem; }
.final-cta p { color: rgba(255,255,255,0.85); margin-bottom: 1.8rem; font-size: 1.08rem; }

.final-cta .btn-primary { background: #fff; color: var(--red); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.final-cta .btn-primary:hover { background: #ffe9ec; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2rem;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 20rem; }

.footer-col h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.55rem;
  transition: color 0.15s;
}

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

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-disclaimer { margin-top: 0.5rem; max-width: 56rem; line-height: 1.55; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 0 4rem; }
  .hero-badge-float { left: 0; }
  .feature-grid, .plan-grid, .whc-service-grid { grid-template-columns: repeat(2, 1fr); }
  .whc-facts { grid-template-columns: repeat(2, 1fr); }
  .whc-hero-card { grid-template-columns: 1fr; }
  .whc-big-logo { max-width: 380px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 5%; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .feature-grid, .plan-grid, .whc-service-grid { grid-template-columns: 1fr; }
  .mock-stat-row { grid-template-columns: 1fr 1fr; }
  .plan-featured { order: -1; }
  .partner-inner { gap: 1.2rem; }
  .partner-logo { height: 46px; }
  .partner-badge { height: 40px; }
}
