/* =================================================================
   Nucleus AI Labs — stylesheet
   Design system: light + electric indigo, amber CTAs, warm neutrals.
   Type: Bricolage Grotesque (display) / Hanken Grotesk (body).
   ================================================================= */

:root {
  /* color */
  --bg:          #FAFAF8;
  --bg-soft:     #F2F1EB;
  --white:       #FFFFFF;
  --ink:         #0E1116;
  --ink-soft:    #3C4250;
  --muted:       #6B7280;
  --border:      #E7E5DD;

  --indigo:      #4F46E5;
  --indigo-deep: #3A32C0;
  --indigo-tint: #EEEDFE;

  --amber:       #F59E0B;
  --amber-deep:  #D98306;

  /* type */
  --display: "Bricolage Grotesque", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;

  /* space + shape */
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1120px;
  --shadow:    0 1px 2px rgba(14,17,22,.04), 0 12px 32px -12px rgba(14,17,22,.12);
  --shadow-lift: 0 1px 2px rgba(14,17,22,.04), 0 24px 48px -16px rgba(79,70,229,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--indigo); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

.btn--cta {
  background: var(--amber); color: #3a2606;
  box-shadow: 0 8px 20px -8px rgba(245,158,11,.7);
}
.btn--cta:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(245,158,11,.8); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: inline-flex; }
.brand__mark .orbit { fill: none; stroke: var(--indigo); stroke-width: 1.6; opacity: .55; }
.brand__mark .core  { fill: var(--indigo); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__name span { color: var(--indigo); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-weight: 500; color: var(--ink-soft); font-size: .96rem; transition: color .15s; }
.nav__links a:hover { color: var(--indigo); }
.nav__cta { padding: 10px 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 92px 0 84px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% 0 auto 0; height: 620px; pointer-events: none;
  background:
    radial-gradient(620px 320px at 22% 18%, rgba(79,70,229,.16), transparent 70%),
    radial-gradient(520px 300px at 86% 6%, rgba(245,158,11,.12), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(14,17,22,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,17,22,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 50% 32%, #000, transparent 72%);
}
.hero__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--indigo);
  background: var(--indigo-tint); padding: 7px 14px; border-radius: 999px;
}
.hero__title { font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 800; margin: 22px 0 0; }
.hero__sub { font-size: clamp(1.1rem, 2.2vw, 1.32rem); color: var(--ink-soft); max-width: 640px; margin: 22px auto 0; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.hero__note strong { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 14px;
}
.kicker--light { color: #c7c3ff; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.lead { color: var(--ink-soft); font-size: 1.12rem; margin-top: 16px; }

/* ---------- problem ---------- */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.pain {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: 1.04rem; color: var(--ink-soft);
}
.pain__dot { flex: none; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: var(--amber); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin-bottom: 48px; }
.step {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; position: relative; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step__num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--indigo-tint); -webkit-text-stroke: 1.5px var(--indigo); }
.step h3 { font-size: 1.4rem; margin: 10px 0 8px; }
.step p { color: var(--ink-soft); }

/* ---------- deliverable ---------- */
.deliverable { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-soft); font-size: 1.06rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--indigo-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.card-doc {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-lift); transform: rotate(-1.2deg);
}
.card-doc__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--border); margin-bottom: 6px; }
.card-doc__tag { font-family: var(--display); font-weight: 700; }
.card-doc__co { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.card-doc__row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
.card-doc__row b { color: var(--ink); }
.card-doc__total { display: flex; justify-content: space-between; padding-top: 16px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.card-doc__total b { color: var(--indigo); }

/* ---------- use-case cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ucard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ucard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.ucard h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ucard p { color: var(--ink-soft); }

/* ---------- proof ---------- */
.proof { display: grid; gap: 44px; }
.proof__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; padding: 28px 16px; background: var(--bg-soft); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--indigo); letter-spacing: -.03em; }
.stat span { color: var(--ink-soft); font-size: .98rem; }
.founder {
  max-width: 800px; margin: 0 auto; text-align: center;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.32; letter-spacing: -.02em;
}
.founder footer { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--muted); margin-top: 22px; letter-spacing: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); padding: 92px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 320px at 50% -10%, rgba(79,70,229,.5), transparent 70%);
}
.cta-band__inner { position: relative; text-align: center; max-width: 680px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.cta-band p { color: #c8cad3; font-size: 1.12rem; margin-top: 14px; }
.cta-band .btn--cta { margin-top: 30px; }
.cta-band__fine { font-size: .95rem; margin-top: 22px; }
.cta-band__fine a { color: #c7c3ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 1.08rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; position: relative; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--indigo); border-radius: 2px; transition: transform .2s ease; }
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__item p { padding: 0 22px 22px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 50px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer__area { color: var(--ink-soft); font-weight: 500; }
.footer__contact a { color: var(--indigo); font-weight: 600; }
.footer__legal { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scoped under .js so content is fully visible if JavaScript is off or fails
   (matters for SEO crawlers and as a safety net). Animation is enhancement-only. */
.js .in-view { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .in-view.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .in-view { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .steps, .grid-cards, .proof__stats { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .deliverable { grid-template-columns: 1fr; gap: 36px; }
  .card-doc { transform: none; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}
