@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:       #1F3864;
  --navy-dark:  #152548;
  --navy-light: #2a4d88;
  --orange:     #C55A11;
  --orange-lt:  #FCE4D6;
  --teal:       #1E7278;
  --teal-lt:    #E2F0F0;
  --white:      #FFFFFF;
  --off-white:  #F8F7F4;
  --gray-100:   #F2F0EB;
  --gray-200:   #E0DDD5;
  --gray-400:   #9C9A94;
  --gray-600:   #5A5854;
  --gray-900:   #1C1B18;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'Outfit', system-ui, sans-serif;
  --radius:     4px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(31,56,100,.08);
  --shadow-lg:  0 8px 40px rgba(31,56,100,.14);
  --transition: 0.22s ease;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--sans); }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { font-size: 1rem; color: var(--gray-600); line-height: 1.8; }
strong { font-weight: 600; color: var(--gray-900); }

.overline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}

.lead {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 640px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 780px; }
.section { padding: 6rem 0; }
.section--sm { padding: 4rem 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.7); }
.section--off { background: var(--off-white); }
.section--teal { background: var(--teal); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2rem;
  max-width: 1140px;
  margin: 0 auto;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__logo-mark span {
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: var(--sans);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--navy); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-100);
  border-radius: 20px;
  padding: 3px;
  margin-left: 1rem;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 10rem 0 6rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(30,114,120,.15);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(197,90,17,.1);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: #F0C080; }
.hero .lead { color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; }
.hero__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.hero__stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  min-width: 160px;
}
.hero__stat-val {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero__stat-val em { color: #F0C080; font-style: normal; }
.hero__stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: #a84a0d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(197,90,17,.35); }
.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline-dark {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.arrow { display: inline-block; transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.card p { font-size: 0.925rem; }

/* ── STAT CARDS ─────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.stat-card__val {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.stat-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}
.stat-card__desc { font-size: 0.875rem; }

/* ── EFFECT SIZE BARS ───────────────────────────────────── */
.effect-bar {
  margin-bottom: 2rem;
}
.effect-bar__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.effect-bar__label { font-weight: 500; font-size: 0.95rem; color: var(--gray-900); }
.effect-bar__val { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); }
.effect-bar__track {
  height: 10px;
  background: var(--gray-100);
  border-radius: 5px;
  overflow: hidden;
}
.effect-bar__fill {
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1.2s cubic-bezier(.22,.68,0,1.2);
}
.effect-bar__fill--orange { background: var(--orange); }
.effect-bar__fill--teal   { background: var(--teal); }
.effect-bar__fill--navy   { background: var(--navy); }
.effect-bar__sub { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.4rem; }

/* ── SECTION INTRO ───────────────────────────────────────── */
.section-intro { max-width: 600px; margin-bottom: 4rem; }
.section-intro .overline { margin-bottom: 0.75rem; }
.section-intro h2 { color: var(--navy); margin-bottom: 1rem; }

/* ── PRINCIPLE ROWS ──────────────────────────────────────── */
.principle {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}
.principle:last-child { border-bottom: none; }
.principle__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gray-200);
  flex-shrink: 0;
  width: 60px;
  text-align: right;
}
.principle__body h3 { color: var(--navy); margin-bottom: 0.5rem; }

/* ── FAILURE GRID ────────────────────────────────────────── */
.failure-card {
  background: var(--off-white);
  border-left: 3px solid var(--orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.failure-card h4 { color: var(--navy); margin-bottom: 0.4rem; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; }
.failure-card p { font-size: 0.85rem; }

/* ── COMPARISON ──────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.compare__col { padding: 2rem; }
.compare__col--bad { background: #FFF5F5; border-right: 1px solid var(--gray-200); }
.compare__col--good { background: #F0FAF8; }
.compare__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}
.compare__tag--bad { background: #FFE4E4; color: #922; }
.compare__tag--good { background: #D4EDE8; color: #0F6E56; }
.compare__text { font-size: 1rem; line-height: 1.7; color: var(--gray-900); font-style: italic; }

/* ── STEPS ───────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.step-item:last-child::before { display: none; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-body h4 { color: var(--navy); margin-bottom: 0.4rem; font-family: var(--sans); font-weight: 600; }
.step-body p { font-size: 0.9rem; }

/* ── QUOTE / CALLOUT ─────────────────────────────────────── */
.callout {
  background: var(--teal-lt);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.callout p { color: var(--gray-900); font-size: 1rem; }
.callout strong { color: var(--teal); }

.prompt-box {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.prompt-box::before {
  content: 'Sample prompt';
  position: absolute;
  top: -10px; left: 1.5rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.prompt-box em { color: #F0C080; font-style: normal; }

/* ── BIO CARDS ───────────────────────────────────────────── */
.bio-card { display: flex; gap: 2.5rem; align-items: flex-start; }
.bio-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--gray-100);
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gray-400);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-content h3 { color: var(--navy); margin-bottom: 0.25rem; }
.bio-role { font-size: 0.85rem; color: var(--orange); font-weight: 600; margin-bottom: 1rem; }
.bio-links { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.bio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  border: 1px solid var(--teal-lt);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all var(--transition);
}
.bio-link:hover { background: var(--teal); color: var(--white); }
.bio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* ── PUBLICATION ITEM ────────────────────────────────────── */
.pub-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.pub-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 4px;
}
.pub-badge--pub { background: var(--teal-lt); color: var(--teal); }
.pub-badge--wip { background: var(--orange-lt); color: var(--orange); }
.pub-item p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.pub-item cite { font-style: normal; font-size: 0.8rem; color: var(--gray-400); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0;
  font-size: 0.875rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand { color: rgba(255,255,255,0.9); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(30,114,120,0.12);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.7); }
.page-hero .overline { color: #F0C080; margin-bottom: 1rem; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 3rem 0; }
.divider--dark { border-color: rgba(255,255,255,0.12); }

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.badge--orange { background: var(--orange-lt); color: var(--orange); }
.badge--teal { background: var(--teal-lt); color: var(--teal); }
.badge--navy { background: rgba(31,56,100,0.1); color: var(--navy); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .bio-card { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 680px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow);
  }
  .nav__hamburger { display: flex; }
  .lang-toggle { margin-left: 0; }
  .hero { padding: 8rem 0 4rem; }
  .hero__stats { flex-direction: column; gap: 1rem; }
  .compare { grid-template-columns: 1fr; }
  .compare__col--bad { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .section { padding: 4rem 0; }
  .principle { flex-direction: column; gap: 0.75rem; }
  .principle__num { font-size: 2rem; width: auto; text-align: left; }
}
