/* =========================================
   SSD — Shared Design System
   Apple-inspired: SF Pro, clean whites,
   glass nav, pill buttons, scroll reveals
   ========================================= */

:root {
  --blue:       #0071e3;
  --blue-hover: #0077ed;
  --dark:       #1d1d1f;
  --gray:       #86868b;
  --mid-gray:   #6e6e73;
  --light-gray: #f5f5f7;
  --white:      #ffffff;
  --border:     rgba(0, 0, 0, 0.08);
  --shadow:     0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.12);
  --radius:     12px;
  --radius-lg:  18px;
  --nav-height: 48px;
  --font:       -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono:       "SF Mono", "Fira Code", "Cascadia Code", Menlo, Consolas, monospace;
}

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

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

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: background 0.3s;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--dark);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}

h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--mid-gray);
  line-height: 1.5;
  font-weight: 400;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: scale(1.01);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: rgba(0, 113, 227, 0.06);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* ---- Layout ---- */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

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

section {
  padding: 100px 0;
}

section:nth-child(even):not(.hero) {
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--mid-gray);
  font-size: 19px;
}

/* ---- Grid ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--light-gray);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* ---- Code Blocks ---- */
pre {
  background: #1c1c1e;
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 20px 0;
}

code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: #e5e5ea;
}

:not(pre) > code {
  background: rgba(0,0,0,0.06);
  color: var(--dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Syntax color hints */
.token-comment { color: #636366; }
.token-string  { color: #30d158; }
.token-keyword { color: #bf5af2; }
.token-number  { color: #ff9f0a; }
.token-fn      { color: #0a84ff; }

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---- Pill label ---- */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
}

/* ---- Checklist ---- */
.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}

.checklist li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---- Quote / Callout ---- */
.callout {
  border-left: 3px solid var(--blue);
  padding: 20px 24px;
  background: rgba(0,113,227,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 18px;
  color: var(--dark);
  line-height: 1.5;
}

.callout strong { color: var(--blue); }

/* ---- Comparison table ---- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-col {
  border-radius: var(--radius);
  padding: 28px;
}

.compare-col.old {
  background: #fff5f5;
  border: 1px solid #ffd6d6;
}

.compare-col.new {
  background: #f0f9ff;
  border: 1px solid #b3e0ff;
}

.compare-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.compare-col.old h4 { color: #c0392b; }
.compare-col.new h4 { color: #0071e3; }

.compare-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.compare-col ul li {
  font-size: 15px;
  color: var(--dark);
  padding-left: 20px;
  position: relative;
}

.compare-col.old ul li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}

.compare-col.new ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0071e3;
  font-weight: 700;
}

@media (max-width: 600px) {
  .compare { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .nav { padding: 0 16px; }
}

/* ---- Platform Tabs ---- */
.platform-tabs {
  margin: 24px 0;
}

.platform-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.platform-tabs-nav button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.platform-tabs-nav button:hover {
  color: var(--dark);
  background: rgba(0, 0, 0, 0.02);
}

.platform-tabs-nav button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}

.platform-tab-panel {
  display: none;
  padding: 24px 0 0;
}

.platform-tab-panel.active {
  display: block;
}

@media (max-width: 600px) {
  .platform-tabs-nav button {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ---- Footer ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

footer a:hover { color: white; }

/* =========================================
   Shared: Final CTA
   Used on: ssd.html, about.html
   ========================================= */

section.final-cta {
  text-align: center;
  background: var(--dark);
  color: white;
  padding: 120px 24px;
}

section.final-cta h2 {
  color: white;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px;
}

section.final-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  max-width: 500px;
  margin: 0 auto 40px;
}

section.final-cta .btn-primary {
  background: white;
  color: var(--dark);
  font-size: 17px;
}

section.final-cta .btn-primary:hover {
  background: #f0f0f0;
}

/* =========================================
   Page: Landing (index.html)
   ========================================= */

.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 64px) 24px 48px;
}

.landing-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.landing-hero .lead {
  max-width: 580px;
  margin: 0 auto 56px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--mid-gray);
}

/* Hero cards grid */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  padding: 0 24px;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.hero-card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.hero-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.hero-card:hover .card-bg {
  transform: scale(1.03);
}

.hero-card .card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.hero-card .card-content {
  position: relative;
  z-index: 1;
  padding: 40px;
}

.hero-card .card-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  display: block;
}

.hero-card .card-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-card .card-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin-bottom: 20px;
  max-width: 380px;
}

.hero-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  text-decoration: none;
}

.hero-card .card-cta .arrow {
  transition: transform 0.2s ease;
}

.hero-card:hover .card-cta .arrow {
  transform: translateX(4px);
}

.hero-card.ssd .card-bg {
  background-image: url('hero.png');
}

.hero-card.agile .card-bg {
  background-image: url('agile2-hero.png');
}

.card-title .sup {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
}

@media (max-width: 768px) {
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card { min-height: 420px; }
  .hero-card .card-content { padding: 28px; }
}

/* =========================================
   Page: SSD (ssd.html)
   ========================================= */

