/* ============================================
   诸葛灯泡 — 温暖主题 (暖白 + 暖橙 + 深棕)
   Inspired by sanwan.ai but warmer & friendlier
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

/* ---- Tokens ---- */
:root {
  /* 温暖配色 */
  --bg:          #FFFBF5;
  --bg-subtle:    #FFF8F0;
  --bg-warm:      #FFF3E6;
  --surface:      #FFFFFF;
  --surface-warm: #FFF9F2;
  --card:         #FFFCFA;
  --border:       #F0E6D8;
  --border-warm:  #F5DCC0;
  --text:         #3D2314;
  --text-mid:     #6B3F2A;
  --text-dim:     #8B5A3C;
  --muted:        #A07858;
  --accent:       #E8724A;
  --accent-light: #FF9A6C;
  --accent-dim:   rgba(232,114,74,0.10);
  --accent-glow:  rgba(232,114,74,0.20);
  --shadow-warm:  rgba(61,35,20,0.08);
  --shadow-deep:  rgba(61,35,20,0.12);

  /* 语义色 */
  --green:   #7CB87A;
  --amber:   #E8724A;
  --gray:    #C4A882;
  --red:     #D4653B;
  --yellow:  #F5C518;

  /* 字体 */
  --font-serif: 'Noto Serif SC', Georgia, serif;
  --font-sans:  'Noto Sans SC', -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* 布局变量 */
  --nav-h:      64px;
  --content-w:  720px;
  --section-py: 90px;
  --radius:     20px;
  --radius-sm:  14px;
  --radius-lg:  28px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---- Selection ---- */
::selection { background: var(--accent); color: #fff; }

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Links ---- */
a { color: inherit; text-decoration: none; }

/* ================================
   NAVIGATION
   ================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,251,245,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-logo {
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  transition: color 0.2s;
}

.nav-logo .bulb {
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.nav-logo:hover .bulb {
  transform: scale(1.15) rotate(-10deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-links .sep {
  color: var(--border);
  user-select: none;
  padding: 0 2px;
}

/* ================================
   LAYOUT
   ================================ */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section--sm {
  padding: 60px 0;
}

/* ================================
   TYPOGRAPHY
   ================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

h1, .h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--text);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { color: var(--muted); max-width: 60ch; line-height: 1.85; }
p + p { margin-top: 1em; }

.muted  { color: var(--muted); }
.accent { color: var(--accent); }
.mono   { font-family: var(--font-mono); }

/* ================================
   HERO
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: 44px;
}

.hero__sub strong {
  color: var(--text-mid);
  font-weight: 500;
}

.hero__divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 44px 0;
  border-radius: 1px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent);
  border: 1.5px solid var(--border-warm);
  padding: 10px 22px;
  border-radius: 50px;
  transition: all 0.25s ease;
  background: transparent;
}

.hero__cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ================================
   PAGE HERO (inner pages)
   ================================ */
.page-hero {
  padding: 100px 0 60px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-subtle);
}

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1rem; max-width: 52ch; }

/* ================================
   AGENT GRID
   ================================ */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.agent-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.25s ease;
  position: relative;
}

.agent-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 28px var(--shadow-warm);
  transform: translateY(-3px);
}

.agent-card__emoji {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.agent-card__name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.agent-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.agent-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.agent-card__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-light);
  opacity: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: opacity 0.25s;
}

.agent-card:hover .agent-card__bar { opacity: 1; }

/* ================================
   CARD
   ================================ */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.card--border-left {
  border-left: 4px solid var(--accent);
}

.card + .card { margin-top: 16px; }

/* ================================
   STEPS / HOW IT WORKS
   ================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.visible { opacity: 1; transform: none; }
.step:last-child { border-bottom: none; }

.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  padding-top: 4px;
}

.step__content h3 { margin-bottom: 8px; }
.step__content p { font-size: 0.9rem; max-width: 52ch; }

/* ================================
   DIVIDER
   ================================ */
.divider {
  width: 100%;
  height: 1.5px;
  background: var(--border);
  margin: 0;
}

.divider--accent {
  height: 2px;
  width: 48px;
  background: var(--accent);
  border-radius: 1px;
}

/* ================================
   CTA BLOCK
   ================================ */
.cta-block {
  text-align: center;
  padding: 72px 40px;
  background: var(--surface-warm);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-lg);
  margin-top: 80px;
  box-shadow: 0 4px 24px var(--shadow-warm);
}

