/* Lazzaro | DatAI, marketing landing
   Committed dark palette anchored on the shipped brand purple.
   Headings: Plus Jakarta Sans · Body: DM Sans (brand pairing, identity-preserving). */

/* impeccable-disable overused-font, single-font -- Plus Jakarta Sans is the confirmed brand font of the shipped datai-lazzaro product, paired with DM Sans. Intentional per brief (landing must match the app), not a greenfield reflex. */

:root {
  /* Surfaces */
  --bg: #0B0910;
  --bg-2: #100D18;
  --surface: #15121F;
  --surface-2: #1C1828;
  --border: #2A2438;
  --border-soft: rgba(255, 255, 255, 0.07);

  /* Ink */
  --ink: #F5F3FA;
  --ink-muted: #BCB6CC;
  --ink-dim: #9991A8;

  /* Brand purple, solid and intentional (never the cliche purple-to-blue gradient) */
  --brand: #7C3AED;
  --brand-deep: #6B21A8;
  --brand-bright: #A78BFA;
  --brand-ink: #FFFFFF;
  --brand-glow: rgba(124, 58, 237, 0.45);

  /* Functional status (mock only) */
  --pos: #34D399;
  --warn: #F5B544;

  /* Type */
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --fs-hero: clamp(2.6rem, 1.4rem + 5.2vw, 4.75rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.4vw, 2.8rem);
  --fs-h3: 1.22rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-metric: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* Radius */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Elevation */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
  --shadow-brand: 0 14px 40px rgba(124, 58, 237, 0.28);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-header: 50;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; line-height: 1.08; margin: 0; }
h1 { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h2 { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h3 { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
p { margin: 0; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand-bright); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Offset anchored sections below the sticky header */
section[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 100;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; color: var(--brand-ink); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.9rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r); border: 1px solid transparent;
  min-height: 48px; cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease),
              background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn--sm { --pad-y: 0.55rem; --pad-x: 1.05rem; min-height: 40px; font-size: 0.9rem; }
.btn--lg { --pad-y: 1.05rem; --pad-x: 2rem; font-size: 1.05rem; }

.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: #6d28d9; color: var(--brand-ink); transform: translateY(-2px); box-shadow: 0 18px 48px rgba(124, 58, 237, 0.42); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { color: var(--ink); border-color: var(--brand-bright); background: rgba(124, 58, 237, 0.08); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(11, 9, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { border-radius: 9px; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.site-nav { display: none; gap: 1.6rem; margin-left: auto; }
.site-nav a { color: var(--ink-muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }
.site-header .btn { margin-left: auto; }
.site-nav + .btn { margin-left: 0; }

@media (min-width: 820px) {
  .site-nav { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(4rem, 2.2rem + 9vw, 8.5rem); overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46rem 32rem at 78% 8%, var(--brand-glow), transparent 60%),
    radial-gradient(34rem 26rem at 8% 80%, rgba(107, 33, 168, 0.30), transparent 62%);
  filter: saturate(1.05);
  animation: glow-drift 18s var(--ease) infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.08); opacity: 1; }
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem); align-items: center;
}
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__brand {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--brand-bright); margin-bottom: 1.1rem;
}
.hero__brand::after {
  content: ""; display: block; width: 44px; height: 2px; margin-top: 0.8rem;
  background: linear-gradient(90deg, var(--brand-bright), transparent);
}
.hero__title {
  font-size: var(--fs-hero); letter-spacing: -0.025em;
  text-wrap: balance; max-width: 16ch; margin-bottom: 1.3rem;
}
.hero__lead { font-size: var(--fs-lead); color: var(--ink-muted); max-width: 52ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.4rem; }
.hero__chips li {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 500; color: var(--ink-muted);
  padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Panel (product preview + mock) ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.panel__dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3450; }
.panel__crumb {
  margin-left: 0.6rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-size: 0.82rem; color: var(--ink-muted); font-weight: 500;
}
.panel__body { padding: 1.25rem; }

.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.1rem; }
.kpi { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 0.85rem 0.95rem; }
.kpi__label { display: block; font-size: 0.74rem; color: var(--ink-dim); }
.kpi__val { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; margin-top: 0.15rem; }
.kpi__delta { font-size: 0.74rem; font-weight: 600; }
.kpi__delta--up { color: var(--pos); }

.spark { width: 100%; height: 96px; display: block; margin-bottom: 0.9rem; }

