/* ------------------------------------------------------------------ *
 * AIVA sample one-pager stylesheet.
 *
 * Shared by every client sample in /samples/<slug>/index.html. Each page
 * only overrides the brand custom properties at the top of the document, so
 * the structure, spacing and conversion hierarchy stay identical across
 * samples - exactly how our one-pager product works.
 * ------------------------------------------------------------------ */

:root {
  --accent: #2563eb;
  --accent-dark: #1638a5;
  --tint: #eef4ff;
  --tint-2: #dce8ff;
  --ink: #0f172a;
  --body: #414b5a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.25);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* --- nav ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--tint-2); }
.btn-ghost:hover { background: var(--tint); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-white { background: #fff; color: var(--accent-dark); }

/* --- hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  background: linear-gradient(180deg, var(--tint) 0%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--tint);
  border: 1px solid var(--tint-2);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { font-size: 56px; }
.hero h1 .accent { color: var(--accent-dark); display: block; }
.hero p.lead { font-size: 19px; margin: 20px 0 32px; max-width: 30ch; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.hero-card .kpi { font-size: 52px; font-weight: 800; color: var(--accent-dark); letter-spacing: -0.03em; }
.hero-card .kpi-label { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.spark { display: block; width: 100%; height: 96px; }
.spark polyline { stroke: var(--accent); }

.hero-card .bars { display: flex; gap: 8px; margin-top: 18px; }
.hero-card .bars span { height: 8px; border-radius: 999px; background: var(--tint-2); background: color-mix(in srgb, var(--accent) 22%, #fff); }
.hero-card .bars span:nth-child(1) { width: 62px; }
.hero-card .bars span:nth-child(2) { width: 96px; background: var(--tint); background: color-mix(in srgb, var(--accent) 14%, #fff); }
.hero-card .bars span:nth-child(3) { width: 40px; background: var(--tint); background: color-mix(in srgb, var(--accent) 10%, #fff); }

/* --- trust -------------------------------------------------------- */
.trust { padding: 30px 0; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust .label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.trust .pill { padding: 8px 18px; border-radius: 999px; background: #f3f4f6; color: var(--muted); font-size: 13px; font-weight: 600; }

/* --- generic section --------------------------------------------- */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: 34px; }
.section-head p { margin-top: 12px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--tint);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

/* --- stats -------------------------------------------------------- */
.stats { background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat .value { font-size: 42px; font-weight: 800; color: var(--accent-dark); letter-spacing: -0.02em; }
.stat .label { color: var(--muted); font-size: 14px; }

/* --- testimonial -------------------------------------------------- */
.quote {
  background: var(--tint);
  border: 1px solid var(--tint-2);
  border-radius: 20px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.quote blockquote { margin: 0; font-size: 19px; color: var(--ink); flex: 1; min-width: 280px; }
.quote .who { color: var(--muted); font-size: 14px; margin-top: 12px; }
.quote .metric { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: 999px; }

/* --- CTA band ----------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 24px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta h2 { color: #fff; font-size: 28px; }
.cta p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.86); }

/* --- footer ------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer a { color: var(--accent-dark); font-weight: 600; }

/* --- AIVA attribution ribbon ------------------------------------- */
.aiva-note {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 30;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0.92;
}
.aiva-note a { color: #93c5fd; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 42px; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .cta { padding: 30px; }
  .quote { padding: 26px; }
}