.cta-block h2 { margin-bottom: 14px; }
.cta-block p { margin: 0 auto 28px; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn:hover {
  background: #d4613b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  opacity: 1;
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-warm);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
  opacity: 1;
  transform: translateY(-2px);
}

/* ================================
   STATS
   ================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.stat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s ease;
}

.stat:hover {
  border-color: var(--accent-light);
  box-shadow: 0 6px 24px var(--shadow-warm);
}

.stat__num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ================================
   DIARY
   ================================ */
.diary-entry {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.diary-entry:last-child { border-bottom: none; }

.diary-entry__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.diary-entry__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.3;
}

.diary-entry__body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
}

.diary-entry__body p { margin-bottom: 1em; max-width: 65ch; }
.diary-entry__body p:last-child { margin-bottom: 0; }

.diary-entry__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.diary-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diary-stat__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.diary-stat__label {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ================================
   DIARY PREVIEW (homepage)
   ================================ */
.diary-preview {
  list-style: none;
  margin-top: 40px;
}

.diary-preview li {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  border-radius: 12px;
  padding-left: 8px;
  padding-right: 8px;
}

.diary-preview li:hover { background: var(--bg-subtle); }
.diary-preview li:last-child { border-bottom: none; }

.diary-preview__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.diary-preview__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 0.2s;
  cursor: pointer;
}

.diary-preview__title:hover { color: var(--accent); }

.diary-preview__excerpt {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================================
   INSIGHT LIST
   ================================ */
.insight-list {
  list-style: none;
  margin-top: 40px;
}

.insight-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.insight-item.visible { opacity: 1; transform: none; }
.insight-item:last-child { border-bottom: none; }

.insight-item__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.insight-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.insight-item:hover .insight-item__title { color: var(--accent); }

.insight-item__excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ================================
   SKILL TAGS / FILTER
   ================================ */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: var(--accent-dim);
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 0;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--accent);
  border-color: var(--accent-light);
  background: var(--accent-dim);
}

/* ================================
   SKILLS GRID
   ================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.skill-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
}

.skill-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 28px var(--shadow-warm);
  transform: translateY(-3px);
}

.skill-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.skill-card__emoji { font-size: 1.4rem; }

.skill-card__badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 50px;
}

.badge--official {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-warm);
}

.badge--new {
  background: rgba(124,184,122,0.15);
  color: var(--green);
  border: 1px solid rgba(124,184,122,0.3);
}

.skill-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.skill-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ================================
   ARTICLES GRID
   ================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 60px;
}

.article-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s;
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 28px var(--shadow-warm);
  transform: translateY(-3px);
}

.article-card__category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.article-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.article-card:hover .article-card__title { color: var(--accent); }

.article-card__excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.article-card__meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-card__meta-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}

/* ================================
   TWO COL
   ================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.col-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s ease;
}

.col-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 6px 24px var(--shadow-warm);
}

.col-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
}

.col-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ================================
   HOME WELCOME BANNER
   ================================ */
.home-welcome {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-subtle) 100%);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-welcome::before {
  content: '🏠';
  position: absolute;
  top: 20px;
  left: 28px;
  font-size: 2.5rem;
  opacity: 0.2;
}

.home-welcome h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 10px;
}

.home-welcome p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto;
}

/* ================================
   HIGHLIGHT CARD
   ================================ */
.highlight-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  box-shadow: 0 4px 20px var(--shadow-warm);
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: none;
}

.highlight-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ================================
   HERO STATS
   ================================ */
.hero-stat-row {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat__num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat__label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ================================
   FAMILY PILLS
   ================================ */
.family-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.family-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-mid);
  transition: all 0.2s;
}

.family-pill:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow-warm);
}

/* ================================
   HERO BADGE
   ================================ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1.5px solid var(--border-warm);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: warmPulse 2.5s ease-in-out infinite;
}

@keyframes warmPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(232,114,74,0.3);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(232,114,74,0);
  }
}

/* ================================
   SECTION LABEL
   ================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* ================================
   CTA STRIP
   ================================ */
.cta-strip {
  background: var(--surface-warm);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 60px;
  text-align: center;
}

.cta-strip h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-strip p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 24px;
}

/* ================================
   CHAPTER NAV (science page)
   ================================ */
.chapter-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(255,251,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  padding: 12px 0;
}

.chapter-nav__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chapter-nav__inner::-webkit-scrollbar { display: none; }

.chapter-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid transparent;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chapter-btn:hover {
  color: var(--text);
  background: var(--bg-subtle);
  border-color: var(--border);
}