.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 70px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  opacity: 0.92;
}

/* ---------- Section heads ---------- */
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head__title { font-size: var(--fs-h2); letter-spacing: -0.02em; text-wrap: balance; }
.section-head__note { color: var(--ink-muted); margin-top: 0.85rem; font-size: var(--fs-lead); }

/* ---------- Metrics band ---------- */
.metrics { background: var(--bg-2); border-block: 1px solid var(--border-soft); padding-block: clamp(3.5rem, 2.4rem + 5vw, 6rem); }
.metric-ribbon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) { .metric-ribbon { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .metric-ribbon { grid-template-columns: repeat(6, 1fr); } }
.metric { background: var(--bg-2); padding: 1.5rem 1.35rem; display: flex; flex-direction: column; gap: 0.35rem; }
.metric__label { font-size: 0.82rem; color: var(--ink-muted); font-weight: 500; }
.metric__value { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-metric); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.metric__value--accent { color: var(--brand-bright); }
.metric__hint { font-size: 0.78rem; color: var(--ink-dim); }

/* ---------- Features ---------- */
.features { padding-block: clamp(4rem, 2.6rem + 6vw, 7.5rem); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.4); box-shadow: var(--shadow); }
.feature--lead { background: linear-gradient(160deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.02)); border-color: rgba(167, 139, 250, 0.32); }
@media (min-width: 720px) { .feature--lead { grid-column: 1 / -1; } }
.feature__icon { display: inline-flex; color: var(--brand-bright); margin-bottom: 1rem; }
.feature__icon svg { width: 30px; height: 30px; }
.feature__title { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.6rem; }
.feature--lead .feature__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }
.feature__text { color: var(--ink-muted); max-width: 64ch; }

/* ---------- Product view ---------- */
.product { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding-block: clamp(4rem, 2.6rem + 6vw, 7.5rem); }
.product__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 920px) { .product__grid { grid-template-columns: 0.85fr 1.15fr; } }
.product__lead { color: var(--ink-muted); font-size: var(--fs-lead); margin-top: 1rem; max-width: 48ch; }
.product__list { margin: 1.6rem 0 2rem; display: grid; gap: 0.8rem; }
.product__list li { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--pos { background: var(--pos); }
.dot--accent { background: var(--brand-bright); }
.dot--warn { background: var(--warn); }

.panel--full .panel__body { padding: 1.25rem clamp(1rem, 2vw, 1.5rem) 1.4rem; }
.mock-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
@media (min-width: 560px) { .mock-kpis { grid-template-columns: repeat(4, 1fr); } }
.mock-kpi { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 0.75rem 0.85rem; }
.mock-kpi span { display: block; font-size: 0.72rem; color: var(--ink-dim); }
.mock-kpi strong { display: block; font-family: var(--font-head); font-size: 1.2rem; font-variant-numeric: tabular-nums; margin-top: 0.2rem; }
.mock-kpi--accent { border-color: rgba(167, 139, 250, 0.4); }
.mock-kpi--accent strong { color: var(--brand-bright); }

.mock-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mock-table th { text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }
.mock-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border-soft); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.mock-table td:first-child { color: var(--ink); }
.mock-table tr:last-child td { border-bottom: none; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--pos { color: var(--pos); background: rgba(52, 211, 153, 0.12); }
.pill--warn { color: var(--warn); background: rgba(245, 181, 68, 0.12); }
.mock-foot { margin-top: 0.9rem; font-size: 0.76rem; color: var(--ink-dim); }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(4.5rem, 3rem + 7vw, 8rem); position: relative; }
.cta__inner { text-align: center; max-width: 44ch; margin-inline: auto; }
.cta__title { font-size: var(--fs-h2); letter-spacing: -0.02em; text-wrap: balance; }
.cta__lead { color: var(--ink-muted); font-size: var(--fs-lead); margin-top: 1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__name { font-family: var(--font-head); font-weight: 700; }
.site-footer__name span { color: var(--brand-bright); padding-inline: 0.15em; }
.site-footer__line { font-size: 0.86rem; color: var(--ink-dim); max-width: 42ch; }
.site-footer__meta { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; font-size: 0.86rem; }
.site-footer__meta span { color: var(--ink-dim); }
@media (min-width: 640px) { .site-footer__meta { align-items: flex-end; } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms var(--ease-out-expo), transform 560ms var(--ease-out-expo); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glow { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