/* SSD Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  background-image: url('hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,8,0.15) 0%, rgba(5,5,8,0.45) 100%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero .lead {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: clamp(19px, 2.2vw, 23px);
  color: rgba(255,255,255,0.8);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 32px auto 0;
}

.timeline-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
}

.timeline-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-align: right;
}

.timeline-bar {
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

.timeline-bar.progress { background: #e8f4fd; color: #0071e3; }
.timeline-bar.stuck    { background: #fff3cd; color: #856404; }
.timeline-bar.panic    { background: #fde8e8; color: #c0392b; }
.timeline-bar.ship     { background: #e8f5e9; color: #2e7d32; }

.timeline-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.timeline-compare h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.tl-bad  h4 { color: #c0392b; }
.tl-good h4 { color: #0071e3; }

/* Iron Law */
.iron-law-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.law-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.law-card .num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.law-card.scope .num { color: #5856d6; }
.law-card.time  .num { color: #ff9500; }
.law-card.qual  .num { color: #34c759; }

.law-card h3 { font-size: 22px; margin-bottom: 10px; }
.law-card p  { font-size: 14px; color: var(--mid-gray); }

.iron-law-rule {
  background: var(--dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.iron-law-rule p {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.iron-law-rule em {
  color: #ff9f0a;
  font-style: normal;
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principle-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.principle-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.principle-card h3 { font-size: 21px; margin-bottom: 12px; }
.principle-card p { font-size: 15px; color: var(--mid-gray); line-height: 1.65; }
.principle-card:first-child { grid-column: 1 / -1; }

/* Patterns */
.patterns-list { display: grid; gap: 2px; }

.pattern-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0;
  background: white;
  border-radius: 0;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.2s;
}

.pattern-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.pattern-row:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.pattern-row:hover { background: #fafafa; }

.pattern-row-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 4px;
}

.pattern-row-content h3 { font-size: 20px; margin-bottom: 6px; }
.pattern-row-content p { font-size: 15px; color: var(--mid-gray); }

/* Metrics */
.metric-big { text-align: center; margin-bottom: 64px; }

.metric-big .big-number {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--blue);
}

.metric-big .big-label {
  font-size: 20px;
  color: var(--mid-gray);
  margin-top: 8px;
}

.freq-table {
  display: grid;
  gap: 3px;
  max-width: 560px;
  margin: 0 auto;
}

.freq-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: white;
  border-radius: 8px;
  font-size: 15px;
}

.freq-row:last-child {
  background: var(--blue);
  color: white;
  font-weight: 600;
}

.freq-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
}

.freq-row:nth-child(1) .freq-badge { background: #fde8e8; color: #c0392b; }
.freq-row:nth-child(2) .freq-badge { background: #fff3cd; color: #856404; }
.freq-row:nth-child(3) .freq-badge { background: #e8f5e9; color: #2e7d32; }
.freq-row:last-child   .freq-badge { background: rgba(255,255,255,0.25); color: white; }

/* Getting Started */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.week-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.week-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.week-card h3 { font-size: 18px; margin-bottom: 16px; }
.week-card ul { list-style: none; display: grid; gap: 8px; }

.week-card ul li {
  font-size: 14px;
  color: var(--mid-gray);
  padding-left: 16px;
  position: relative;
}

.week-card ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* SSD responsive */
@media (max-width: 900px) {
  .weeks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .iron-law-cards { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card:first-child { grid-column: 1; }
}

@media (max-width: 600px) {
  .timeline-compare { grid-template-columns: 1fr; gap: 24px; }
}

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

/* =========================================
   Page: Agile² (agile2.html)
   ========================================= */

.agile-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 64px) 24px 80px;
  background: url('agile2-hero.png') center center / cover no-repeat;
  color: white;
  position: relative;
}

.agile-hero .eyebrow { color: rgba(255,255,255,0.6); }

.agile-hero h1 {
  font-size: clamp(56px, 10vw, 120px);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agile-hero h1 .sup {
  font-size: 0.5em;
  vertical-align: super;
  line-height: 0;
  -webkit-text-fill-color: rgba(255,255,255,0.8);
}

.agile-hero .lead {
  max-width: 540px;
  margin: 0 auto 24px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: rgba(255,255,255,0.75);
}

.agile-hero .meta {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}

/* Manifesto content */
.manifesto-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.manifesto-content section { padding: 80px 0; }
.manifesto-content section:first-child { padding-top: 64px; }

.manifesto-content h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 24px;
}

.manifesto-content h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  margin-top: 40px;
  margin-bottom: 14px;
}

.manifesto-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 16px;
}

.manifesto-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 20px 24px;
  background: rgba(0,113,227,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark);
}

.manifesto-content blockquote p { margin-bottom: 6px; }
.manifesto-content blockquote p:last-child { margin-bottom: 0; }

.manifesto-content ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.manifesto-content ul li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
  padding-left: 24px;
  position: relative;
}

.manifesto-content ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--gray);
}

.values-list li::before { content: none; }
.values-list li { padding-left: 0; font-size: 18px; font-weight: 500; }

