:root {
  --bg: #f7f8ff;
  --bg-soft: #eef2ff;
  --text: #111827;
  --muted: #5b6474;
  --primary: #4f46e5;
  --primary-dark: #312e81;
  --cyan: #06b6d4;
  --accent: #f59e0b;
  --card: #ffffff;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 28px 80px rgba(49, 46, 129, 0.16);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(79, 70, 229, 0.12), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(6, 182, 212, 0.12), transparent 26%),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Tighter section padding — was 88px */
.section { padding: 72px 0; }
.muted { background: linear-gradient(180deg, var(--bg-soft), #f9fbff); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 700;
}

.nav-menu a:hover { color: var(--primary-dark); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 900;
  border: 1px solid transparent;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover { transform: translateY(-2px); filter: saturate(1.08); }
.btn-small { padding: 10px 16px; font-size: 0.92rem; }
.btn-ghost {
  background: rgba(255,255,255,0.72);
  color: var(--primary-dark);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: none;
}
.btn-ghost:hover { background: white; }
.btn-light { background: white; color: var(--primary-dark); box-shadow: none; }
.btn-light:hover { background: #eef7ff; }

/* HERO — mini-card repositioned for better readability */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -160px -24% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.7rem, 5.7vw, 5.65rem);
  line-height: 0.96;
  /* Reduced letter-spacing — was -0.085em */
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  /* Reduced letter-spacing — was -0.06em */
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
h3 { font-size: 1.2rem; line-height: 1.2; margin-bottom: 8px; }
p { color: var(--muted); }

.hero-lead {
  font-size: 1.16rem;
  max-width: 680px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

/* Microcopy under CTA */
.hero-micro {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 22px;
  opacity: 0.85;
}

.trust-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
.trust-list li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  font-weight: 800;
  font-size: 0.92rem;
}

/* Hero card — flex layout, no absolute-positioned overlaps */
.hero-card {
  min-height: 480px;
  position: relative;
  border-radius: 42px;
  background:
    linear-gradient(150deg, rgba(79, 70, 229, 0.92), rgba(6, 182, 212, 0.82)),
    #312e81;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.92;
  pointer-events: none;
}
.orb-one { width: 260px; height: 260px; background: rgba(255, 255, 255, 0.16); top: 34px; right: 24px; }
.orb-two { width: 230px; height: 230px; background: rgba(245, 158, 11, 0.25); bottom: 46px; left: 24px; }

.hero-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 40px 28px 32px;
  gap: 28px;
}

.ai-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(14px);
}
.main-panel {
  width: min(340px, calc(100% - 40px));
  border-radius: 28px;
  padding: 28px 30px;
  text-align: center;
}
.panel-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(79, 70, 229, 0.1);
  font-weight: 900;
  font-size: 0.72rem;
}
.main-panel h2 { font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.02em; }
.main-panel p { font-size: 0.88rem; line-height: 1.5; }

/* Feature strip — replaces mini-cards, no overlap possible */
.hero-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
  transition: background 200ms ease, transform 200ms ease;
}
.hero-feature:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.hero-feature svg {
  opacity: 0.9;
  flex-shrink: 0;
}

/* Problem section */
.split-card, .quote-card, .cta-card {
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
}
.split-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  background: #111827;
  color: white;
  box-shadow: var(--shadow);
}
.split-card p { color: rgba(255,255,255,0.72); font-size: 1.05rem; }
.split-card .eyebrow { color: #93c5fd; }

/* Section headings */
.section-heading {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 36px;
}
.section-heading p:last-child { font-size: 1.05rem; }
.align-left { text-align: left; margin-inline: 0; }

/* Service cards */
.cards, .benefit-grid, .steps {
  display: grid;
  gap: 18px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.1);
}

/* SVG icon container — replaces emoji */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
  color: var(--primary);
}

.card p { margin-bottom: 0; }

/* Benefit section — now with cards instead of flat layout */
.benefit-grid { grid-template-columns: repeat(4, 1fr); }
.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 3px 3px 0 0;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.1);
}
.benefit-num {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}
.benefit-card h3 { font-size: 1.1rem; }

/* Process steps */
.steps {
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}
.steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 22px;
}

/* Quote / testimonial */
.quote-card {
  background: white;
  box-shadow: var(--shadow);
}
blockquote {
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
cite { color: var(--muted); font-style: normal; font-weight: 800; }

/* FAQ — with clear expand indicators */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}
.faq-list { display: grid; gap: 14px; }
details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  transition: box-shadow 180ms ease;
}
details[open] {
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}
summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }

/* FAQ chevron indicator */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  position: relative;
  transition: transform 250ms ease, background 250ms ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}
/* Horizontal bar (always visible) */
.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Vertical bar (visible when closed, hidden when open) */
.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
details[open] .faq-icon {
  background: rgba(79, 70, 229, 0.12);
}
details[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

details p { margin: 12px 0 0; }

/* CTA section */
.cta-section { padding-top: 24px; }
.cta-card {
  text-align: center;
  color: white;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.38), transparent 34%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow);
}
.cta-card p { color: rgba(255,255,255,0.78); max-width: 680px; margin-inline: auto; }
.cta-card .eyebrow { color: #c7d2fe; }
.cta-card .btn { margin-top: 12px; }

/* Footer */
.footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer p { margin: 0; }

/* RESPONSIVE — Tablet */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    inset: 76px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 13px 12px; }
  .nav-menu .btn { margin-top: 8px; }
  .hero-grid, .split-card, .faq-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hero-card { min-height: 400px; order: -1; }
  .service-grid, .benefit-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}

/* RESPONSIVE — Mobile */
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 52px 0; }
  .hero { padding-bottom: 64px; }

  /* Tighter letter-spacing on mobile */
  h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
    letter-spacing: -0.04em;
  }
  h2 {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    letter-spacing: -0.025em;
  }

  .hero-actions .btn { width: 100%; }
  .hero-card { min-height: 340px; border-radius: 30px; }
  .hero-card-inner { padding: 28px 20px 24px; gap: 20px; }
  .main-panel { width: min(300px, calc(100% - 20px)); padding: 22px 24px; }
  .main-panel h2 { font-size: 0.98rem; }
  .main-panel p { font-size: 0.82rem; }

  /* Feature strip on mobile */
  .hero-features { gap: 8px; }
  .hero-feature { padding: 8px 13px; font-size: 0.76rem; }
  .hero-feature svg { width: 16px; height: 16px; }

  .service-grid, .benefit-grid, .steps { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }

  .eyebrow { letter-spacing: 0.04em; }
}

/* Entrance animation */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
