/* =====================================================================
   Nuvati Solutions — shared stylesheet
   Linked by index.html and prompts.html.
   Edit brand styles here once; every page updates.
   ===================================================================== */

:root {
  --paper:  #FAFAF9;
  --ink:    #0A1628;
  --steel:  #1A3A5C;
  --muted:  #5A6B7B;
  --signal: #2B6CB0;
  --line:   #D1D9E0;
  --frost:  #EAF1F8;

  --display: 'Plus Jakarta Sans', sans-serif;
  --body: 'Inter', sans-serif;

  --maxw: 1080px;
  --pad: clamp(1.5rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* blue dot motif (echoes the logo's exit dot) */
.dot { color: var(--signal); }

/* ---------------- NAV ---------------- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,250,249,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* logo: sized to sit centered inside the 68px bar, no overhang */
.brand img { height: 60px; width: auto; display: block; }
.nav-cta {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
  transition: color .2s ease;
}
.nav-cta:hover { color: var(--signal); }

/* ---------------- HERO ---------------- */
.hero { padding: clamp(4.5rem, 12vh, 9rem) 0 clamp(3.5rem, 8vh, 6rem); }
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.6rem;
}
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 15ch;
}
.hero-sub {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 300;
  color: var(--steel);
  max-width: 46ch;
  line-height: 1.55;
}
.hero-sub strong { font-weight: 500; color: var(--ink); }
.hero-cta-row {
  margin-top: 2.6rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hero-note {
  margin-top: 1.8rem;
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.55;
}
.friction {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 30ch;
  line-height: 1.5;
}

/* ---------------- SECTIONS ---------------- */
section.block { padding: clamp(3rem, 7vh, 5.5rem) 0; }
section.block.tint { background: var(--frost); }
.hr { height: 1px; background: var(--line); border: 0; }

.label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 20ch;
}
.lead {
  margin-top: 1.2rem;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--steel);
  max-width: 52ch;
}

/* who it's for (homepage) */
.fit-list { margin-top: 2rem; display: grid; gap: 0; max-width: 640px; }
.fit-item {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.fit-item:last-child { border-bottom: 1px solid var(--line); }
.fit-item .mark { color: var(--signal); font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.fit-item p { font-size: 1rem; color: var(--ink); }

/* how it works: listen / build (homepage) */
.steps { margin-top: 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.step .step-k {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.step .step-k::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal); flex-shrink: 0;
}
.step.two .step-k::before { background: var(--ink); }
.step p { color: var(--muted); font-size: 0.98rem; max-width: 34ch; }

/* what to expect (homepage dark panel) */
.expect {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: clamp(2rem, 5vw, 3.4rem);
}
.expect .label { color: #7FB0DD; }
.expect h2 { color: #fff; }
.expect ul { list-style: none; margin-top: 1.6rem; display: grid; gap: 1rem; max-width: 60ch; }
.expect li { display: flex; gap: 0.85rem; align-items: baseline; font-weight: 300; font-size: 1.05rem; color: #DCE4EC; }
.expect li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex-shrink: 0; transform: translateY(0.55rem); }

/* ---------------- PROMPTS PAGE: reading column + cards ---------------- */
.read { max-width: 720px; margin: 0 auto; }

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin: 1.5rem 0;
}
.card h2 {
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: none;
  margin-top: 0.2rem;
}
.when {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.5;
}

.promptbox {
  position: relative;
  margin-top: 1.4rem;
  background: var(--ink);
  border-radius: 10px;
  overflow: hidden;
}
.promptbox pre {
  margin: 0;
  padding: 1.3rem 1.4rem;
  color: #DCE4EC;
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.62;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.promptbox pre b { color: #fff; font-weight: 500; }
.copy {
  position: absolute; top: 0.8rem; right: 0.8rem;
  font-family: var(--body);
  font-size: 0.78rem; font-weight: 500;
  color: var(--ink); background: var(--frost);
  border: 0; border-radius: 6px;
  padding: 0.45rem 0.8rem; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.copy:hover { background: #fff; }
.copy.done { background: var(--signal); color: #fff; }

.catch { display: flex; gap: 0.85rem; margin-top: 1.3rem; }
.catch .rule { width: 3px; border-radius: 3px; background: var(--signal); flex-shrink: 0; }
.catch p { font-size: 0.96rem; color: var(--steel); line-height: 1.55; }
.catch .tag { font-weight: 500; color: var(--signal); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 6px;
  transition: transform .18s ease, background .2s ease;
}
.btn:hover { background: #245a94; transform: translateY(-1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------- CLOSING CTA ---------------- */
.close-cta { padding: clamp(4rem, 10vh, 7rem) 0; text-align: center; }
.close-cta h2 { margin: 0 auto; max-width: 24ch; }
.close-cta .lead { margin-left: auto; margin-right: auto; }
.close-cta .btn { margin-top: 2.2rem; }
.close-cta.color { background: var(--signal); }
.close-cta.color h2 { color: #fff; }
.close-cta.color .lead { color: #DCE9F6; }
.close-cta.color .dot { color: #fff; }
.close-cta.color .btn { background: #fff; color: var(--ink); }
.close-cta.color .btn:hover { background: var(--frost); }
.close-cta.tint { background: var(--frost); }

/* ---------------- FOOTER ---------------- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot-brand { font-family: var(--display); font-weight: 500; font-size: 1rem; }
.foot-meta { font-size: 0.88rem; color: var(--muted); }
.foot-meta a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-meta a:hover { color: var(--signal); border-color: var(--signal); }

/* ---------------- MOTION ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav-cta { display: none; }
  .hero-cta-row { gap: 1.1rem; }
  .card { padding: 1.4rem 1.2rem; }
}
