/* === RESET & ROOT === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0D1B2A;
  --navy2:  #142233;
  --amber:  #F59E0b;
  --amber2: #fbbf24;
  --cream:  #FAFAF8;
  --ink:    #1a2a3a;
  --muted:  #64748b;
  --faint:  #f1f5f9;
  --border: #e2e8f0;
  --purple: #6366f1;
  --purple2:#818cf8;
  --serif:  'Instrument Serif', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.6; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 1rem 0; }
.nav-logo { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); letter-spacing: -0.02em; }
.nav-tagline { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* === HERO === */
.hero { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem 5rem; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 1.75rem; letter-spacing: 0.02em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-headline {
  font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--navy); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.75rem;
  max-width: 700px;
}

.hero-body { font-size: 1.15rem; color: var(--muted); max-width: 580px; line-height: 1.7; margin-bottom: 3rem; }

.hero-meta { display: flex; gap: 3rem; margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border); }
.hero-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num { font-family: var(--serif); font-size: 2.5rem; color: var(--navy); letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); max-width: 140px; line-height: 1.4; }

/* === TWEET CARD VISUAL === */
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 860px; }
.tweet-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem;
  box-shadow: 0 2px 16px rgba(13,27,42,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tweet-card:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(13,27,42,0.12); }
.tweet-card--suggested { border-color: var(--amber); box-shadow: 0 2px 20px rgba(245,158,11,0.15); }
.tweet-card-header { display: flex; align-items: center; gap: 0.75rem; }
.tweet-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.tweet-author { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.tweet-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.tweet-handle { font-size: 0.75rem; color: var(--muted); }
.suggest-badge, .saved-badge {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem; border-radius: 20px;
}
.suggest-badge { background: rgba(245,158,11,0.12); color: #b45309; }
.saved-badge { background: rgba(99,102,241,0.1); color: #4338ca; }
.tweet-text { font-size: 0.9rem; color: var(--ink); line-height: 1.55; font-style: italic; font-family: var(--serif); }
.tweet-reason { font-size: 0.72rem; color: var(--muted); padding: 0.5rem 0.75rem; background: var(--faint); border-radius: 8px; }
.tweet-actions { display: flex; gap: 0.75rem; }
.action-btn {
  flex: 1; padding: 0.5rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.15s ease; font-family: var(--sans);
}
.action-btn--keep { background: var(--amber); color: white; }
.action-btn--keep:hover { background: #d97706; }
.action-btn--dismiss { background: var(--faint); color: var(--muted); border: 1px solid var(--border); }
.action-btn--dismiss:hover { background: #e2e8f0; }
.tweet-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { font-size: 0.7rem; padding: 0.2rem 0.6rem; background: rgba(99,102,241,0.1); color: #4338ca; border-radius: 20px; font-weight: 500; }

/* === HOW IT WORKS === */
.how { background: var(--navy); padding: 6rem 2rem; }
.how-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 1rem; }
.how-headline { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.75rem); color: white; max-width: 620px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 4rem; }
.how-steps { display: flex; align-items: stretch; gap: 0; max-width: 900px; }
.step { flex: 1; padding-right: 2.5rem; }
.step-connector { width: 60px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cpath d='M0 12h55M45 12l10-8M45 12l10 8' stroke='%23334155' stroke-width='1' fill='none'/%3E%3C/svg%3E") center/contain no-repeat; }
.step-num { font-family: var(--serif); font-size: 3rem; color: rgba(255,255,255,0.15); letter-spacing: -0.04em; line-height: 1; margin-bottom: 1rem; }
.step-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: white; margin-bottom: 0.75rem; }
.step-body { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 0.65rem; }

/* === SUGGESTION LOOP === */
.loop { background: var(--cream); padding: 6rem 2rem; }
.loop-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.loop-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 1rem; }
.loop-headline { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.loop-body { font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.75rem; }

.loop-diagram { display: flex; flex-direction: column; gap: 1.25rem; }
.loop-node {
  display: flex; align-items: center; gap: 0.9rem;
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.85rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--ink);
  box-shadow: 0 1px 6px rgba(13,27,42,0.06);
}
.loop-node--rank { border-color: var(--purple); background: rgba(99,102,241,0.04); }
.loop-arrow { font-size: 1.5rem; color: var(--muted); padding-left: 0.5rem; }
.loop-arrow--loop { font-size: 1.25rem; color: var(--purple2); }

/* === RAG RECALL === */
.recall { background: white; padding: 6rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.recall-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple); margin-bottom: 1rem; }
.recall-headline { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 560px; }
.recall-body { font-size: 0.95rem; color: var(--muted); margin-bottom: 2.5rem; max-width: 520px; }

.recall-search { max-width: 680px; }
.search-box {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--faint); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
}
.search-box:focus-within { border-color: var(--purple); }
.search-placeholder { font-size: 0.9rem; color: #94a3b8; font-style: italic; }

.search-results { display: flex; flex-direction: column; gap: 1rem; }
.result-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.result-text { font-family: var(--serif); font-size: 1rem; color: var(--ink); line-height: 1.6; margin-bottom: 0.75rem; font-style: italic; }
.result-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.result-author { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.result-date { font-size: 0.75rem; color: var(--muted); }
.result-tag { font-size: 0.7rem; padding: 0.2rem 0.6rem; background: rgba(99,102,241,0.1); color: #4338ca; border-radius: 20px; font-weight: 500; }

/* === MANIFESTO === */
.manifesto { background: var(--faint); padding: 6rem 2rem; }
.manifesto-inner { max-width: 1100px; margin: 0 auto; }
.manifesto-headline { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); letter-spacing: -0.03em; margin-bottom: 3rem; }
.manifesto-list { display: flex; flex-direction: column; gap: 2rem; max-width: 720px; margin-bottom: 3rem; }
.manifesto-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.manifesto-icon { width: 44px; height: 44px; border-radius: 10px; background: white; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.15rem; }
.manifesto-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.manifesto-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.manifesto-divider { max-width: 720px; height: 1px; background: var(--border); margin-bottom: 3rem; }
.manifesto-solution h3 { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.manifesto-solution p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; max-width: 600px; }

/* === CLOSING === */
.closing { background: var(--navy); padding: 7rem 2rem; }
.closing-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.closing-headline { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.5rem); color: white; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 2rem; }
.closing-body { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 600px; margin: 0 auto 1rem; }
.closing-body--final { color: rgba(255,255,255,0.35); font-size: 0.875rem; }

/* === FOOTER === */
.footer { background: var(--navy2); padding: 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--serif); font-size: 1.1rem; color: white; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-headline { font-size: 2.25rem; }
  .hero-meta { gap: 2rem; }
  .hero-visual { grid-template-columns: 1fr; gap: 1rem; }

  .how { padding: 4rem 1.25rem; }
  .how-steps { flex-direction: column; gap: 2.5rem; }
  .step-connector { width: 40px; }

  .loop { padding: 4rem 1.25rem; }
  .loop-inner { grid-template-columns: 1fr; gap: 3rem; }

  .recall { padding: 4rem 1.25rem; }
  .manifesto { padding: 4rem 1.25rem; }
  .closing { padding: 5rem 1.25rem; }

  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .stat-label { max-width: 100%; }
}