/* =====================================================================
   PEAK SEO-AEO — Service / Landing Page Stylesheet
   Shared by all PEAK SEO-AEO sub pages built for developer integration.
   Brand tokens live in :root so they can be mapped to the existing
   site variables in one place. Primary brand colour: #2f63ad
   ===================================================================== */

:root {
  /* Brand palette */
  --brand: #2f63ad;
  --brand-600: #2a5899;
  --brand-700: #214a83;
  --brand-800: #173a6b;
  --brand-900: #0f2a50;
  --accent: #16b8d4;       /* answer engine / AI highlight */
  --accent-soft: #d7f3f8;

  /* Neutrals */
  --ink: #0f1b2d;
  --ink-soft: #3c4a5e;
  --muted: #6b7888;
  --line: #e4eaf2;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #eef3f9;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 6px 18px rgba(15, 27, 45, .05);
  --shadow-md: 0 10px 30px rgba(33, 74, 131, .14);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1.1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 20px;
}
.brand-logo { display: inline-flex; align-items: center; height: 34px; }
.brand-logo img { height: 34px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a.navlink {
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  transition: color .2s ease;
}
.header-nav a.navlink:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(33, 74, 131, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(33, 74, 131, .36); }
.btn-ghost {
  background: transparent; color: var(--brand); border-color: rgba(47, 99, 173, .35);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); }
.btn-arrow { transition: transform .2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(22,184,212,.16), transparent 55%),
    radial-gradient(120% 120% at 0% 0%, rgba(47,99,173,.12), transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,99,173,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,99,173,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(110% 80% at 70% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(110% 80% at 70% 0%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; padding-block: 92px 84px; }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.65rem); margin-bottom: .35em;
}
.hero-sub {
  font-family: var(--font-display); font-weight: 600; color: var(--brand-700);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: -0.01em;
  margin: 0 0 1.3rem;
}
.hero-lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 660px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 2.4rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--muted); font-weight: 500; }
.trust-item strong { color: var(--ink); font-family: var(--font-display); }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Sections ---------- */
section { padding-block: 78px; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: .7rem; }
.section-head h3 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: .7rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

.alt { background: var(--surface-2); border-block: 1px solid var(--line); }

/* Split / feature card layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.feature-card .kicker {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  display: inline-block; margin-bottom: .8rem;
}

/* Checklist */
.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(120% 160% at 90% 10%, rgba(22,184,212,.30), transparent 55%),
    linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: #fff; border-radius: 24px; padding: 56px clamp(28px, 5vw, 64px);
  text-align: center; box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.cta-band .btn-primary:hover { background: #f0f6ff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #c4d2e8; padding-block: 60px 30px; }
.site-footer a { color: #c4d2e8; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about { max-width: 320px; margin-top: 16px; color: #9fb3d1; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #8ba2c4; display: grid; gap: 8px;
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header-nav .navlink { display: none; }
  section { padding-block: 58px; }
  .hero .container { padding-block: 64px 56px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