.chapter-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-warm);
}

/* ================================
   CHAPTER (science page)
   ================================ */
.chapter {
  padding: 80px 0;
  border-bottom: 1.5px solid var(--border);
}

.chapter:last-child { border-bottom: none; }

.chapter__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.chapter h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--text);
  margin-bottom: 32px;
}

.chapter h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  margin-top: 32px;
}

.chapter p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 65ch;
}

.chapter p + p { margin-top: 1em; }

/* ================================
   INSIGHT BOX
   ================================ */
.insight-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}

.insight-box__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.insight-box p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: none;
  margin: 0;
}

/* ================================
   RADAR CHART
   ================================ */
.radar-demo {
  margin-top: 48px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 4px 20px var(--shadow-warm);
}

.radar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.radar-row:last-child { margin-bottom: 0; }

.radar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  width: 100px;
  flex-shrink: 0;
}

.radar-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.radar-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 4px;
  transition: width 1s ease;
}

.radar-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  border-top: 1.5px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
  background: var(--bg-subtle);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__brand .bulb { color: var(--accent); }

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ================================
   AMBIENT WARM ORB
   ================================ */
.glow-orb {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,114,74,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  top: -250px;
  right: -200px;
}

/* ================================
   SCROLL REVEAL
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }
.reveal:nth-child(9) { transition-delay: 0.64s; }
.reveal:nth-child(10) { transition-delay: 0.72s; }

/* ================================
   COMING SOON CARD
   ================================ */
.coming-soon {
  text-align: center;
  padding: 80px 40px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin-top: 60px;
}

.coming-soon__emoji { font-size: 3rem; margin-bottom: 16px; }
.coming-soon h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
}

.coming-soon p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 auto;
}

/* ================================
   PAGE HEADER (diary detail)
   ================================ */
.page-header {
  padding: 130px 0 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  background: var(--bg-subtle);
}

.page-header h1 { margin-bottom: 14px; }
.page-header p {
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ================================
   OFFICE PAGE (warm family feel)
   ================================ */
.agent-network-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

#agent-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.agent-network-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: warmPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.agent-network-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-nodes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  max-width: 600px;
}

.agent-node-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-warm);
  padding: 3px 10px;
  border-radius: 20px;
  transition: background 0.3s, border-color 0.3s;
  animation: nodeBreath 3.5s ease-in-out infinite;
}

.agent-node-pill:nth-child(1) { animation-delay: 0s; }
.agent-node-pill:nth-child(2) { animation-delay: 0.35s; }
.agent-node-pill:nth-child(3) { animation-delay: 0.7s; }
.agent-node-pill:nth-child(4) { animation-delay: 1.05s; }
.agent-node-pill:nth-child(5) { animation-delay: 1.4s; }
.agent-node-pill:nth-child(6) { animation-delay: 1.75s; }
.agent-node-pill:nth-child(7) { animation-delay: 2.1s; }

@keyframes nodeBreath {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; background: rgba(232,114,74,0.15); border-color: var(--accent-light); }
}

/* ================================
   LIVE FEED (office)
   ================================ */
.live-feed {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}

.live-feed__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.live-feed__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.live-feed__items {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

.live-feed__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  transition: background 0.2s;
}

.live-feed__item:last-child { border-bottom: none; }
.live-feed__item:hover { background: var(--bg-subtle); }

.live-feed__time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding-top: 3px;
}

.live-feed__text {
  color: var(--text-mid);
  line-height: 1.5;
}

.live-feed__text strong {
  color: var(--accent);
  font-weight: 500;
}

/* ================================
   TEAM MEMBERS (office)
   ================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.team-member {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s ease;
}

.team-member:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 28px var(--shadow-warm);
  transform: translateY(-3px);
}

.team-member__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.team-member__emoji { font-size: 2rem; }

.team-member__info {}

.team-member__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.team-member__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.team-member__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.team-member__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.team-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 640px) {
  :root {
    --section-py: 60px;
    --nav-h: 56px;
    --radius: 16px;
  }

  .nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-links .sep { display: none; }

  .agent-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-stat-row { gap: 20px; }
  .home-welcome { padding: 32px 24px; }

  .step { grid-template-columns: 1fr; gap: 12px; }
  .step__num { display: none; }

  .card { padding: 28px 20px; }
  .cta-block { padding: 48px 24px; border-radius: var(--radius); }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .agent-grid { grid-template-columns: 1fr; }
}
