/* ============================================================
   Inventopedia.ai — Soft Launch Site
   Visual system: Health Copilot AI brand cascade
   (slate ink #1E293B lead · maroon #780003 signature accent ·
    cool-slate mesh · glass surfaces · Inter + Lora)
   Logo-derived blue used sparingly as the AI/.ai cue.
   ============================================================ */

:root {
  /* HCAI primitives */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  --maroon:        #780003;   /* HCAI signature secondary */
  --maroon-hover:  #600002;
  --maroon-soft:   #FDF2F2;
  --rose:          #B87C7C;

  /* logo-derived cool accent — used sparingly */
  --ai-blue:  #226A9B;
  --ai-cyan:  #3AACC6;

  --ink:    var(--slate-900);
  --text:   var(--slate-800);
  --muted:  var(--slate-500);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 9999px;

  --sh-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --sh-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.05);
  --sh-xl: 0 24px 48px rgba(15,23,42,.14), 0 8px 16px rgba(15,23,42,.06);

  --glass-bg: rgba(255,255,255,.72);
  --glass-bd: rgba(30,41,59,.10);

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` (not `hidden`): contains horizontal overflow WITHOUT turning <body>
     into a scroll container. `overflow-x: hidden` here forces overflow-y to a
     scrollable value, which (with scroll-behavior: smooth) traps the scroll
     after an in-page anchor jump so you can't scroll back to the top. */
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }

.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; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- shared atoms ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--maroon);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: 13px 22px; cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--maroon); color: #fff; box-shadow: 0 10px 22px rgba(120,0,3,.20); }
.btn--primary:hover { background: var(--maroon-hover); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(120,0,3,.26); }
.btn--ghost { background: transparent; color: var(--slate-700); border-color: var(--slate-200); }
.btn--ghost:hover { background: var(--slate-50); border-color: var(--slate-300); color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: auto; display: block; }
.brand__word { font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; }
.brand__ai { color: var(--ai-cyan); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: var(--slate-600);
  background: var(--slate-100); border: 1px solid var(--slate-200);
  padding: 6px 13px; border-radius: var(--r-pill);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ai-cyan); box-shadow: 0 0 0 0 rgba(58,172,198,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(58,172,198,.5);} 70%{box-shadow:0 0 0 8px rgba(58,172,198,0);} 100%{box-shadow:0 0 0 0 rgba(58,172,198,0);} }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-100);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
}
.nav__right { display: flex; align-items: center; gap: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 140%;
  background:
    radial-gradient(40% 50% at 18% 12%, rgba(58,172,198,.16), transparent 70%),
    radial-gradient(45% 55% at 82% 8%, rgba(34,106,155,.14), transparent 72%),
    radial-gradient(38% 48% at 88% 78%, rgba(120,0,3,.07), transparent 70%),
    linear-gradient(180deg, var(--slate-50) 0%, var(--white) 60%);
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 72px 24px 84px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero__copy { max-width: 600px; }
.hero__title {
  margin-top: 18px;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
}
.title-accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  color: var(--maroon); letter-spacing: -.01em;
}
.hero__lede {
  margin-top: 22px; font-size: 1.18rem; color: var(--slate-600); max-width: 540px;
}

.notify {
  margin-top: 30px; display: flex; gap: 10px; max-width: 480px;
}
.notify input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--r-md);
  padding: 13px 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.notify input::placeholder { color: var(--slate-500); }
.notify input:focus { border-color: var(--ai-blue); box-shadow: 0 0 0 3px rgba(34,106,155,.12); }
.notify--center { margin-left: auto; margin-right: auto; }
.notify.is-success input { border-color: var(--ai-cyan); background: #f5fbfc; }

.notify__hint { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.notify__hint.is-success { color: var(--ai-blue); font-weight: 600; }

.trust {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .9rem; font-weight: 500; color: var(--slate-700);
}
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/11px no-repeat,
    var(--ai-blue);
}

/* hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero__halo {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,172,198,.22), rgba(34,106,155,.10) 55%, transparent 72%);
  filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}
.hero__bulb {
  position: relative; width: min(82%, 360px); height: auto;
  filter: drop-shadow(0 24px 48px rgba(15,23,42,.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ---------- promise band ---------- */
.band {
  max-width: 880px; margin: 0 auto; padding: 76px 24px;
  text-align: center;
}
.band__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); }
.band__statement {
  margin-top: 16px; font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 600;
  color: var(--ink); line-height: 1.35; letter-spacing: -.02em;
}
.band__statement strong { color: var(--maroon); font-weight: 700; }
.band__statement em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--slate-700); }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.section--alt {
  max-width: none;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}
.section--alt .section__head, .section--alt .cards { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { margin-top: 14px; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.section__head p { margin-top: 16px; font-size: 1.1rem; color: var(--slate-600); }

/* ---------- steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.step {
  position: relative; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--slate-300); }
.step:hover::after { transform: scaleX(1); }
.step__n { font-size: .82rem; font-weight: 700; color: var(--ai-blue); letter-spacing: .06em; }
.step h3 { margin: 10px 0 8px; font-size: 1.2rem; font-weight: 700; }
.step p { font-size: .92rem; color: var(--slate-600); line-height: 1.5; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--r-xl); padding: 32px 28px; box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--slate-800); background: var(--slate-100); border: 1px solid var(--slate-200);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--slate-600); }

/* ---------- editorial quote ---------- */
.quote { max-width: 880px; margin: 0 auto; padding: 30px 24px 70px; text-align: center; }
.quote__line {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.35; color: var(--slate-700);
  letter-spacing: -.01em;
}

/* ---------- closing CTA ---------- */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 100px; }
.cta__card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(160deg, var(--slate-900), var(--slate-800) 60%, #20303f);
  color: var(--white); border-radius: var(--r-2xl);
  padding: 72px 32px; box-shadow: var(--sh-xl);
}
.cta__card::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(58,172,198,.28), transparent 65%);
}
.cta__card::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  bottom: -180px; left: -100px;
  background: radial-gradient(circle, rgba(120,0,3,.30), transparent 68%);
}
.cta__card h2 { position: relative; color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.cta__card p { position: relative; margin: 16px auto 30px; max-width: 520px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.cta__card .notify { position: relative; }
.cta__card .notify input { background: rgba(255,255,255,.95); border-color: transparent; }
.cta__card .notify__hint { color: rgba(255,255,255,.6); }
.cta__card .notify__hint.is-success { color: var(--ai-cyan); }

/* ---------- footer ---------- */
.footer { background: var(--slate-900); color: var(--white); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 52px 24px; text-align: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; }
.footer__mark { width: 26px; height: auto; }
.footer__tag { margin-top: 14px; color: rgba(255,255,255,.66); font-size: .98rem; }
.footer__small { margin-top: 8px; color: rgba(255,255,255,.38); font-size: .78rem; }
.footer__hcai { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__hcai-mark { width: 40px; height: auto; opacity: .85; }
.footer__meta { margin: 0; color: rgba(255,255,255,.55); font-size: .86rem; letter-spacing: .01em; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; padding-top: 44px; padding-bottom: 60px; }
  .hero__visual { order: -1; min-height: 220px; }
  .hero__bulb { width: 180px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
}
@media (max-width: 540px) {
  .section { padding: 60px 20px; }
  .steps { grid-template-columns: 1fr; }
  .notify { flex-direction: column; }
  .notify .btn { width: 100%; }
  .pill { display: none; }
  .cta__card { padding: 52px 22px; }
}