/* Commitments table */
.commitments-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.commitments-table td {
  padding: 12px 0;
  vertical-align: top;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
  border: none;
}

.commitments-table tr + tr td {
  border-top: 1px solid var(--border);
}

.commitments-table .commit-check {
  width: 32px;
  font-size: 20px;
  color: var(--blue);
  padding-right: 8px;
}

.commitments-table .commit-label {
  font-weight: 700;
  white-space: nowrap;
  padding-right: 20px;
  color: var(--dark);
}

.manifesto-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

.manifesto-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

@media (max-width: 600px) {
  .commitments-table .commit-label { white-space: normal; }
}

/* =========================================
   Page: Guide (guide.html)
   ========================================= */

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.guide-sidebar {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: var(--light-gray);
  border-right: 1px solid var(--border);
  padding: 32px 0;
}

.sidebar-group { margin-bottom: 28px; }

.sidebar-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0 24px;
  margin-bottom: 6px;
}

.sidebar-group a {
  display: block;
  padding: 7px 24px;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-group a:hover { background: rgba(0,0,0,0.04); }

.sidebar-group a.active {
  border-left-color: var(--blue);
  color: var(--blue);
  background: rgba(0,113,227,0.06);
  font-weight: 500;
}

.guide-main {
  padding: 64px 80px;
  max-width: 820px;
}

.guide-section {
  margin-bottom: 80px;
  scroll-margin-top: calc(var(--nav-height) + 32px);
}

.guide-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.guide-section h3 { font-size: 22px; margin: 36px 0 12px; }

.guide-section p {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3a3c;
  margin-bottom: 16px;
}

.guide-section ul, .guide-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.guide-section li {
  font-size: 16px;
  line-height: 1.7;
  color: #3a3a3c;
  margin-bottom: 6px;
}

.guide-hero {
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  color: white;
  padding: 80px;
  border-radius: var(--radius-lg);
  margin-bottom: 64px;
}

.guide-hero span { color: #0a84ff; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.guide-hero h1 { color: white; font-size: 40px; margin: 12px 0; }
.guide-hero p  { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 520px; line-height: 1.6; margin-bottom: 28px; }

/* Principle blocks (guide) */
.principle-block {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0;
  border-left: 4px solid var(--blue);
}

.principle-block h4 { font-size: 17px; margin-bottom: 8px; }
.principle-block p { font-size: 15px; color: var(--mid-gray); margin-bottom: 0; }

/* Pattern block (guide) */
.pattern-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 28px 0;
  background: white;
}

.pattern-block .pattern-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.pattern-block h4 { font-size: 21px; margin-bottom: 12px; }
.pattern-block p { font-size: 15px; margin-bottom: 12px; }

/* Note / warning */
.note {
  background: #fff9ec;
  border: 1px solid #ffe58a;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15px;
  color: #5c4a00;
  margin: 20px 0;
}

.note strong { color: #856404; }

/* Comparison table */
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 24px 0;
}

.vs-table th {
  background: var(--dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.vs-table th:first-child { border-radius: var(--radius) 0 0 0; }
.vs-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.vs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.vs-table tr:last-child td { border-bottom: none; }
.vs-table tr:nth-child(even) td { background: var(--light-gray); }

/* Skills badge */
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 15px;
  margin: 4px 4px 4px 0;
}

.skill-badge span {
  font-size: 12px;
  color: #636366;
  font-family: var(--font);
}

/* Inline checklist */
.inline-checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.inline-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--dark);
}

.inline-checklist li::before {
  content: "\25A1";
  color: var(--blue);
  font-size: 16px;
  line-height: 1.2;
}

/* Guide responsive */
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { display: none; }
  .guide-main { padding: 40px 24px; max-width: 100%; }
  .guide-hero { padding: 40px 32px; }
}

/* =========================================
   Page: About (about.html)
   ========================================= */

.about-hero {
  padding: calc(var(--nav-height) + 80px) 24px 80px;
  text-align: center;
  background: var(--light-gray);
}

.author-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 32px;
  display: block;
  border: 4px solid var(--white);
}

.about-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}

.about-hero .lead {
  max-width: 560px;
  margin: 0 auto 32px;
}

.about-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.bio-section { padding: 100px 0; }

.bio-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.bio-inner p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--dark);
  margin-bottom: 32px;
}

.bio-inner p:last-child { margin-bottom: 0; }

.bio-inner a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 113, 227, 0.3);
  transition: border-color 0.2s;
}

.bio-inner a:hover { border-color: var(--blue); }

.facts-section {
  background: var(--light-gray);
  padding: 80px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.fact-card .fact-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.fact-card h3 { font-size: 18px; margin-bottom: 10px; }
.fact-card p { font-size: 14px; color: var(--mid-gray); line-height: 1.6; }
.fact-card a { color: var(--blue); text-decoration: none; }
.fact-card a:hover { text-decoration: underline; }

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

@media (max-width: 600px) {
  .bio-inner p { font-size: 17px; }
}
