/* ============================================================
   TargetGen AI — Shared Design System
   Navy + beige, executive consulting-grade.
   Loaded by index.html, book.html, info.html, anurag/index.html
   ============================================================ */

:root {
  /* ----- Palette ----- */
  --ink:         #0B1B2E;   /* primary deep navy bg            */
  --navy-900:    #081522;   /* deepest navy (gradient, footer) */
  --navy-800:    #11263D;   /* cards / panels on dark          */
  --navy-700:    #1B3550;   /* borders / hover on dark         */
  --cream:       #F4EEE0;   /* warm beige secondary bg         */
  --paper:       #FBF8F1;   /* soft off-white section bg       */
  --gold:        #C2A15B;   /* muted gold accent               */
  --gold-strong: #B08F46;   /* gold hover / pressed            */
  --gold-soft:   rgba(194,161,91,0.12);
  --slate:       #46546A;   /* body text on light              */
  --slate-light: #6B7A8D;   /* muted text on light             */
  --off-white:     #EFE9DB; /* text on navy                    */
  --off-white-dim: rgba(239,233,219,0.66);
  --line-light:  rgba(11,27,46,0.10);
  --line-dark:   rgba(239,233,219,0.13);

  /* ----- Type ----- */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ----- Shape ----- */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 50px -24px rgba(8,21,34,0.45);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04), 0 24px 60px -40px rgba(8,21,34,0.6);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }

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

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; border: 2px solid var(--navy-900); }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 6vw; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

.section--dark  { background: var(--ink);   color: var(--off-white); }
.section--darker{ background: var(--navy-900); color: var(--off-white); }
.section--light { background: var(--paper);  color: var(--slate); }
.section--cream { background: var(--cream);  color: var(--slate); }

/* ============================================================
   Typography helpers
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; color: inherit; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.15rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }

.section-head { max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-title { font-size: clamp(1.95rem, 4vw, 3rem); letter-spacing: -0.02em; }
.section--dark .section-title, .section--darker .section-title { color: #fff; }

.section-sub {
  margin-top: 1.1rem; font-size: 1.06rem; line-height: 1.75; max-width: 560px;
  color: var(--slate-light);
}
.section--dark .section-sub, .section--darker .section-sub { color: var(--off-white-dim); }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.text-gold { color: var(--gold); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  padding: 0.92rem 1.7rem; border-radius: var(--radius-sm);
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 26px -12px rgba(194,161,91,0.7); }
.btn-primary:hover { background: var(--gold-strong); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(194,161,91,0.75); }

/* secondary on dark backgrounds */
.btn-secondary { background: transparent; color: var(--off-white); border: 1px solid var(--line-dark); }
.btn-secondary:hover { background: rgba(239,233,219,0.07); border-color: rgba(239,233,219,0.32); transform: translateY(-2px); }

/* outline on light backgrounds */
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-light); }
.btn-outline:hover { background: rgba(11,27,46,0.04); border-color: rgba(11,27,46,0.28); transform: translateY(-2px); }

/* ============================================================
   Brand logo (inline mark + Fraunces wordmark)
   ============================================================ */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--brand-ink, var(--ink)); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -0.01em; color: var(--brand-ink, var(--ink)); line-height: 1;
}
.brand-word .ai { font-weight: 400; color: var(--gold); margin-left: 0.18em; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6vw;
  background: rgba(11,27,46,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  --brand-ink: var(--off-white);
}
.site-nav.scrolled { box-shadow: 0 10px 40px -18px rgba(0,0,0,0.55); background: rgba(8,21,34,0.86); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--off-white-dim);
  text-decoration: none; transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { padding: 0.62rem 1.25rem; font-size: 0.88rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-dark);
  border-radius: 10px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--off-white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-900); color: var(--off-white); border-top: 1px solid var(--line-dark); }
.site-footer a { color: var(--off-white-dim); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding: clamp(3rem,6vw,4.5rem) 0 3rem; }
.footer-brand { --brand-ink: var(--off-white); }
.footer-statement { margin-top: 1.1rem; max-width: 320px; font-size: 0.92rem; color: var(--off-white-dim); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.92rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0; border-top: 1px solid var(--line-dark); font-size: 0.82rem; color: var(--off-white-dim); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem 6vw 1.6rem;
    background: rgba(8,21,34,0.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta { margin-top: 0.8rem; justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .btn { padding: 0.85rem 1.4rem; }
}

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