/* ==========================================================================
   ImagineAI - imagine-ai.io
   Operator-grade static site. Vanilla CSS, mobile-first.
   Breakpoints: 768px, 1200px. Nav collapses below 960px.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #1B3A6B;
  --blue: #2563EB;
  --amber: #D97706;
  --amber-dark: #B8650A;
  --bg-light: #F3F6FB;
  --border: #E5EAF3;
  --text: #374151;
  --text-soft: #4B5563;
  --white: #FFFFFF;
  --footer-navy: #0F2347;
  --footer-bar: #081528;

  --fs-hero: 44px;
  --fs-section: 34px;
  --fs-final: 38px;
  --fs-subhead: 20px;
  --fs-body: 17px;
  --fs-nav: 15px;
  --fs-eyebrow: 11px;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
  --section-y: 96px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 71, 0.04);
  --shadow-card: 0 6px 30px rgba(15, 35, 71, 0.07);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
#what-changes { scroll-margin-top: 80px; }
#how-it-works { scroll-margin-top: 80px; }
#industries { scroll-margin-top: 80px; }
.section--light { background: var(--bg-light); }
.section--navy { background: var(--navy); color: var(--white); }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-section);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 20px;
  font-weight: 400;
}
.section--navy .section-title { color: var(--white); }

.lead { font-size: var(--fs-body); color: var(--text-soft); max-width: 68ch; }
.section--navy .lead { color: rgba(255, 255, 255, 0.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn--amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.25);
}
.btn--amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--block { width: 100%; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo img { width: 140px; height: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--navy);
}
.nav__links a:hover { color: var(--blue); }
.nav__cta { display: flex; align-items: center; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

.nav__drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 84vw);
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 120;
  padding: 88px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__drawer.open { transform: translateX(0); }
.nav__drawer a {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav__drawer .btn { margin-top: 22px; }
.nav__drawer-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none; border: 0; cursor: pointer;
  font-size: 32px; line-height: 1; color: var(--white);
}
.nav__overlay {
  position: fixed; inset: 0;
  background: rgba(15, 35, 71, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 110;
}
.nav__overlay.open { opacity: 1; visibility: visible; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 28%, rgba(37, 99, 235, 0.18), transparent 56%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: block;
}
.hero__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 22px;
}
.hero__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 24px;
  font-weight: 400;
}
.hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
  margin: 0 0 20px;
}
.hero__outcome {
  font-size: 15px;
  line-height: 1.55;
  color: var(--amber);
  max-width: 54ch;
  margin: 0 0 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.hero__note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 48ch;
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats { background: var(--white); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: 1fr; }
.stat {
  text-align: center;
  padding: 40px 24px;
  border-bottom: 1px solid var(--border);
}
.stat:last-child { border-bottom: 0; }
.stat__num {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 12px;
}
.stat__num span { color: var(--amber); }
.stat__label { font-size: 15px; color: var(--text-soft); max-width: 26ch; margin: 0 auto; }

/* ==========================================================================
   CARD GRIDS
   ========================================================================== */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
.grid--tight { margin-top: 38px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); margin-bottom: 18px; }
.card__title { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 10px; }
.card__body { font-size: 15.5px; color: var(--text-soft); margin: 0; }

.pullquote {
  background: var(--bg-light);
  border-left: 4px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 26px 30px;
  margin: 36px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
  color: var(--navy);
}

.prose p { font-size: var(--fs-body); color: var(--text-soft); max-width: 68ch; }

/* ==========================================================================
   CONTENT IMAGES
   ========================================================================== */
.content-figure { margin: 0; }
.content-figure--center { margin-left: auto; margin-right: auto; }
.content-img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 32px auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.section--light .content-img { background: var(--white); }
.content-cap { font-size: 13px; color: var(--text-soft); margin: 12px 0 0; text-align: center; }
.content-figure--narrow { max-width: none; }

/* ==========================================================================
   REVENUE FRICTION MAPPING
   ========================================================================== */
