/* ==========================================================================
   Sudanil AI — "Dialog" system
   Neutral showroom, one warm price tag. Every surface is a tone of off-white;
   the tangerine CTA is the only color in the room.
   ========================================================================== */

:root {
  /* Colors — Dialog tokens */
  --tangerine: #f69251;   /* CTA fill ONLY. Never text, icons, decoration. */
  --ink: #181825;         /* body text on light, borders */
  --graphite: #484758;    /* secondary body, meta */
  --slate: #242433;       /* the one dark band */
  --carbon: #000000;      /* headings */
  --stone: #636363;       /* supporting body, nav labels */
  --pebble: #949494;      /* muted, placeholder */
  --ash: #8b8b8b;         /* faint borders, tertiary */
  --fog: #f7f7f7;         /* page canvas */
  --snow: #ffffff;        /* card surfaces */

  /* Type */
  --font-display: 'BJCree', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --text-display: clamp(40px, 6.2vw, 70px);
  --text-heading-lg: clamp(32px, 4.2vw, 50px);
  --text-heading-sm: 24px;
  --text-subheading: 18px;
  --text-body: 16px;
  --text-caption: 12px;

  /* Shape — pills are the only rounded UI element */
  --radius-cards: 24px;
  --radius-buttons: 28px;
  --radius-badges: 100px;
  --radius-nav: 32px;
  --radius-inner: 12px;

  /* Shadows — edge definition, not elevation */
  --shadow-card: rgba(24, 24, 37, 0.12) 0px 2px 3px -2px;
  --shadow-button: rgba(0, 0, 0, 0.04) 0px 1px 2px 0px, rgba(0, 0, 0, 0.02) 0px 2px 4px 0px, rgba(0, 0, 0, 0.02) 0px 4px 8px 0px;

  /* Layout */
  --page-max: 1200px;
  --gutter: 24px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type roles -------------------------------------------------------------- */
.display, .h-lg {
  font-family: var(--font-display);
  font-weight: 600; /* BJCree semibold: Osman's pick, bolder presence */
  color: var(--carbon);
}
.display {
  font-size: var(--text-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h-lg {
  font-size: var(--text-heading-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--graphite);
  background: var(--snow);
  border-radius: var(--radius-badges);
  padding: 6px 14px;
  box-shadow: var(--shadow-card);
}
.lede {
  font-size: var(--text-subheading);
  line-height: 1.5;
  color: var(--stone);
  max-width: 56ch;
}
.micro {
  font-size: 13px;
  color: var(--pebble);
}

/* Buttons — the pill is the only soft shape ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-buttons);
  padding: 13px 26px;
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.btn-primary {
  background: var(--tangerine);
  color: var(--carbon);
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: rgba(0,0,0,0.08) 0 2px 4px 0, rgba(0,0,0,0.04) 0 4px 8px 0; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--snow);
  color: var(--carbon);
  box-shadow: var(--shadow-button);
}
.btn-ghost:hover { transform: translateY(-1px); }

/* Nav — floating white pill ----------------------------------------------- */
.nav-shell {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding-inline: var(--gutter);
}
.nav {
  max-width: var(--page-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--snow);
  border-radius: var(--radius-nav);
  padding: 10px 12px 10px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease;
}
.nav.is-scrolled { box-shadow: rgba(24,24,37,0.16) 0 4px 14px -6px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 19px;
  color: var(--carbon);
}
.brand img { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--stone);
  padding: 8px 12px;
  border-radius: var(--radius-badges);
  transition: color 140ms ease, background-color 140ms ease;
}
.nav-links a:hover { color: var(--carbon); background: var(--fog); }
.nav .btn { padding: 10px 20px; font-size: 14px; }

/* Hero — center stack ------------------------------------------------------ */
.hero {
  padding-block: clamp(88px, 14vh, 150px) clamp(64px, 9vh, 110px);
  text-align: center;
}
.hero .kicker { margin-bottom: 28px; }
.hero h1 {
  max-width: 21ch; /* BJCree sets wide; 21ch keeps the H1 to three lines */
  margin-inline: auto;
}
.hero .lede {
  margin: 24px auto 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero .micro { margin-top: 18px; }

/* Social proof — the stack strip ------------------------------------------ */
.proof-strip {
  padding-block: 8px 96px;
  text-align: center;
}
.proof-strip .micro {
  font-size: 13px;
  font-weight: 500;
  color: var(--pebble);
  margin-bottom: 28px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 44px;
}
.logo-row .tool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ash);
  transition: color 160ms ease;
}
.logo-row .tool:hover { color: var(--graphite); }
.logo-row svg { width: 22px; height: 22px; flex: none; }
.logo-row .tool span {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.proof-strip .agency-line {
  margin-top: 44px;
  font-size: 15px;
  color: var(--stone);
}
.proof-strip .agency-line strong {
  color: var(--carbon);
  font-weight: 500;
}

/* Generic section rhythm --------------------------------------------------- */
.section { padding-block: 96px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .kicker { margin-bottom: 20px; }
.section-head .lede { margin-top: 16px; font-size: var(--text-body); }

/* Cards -------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--snow);
  border-radius: var(--radius-cards);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: 500;
  color: var(--carbon);
  line-height: 1.3;
  margin-bottom: 12px;
}
.card p { font-size: 15px; color: var(--stone); }

/* How it works — numbered steps (a real sequence) -------------------------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding-block: 36px;
  position: relative;
}
/* the top rule draws itself in as each step reveals */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(24, 24, 37, 0.1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.4, 0, 0.2, 1);
}
.step.is-in::before { transform: scaleX(1); }
.steps .step:nth-child(2).is-in::before { transition-delay: 140ms; }
.steps .step:nth-child(3).is-in::before { transition-delay: 280ms; }
.step:last-child { border-bottom: 1px solid rgba(24, 24, 37, 0.1); }
.step-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--pebble);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-heading-sm);
  color: var(--carbon);
  margin-bottom: 8px;
}
.step p { color: var(--stone); max-width: 58ch; }
.step-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--pebble);
}

