/* =====================================================================
   CORTEX — AI Search / Knowledge Assistant (RAG) Template
   Premium multi-page template. Plain HTML5 + CSS3 + vanilla JS.
   No frameworks, no build tools, no external image files
   (every visual is a CSS gradient, inline SVG, or emoji). Offline-ready.
   ---------------------------------------------------------------------
   REBRAND TIP: Change the look by editing the CSS variables in :root
   below. Swap --accent / --accent2 for your colors, adjust --surface /
   --line to match, and update --font-head / --font-body plus the Google
   Fonts <link> in each HTML file. Everything else cascades.
   ===================================================================== */

:root {
  /* --- Brand palette (edit these to rebrand) --- */
  --bg:       #ffffff;   /* page background                     */
  --ink:      #0f172a;   /* near-black slate (headings/text)    */
  --accent:   #7c3aed;   /* violet — primary accent             */
  --accent-2: #2563eb;   /* blue — secondary accent             */
  --muted:    #64748b;   /* muted body text                     */
  --surface:  #f6f7fc;   /* soft alt background / surfaces       */
  --line:     #e7e9f2;   /* borders / dividers                  */

  /* Derived dark tone for footer / dark bands */
  --ink-2:    #131a2e;

  /* --- Fonts --- */
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Shape & motion --- */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 24px 60px rgba(76, 29, 149, .16);
  --glow:      0 14px 50px rgba(124, 58, 237, .22);
  --ease:      .35s cubic-bezier(.4, 0, .2, 1);

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: #334155;
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-2); }

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

ul { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------------
   LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 92px 0; }