.rfm-box {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 36px;
}
.rfm-box__left { padding: 38px 34px; }
.rfm-box__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin: 0 0 22px;
}
.rfm-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.rfm-item:first-of-type { padding-top: 0; }
.rfm-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rfm-item__title { font-weight: 600; color: var(--navy); margin: 0; }
.rfm-item__num { font-family: var(--serif); font-size: 16px; color: var(--amber); margin-right: 8px; }
.rfm-item__body { font-size: 15px; color: var(--text-soft); margin: 4px 0 0; }
.rfm-box__right {
  background: var(--navy);
  color: var(--white);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.rfm-box__right p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  color: var(--white);
  margin: 0;
}

/* ==========================================================================
   SIX STEPS
   ========================================================================== */
.steps { margin-top: 38px; border-top: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step__num { font-family: var(--serif); font-size: 30px; color: var(--amber); line-height: 1; }
.step__title { font-size: 19px; font-weight: 600; color: var(--navy); margin: 2px 0 8px; }
.step__body { font-size: 15.5px; color: var(--text-soft); margin: 0; max-width: 72ch; }

/* ==========================================================================
   WHAT CHANGES
   ========================================================================== */
.outcome {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.outcome__num { font-family: var(--serif); font-size: 18px; color: var(--amber); }
.outcome__lead { font-size: 17px; font-weight: 600; color: var(--navy); margin: 6px 0 12px; line-height: 1.35; }
.outcome__body { font-size: 15.5px; color: var(--text-soft); margin: 0; }

/* ==========================================================================
   FROM THE FIELD
   ========================================================================== */
.quote {
  background: var(--bg-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 30px 32px;
  margin: 0;
}
.quote__text { font-size: 16.5px; line-height: 1.6; color: var(--text); margin: 0 0 18px; }
.quote__cite { font-size: 14px; font-weight: 600; color: var(--navy); font-style: normal; }

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.industry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.industry__engagement {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.industry__name { font-size: 18px; font-weight: 600; color: var(--navy); }
.industry__link { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); }
.industry__link:hover { text-decoration: underline; }
.industries__note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-soft);
}

/* ==========================================================================
   MIOSA
   ========================================================================== */
.miosa__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.miosa__attr { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin: 24px 0 16px; }
.miosa__link { color: var(--amber); font-weight: 600; font-size: 15px; }
.miosa__link:hover { text-decoration: underline; }
.miosa__visual { width: 100%; max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   CENTERED CTA SECTIONS
   ========================================================================== */
.center-block { max-width: 560px; margin: 0 auto; text-align: center; }
.center-block .lead { margin-left: auto; margin-right: auto; }
.final-title { font-family: var(--serif); font-size: var(--fs-final); line-height: 1.15; color: var(--white); margin: 0 0 18px; font-weight: 400; }
.final-sub { color: rgba(255, 255, 255, 0.7); margin: 0 0 32px; }
.final-contact { font-size: 12px; color: rgba(255, 255, 255, 0.35); margin-top: 26px; }
.final-contact a { color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--footer-navy); color: rgba(255, 255, 255, 0.7); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
.footer__brand { font-family: var(--serif); font-size: 26px; color: var(--white); margin: 0 0 16px; }
.footer__col h4 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4); margin: 0 0 16px; font-weight: 600;
}
.footer__col a, .footer__col p { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin: 0 0 10px; }
.footer__col a:hover { color: var(--white); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__miosa { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.55); }
.footer__bar { background: var(--footer-bar); }
.footer__bar p { margin: 0; padding: 18px 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); text-align: center; }

/* ==========================================================================
   SCROLL FADE-IN
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE - 768px and up
   ========================================================================== */
@media (min-width: 768px) {
  .hero__title { font-size: var(--fs-hero); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--border); }
  .stat:last-child { border-right: 0; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rfm-box { grid-template-columns: 1.25fr 1fr; }
  .step { grid-template-columns: 64px 1fr; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1.3fr; }
}

/* ==========================================================================
   RESPONSIVE - 1200px and up
   ========================================================================== */
@media (min-width: 1200px) {
  .miosa__grid { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   NAV COLLAPSE
   ========================================================================== */
@media (max-width: 959px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