/* Proof — two cards, one voice --------------------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.proof-card {
  background: var(--snow);
  border-radius: var(--radius-cards);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.proof-card blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--carbon);
}
.proof-facts {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  background: var(--fog);
  border-radius: var(--radius-inner);
}
.proof-facts li {
  font-size: 14px;
  color: var(--graphite);
  padding-inline-start: 16px;
  position: relative;
}
.proof-facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ash);
}
.proof-byline {
  margin-top: auto;
  font-size: 14px;
  color: var(--stone);
}
.proof-byline strong { color: var(--carbon); font-weight: 500; }

/* Final CTA — the one dark band -------------------------------------------- */
.final {
  background: var(--slate);
  border-radius: var(--radius-cards);
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 88px);
  text-align: center;
  margin-block: 24px 96px;
}
.final h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-heading-lg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--snow);
  max-width: 20ch;
  margin-inline: auto;
}
.final .lede {
  color: #b8b7c4;
  margin: 20px auto 36px;
}
.final .micro { color: #8f8e9e; margin-top: 18px; }

/* Footer ------------------------------------------------------------------- */
.footer {
  padding-block: 0 56px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(24, 24, 37, 0.1);
}
.footer .brand { font-size: 16px; }
.footer .brand img { width: 27px; height: 27px; }
.footer-nav {
  display: flex;
  gap: 20px;
  margin-inline-start: auto;
}
.footer-nav a { font-size: 13.5px; color: var(--stone); }
.footer-nav a:hover { color: var(--carbon); }
.footer .legal {
  width: 100%;
  font-size: 12.5px;
  color: var(--pebble);
  margin-top: 8px;
}

/* Scroll reveal ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Staggered items (problem cards, steps). Uses `translate` so it never
   fights the hover `transform`. */
.reveal-item { opacity: 0; }
.reveal-item.is-in { animation: riseIn 560ms ease both; }
@keyframes riseIn {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
.card-grid .reveal-item:nth-child(2).is-in { animation-delay: 120ms; }
.card-grid .reveal-item:nth-child(3).is-in { animation-delay: 240ms; }
.steps .reveal-item:nth-child(2).is-in { animation-delay: 140ms; }
.steps .reveal-item:nth-child(3).is-in { animation-delay: 280ms; }

/* Cards lift on hover (problem + proof) */
.card, .proof-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.card-grid .card:hover,
.proof-grid .proof-card:hover {
  transform: translateY(-3px);
  box-shadow: rgba(24, 24, 37, 0.12) 0 4px 8px -2px;
}

/* Proof cards stagger like the problem cards */
.proof-grid .reveal-item:nth-child(2).is-in { animation-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-item { opacity: 1; }
  .reveal-item.is-in { animation: none; }
  .step::before { transform: scaleX(1); transition: none; }
  .card, .proof-card,
  .card-grid .card:hover, .proof-grid .proof-card:hover { transition: none; transform: none; }
  .btn, .nav { transition: none; }
}

/* Mobile — a deliberate pass, not a squeeze -------------------------------- */
@media (max-width: 860px) {
  .card-grid, .proof-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step-num { font-size: 30px; }
  .section { padding-block: 64px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }           /* nav = brand + CTA only */
  .nav { gap: 12px; }
  .nav .btn { margin-inline-start: auto; }
  .hero { padding-block: 72px 48px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .logo-row { gap: 14px 24px; }
  .logo-row .tool span { font-size: 13px; }
  .proof-card { padding: 26px; }
  .proof-card blockquote { font-size: 19px; }
  .final { margin-block: 8px 64px; }
  .final .btn { width: 100%; }
  .footer-nav { margin-inline-start: 0; }
}