.section--soft { background: var(--surface); }
.section--tight { padding: 64px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 58, 237, .09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.12rem; color: #475569; }
.muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .32);
}
.btn-primary:hover { color: #fff; box-shadow: var(--glow); }

.btn-ghost {
  background: #fff;
  color: var(--accent);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-light:hover { background: #fff; color: var(--accent); }

/* ---------------------------------------------------------------------
   HEADER / NAV  (shared, identical IDs on every page)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  color: #475569;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { background: var(--surface); color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   AURORA GLOW (decorative, used in hero + banners)
   --------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.aurora::before {
  width: 520px; height: 520px;
  top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(124,58,237,.5), transparent 70%);
}
.aurora::after {
  width: 480px; height: 480px;
  bottom: -200px; left: -100px;
  background: radial-gradient(circle, rgba(37,99,235,.4), transparent 70%);
}

/* ---------------------------------------------------------------------
   HERO (home)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: 92px 0 96px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.hero-meta div span { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   SEARCH → AI ANSWER MOCKUP (pure CSS/SVG)
   --------------------------------------------------------------------- */
.search-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.search-mock .sm-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 16px;
}
.search-mock .sm-bar .sm-ic {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  color: var(--accent);
}
.search-mock .sm-bar .sm-q {
  font-size: .96rem;
  color: var(--ink);
  font-weight: 500;
  flex: 1;
}
.search-mock .sm-bar .sm-cursor {
  width: 2px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.search-mock .sm-answer {
  background: linear-gradient(180deg, rgba(124,58,237,.05), rgba(37,99,235,.04));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.search-mock .sm-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,58,237,.1);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.search-mock .sm-text { font-size: .94rem; color: #334155; margin-bottom: 6px; }
.search-mock .sm-text b { color: var(--ink); }
.search-mock .cite {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .7rem;
  color: var(--accent-2);
  background: rgba(37,99,235,.12);
  border-radius: 6px;
  padding: 1px 6px;
  vertical-align: super;
  margin: 0 2px;
}
.search-mock .sm-line {
  height: 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(124,58,237,.18), rgba(37,99,235,.1));
  margin-top: 9px;
}
.search-mock .sm-line.short { width: 62%; }

.search-mock .sm-sources {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.search-mock .sm-sources h5 {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.search-mock .src {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 8px;
}
.search-mock .src:last-child { margin-bottom: 0; }
.search-mock .src .src-ic {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: .9rem;
  background: var(--surface);
}
.search-mock .src .src-name { font-size: .82rem; font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.search-mock .src .src-meta { font-size: .72rem; color: var(--muted); }
.search-mock .src .num {
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  color: var(--accent-2);
  background: rgba(37,99,235,.12);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------------------------------------------------------------------
   TRUSTED-BY STRIP
   --------------------------------------------------------------------- */
.trusted { padding: 40px 0; border-bottom: 1px solid var(--line); }
.trusted p { text-align: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logo-strip {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 18px 46px;
}
.logo-strip span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--muted);
  opacity: .65;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--ease), color var(--ease);
}
.logo-strip span:hover { opacity: 1; color: var(--accent); }

/* ---------------------------------------------------------------------
   CARDS / GRIDS
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,.25); }

.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(37,99,235,.14));
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: #475569; margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
}
.card-link span { transition: transform var(--ease); }
.card-link:hover span { transform: translateX(4px); }

/* Feature list (ticks) */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(124,58,237,.3);
}
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { margin-bottom: 0; font-size: .98rem; }

/* ---------------------------------------------------------------------
   HOW IT WORKS — steps
   --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: .95rem; }

/* ---------------------------------------------------------------------
   STATS BAND
   --------------------------------------------------------------------- */
.stats-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-2), #2a1f5c 70%, var(--accent));
  color: #fff;
}
.stats-band .section-head h2 { color: #fff; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.stats-grid.four { grid-template-columns: repeat(4, 1fr); }
.stat strong {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  display: block;
  line-height: 1;
  background: linear-gradient(120deg, #fff, #c4b5fd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------------------------------------------------------------------
   TESTIMONIALS
   --------------------------------------------------------------------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
}
.quote-card .stars { color: #f59e0b; margin-bottom: 14px; letter-spacing: 2px; }
.quote-card blockquote {
  margin: 0 0 22px;
  font-size: 1.1rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.5;
}
.quote-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.quote-author b { display: block; font-family: var(--font-head); color: var(--ink); }
.quote-author span { font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 88% 12%, rgba(124,58,237,.45), transparent 60%),
    linear-gradient(135deg, var(--ink-2), #2a1f5c);
  color: #fff;
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   PAGE BANNER (inner pages)
   --------------------------------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), #fff);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { margin-bottom: 10px; }
.page-banner p { max-width: 620px; color: #475569; margin-bottom: 0; }
.breadcrumb {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ---------------------------------------------------------------------
   FEATURES PAGE — alternating blocks + mini visuals
   --------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .fr-media { order: 2; }
.feature-row .fr-copy .eyebrow { margin-bottom: 14px; }
.feature-row .fr-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.feature-row .pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature-row .pill-list li {
  font-size: .85rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--accent);
  background: rgba(124,58,237,.08);
  padding: 6px 13px;
  border-radius: 999px;
}

/* mini search/answer visual reused on feature rows */
.fr-media .search-mock { box-shadow: var(--shadow); }

/* Integrations grid */
.integrations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.integration {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.integration:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,.25); }
.integration .int-ic {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 1.25rem;
  background: var(--surface);
}
.integration b { font-family: var(--font-head); color: var(--ink); font-size: .98rem; display: block; }
.integration span { font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   PRICING
   --------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: transparent;
  box-shadow: var(--glow);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  border: 2px solid transparent;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card .tier { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.price-card .tier-sub { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.price-card .price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--ink);
  line-height: 1;
}
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card .price-note { font-size: .85rem; color: var(--muted); margin: 8px 0 24px; }
.price-card .btn { width: 100%; justify-content: center; margin-bottom: 24px; }
.price-list { display: grid; gap: 12px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .94rem; color: #475569; }
.price-list .ck {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.price-list li.off { color: var(--muted); }
.price-list li.off .ck { background: var(--line); color: var(--muted); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.faq h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--ink); }
.faq p { margin-bottom: 0; font-size: .96rem; }

/* ---------------------------------------------------------------------
   ABOUT — story split, values, team
   --------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 360px;
  background: linear-gradient(150deg, var(--ink-2), #2a1f5c 70%, var(--accent));
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  color: #fff;
  padding: 32px;
}
.split-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 300px at 80% 20%, rgba(124,58,237,.4), transparent 60%);
}

.value-card .icon { background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(37,99,235,.18)); }

.team-card { text-align: center; }
.team-card .team-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.team-card .team-photo.g1 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.team-card .team-photo.g2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.team-card .team-photo.g3 { background: linear-gradient(135deg, #db2777, #7c3aed); }
.team-card .team-photo.g4 { background: linear-gradient(135deg, #7c3aed, #f59e0b); }
.team-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.team-card .role { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.team-card p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }

/* ---------------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: #dc2626; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-weight: 500;
}
.form-status.show { display: block; }

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .info-ic {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 12px; background: #fff;
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.info-row b { font-family: var(--font-head); color: var(--ink); display: block; }
.info-row span { font-size: .94rem; }

/* Map placeholder */
.map-placeholder {
  border-radius: var(--radius);
  min-height: 240px;
  background:
    linear-gradient(rgba(124,58,237,.05), rgba(37,99,235,.05)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 42px),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  text-align: center;
  color: var(--muted);
}
.map-placeholder .pin { font-size: 2.4rem; }

/* ---------------------------------------------------------------------
   FOOTER (shared)
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-2);
  color: rgba(255,255,255,.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.footer-about p { font-size: .95rem; color: rgba(255,255,255,.7); max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  font-size: 1rem;
}
.social a:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------------
   SCROLL-REVEAL
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-io .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .integrations { grid-template-columns: repeat(3, 1fr); }
  .stats-grid.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .search-mock { max-width: 480px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px var(--gutter) 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .fr-media { order: 0; }
  .stats-grid, .stats-grid.four, .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .cta-band { padding: 44px 26px; }
}

@media (max-width: 480px) {
  .stats-grid, .stats-grid.four, .steps, .integrations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
}
