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

:root {
  --bg: #FAFAF8;
  --bg-alt: #F0EFE9;
  --fg: #0A1628;
  --fg-muted: #5A6778;
  --fg-subtle: #8A96A5;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: #E2E1DA;
  --surface: #FFFFFF;
  --hero-height: 88vh;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; }
p { color: var(--fg-muted); }
strong { color: var(--fg); font-weight: 600; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-subtle);
  letter-spacing: 0.01em;
}

@media (max-width: 640px) { .nav-tagline { display: none; } }

/* === HERO === */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  min-height: calc(var(--hero-height) - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.eyebrow-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-headline {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--fg-subtle);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === FEED SECTION === */
.feed-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}

.feed-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .feed-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.feed-label { padding-top: 0.5rem; }

.feed-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
}

.feed-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(10, 22, 40, 0.06);
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--fg);
  color: white;
}

.feed-title { font-weight: 600; font-size: 0.85rem; color: white; }

.feed-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.feed-items { display: flex; flex-direction: column; }

.feed-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.15s;
}

.feed-item:last-child { border-bottom: none; }

.feed-item:hover { background: var(--bg); }

.feed-item--alert { background: rgba(245, 158, 11, 0.04); }

.feed-item-left { display: flex; flex-direction: column; gap: 0.25rem; }

.feed-source {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feed-time {
  font-size: 0.68rem;
  color: var(--fg-subtle);
}

.feed-item-body { display: flex; flex-direction: column; gap: 0.4rem; }

.feed-item-title { font-size: 0.85rem; font-weight: 500; color: var(--fg); line-height: 1.35; }

.feed-item-impact { display: flex; align-items: center; }

.impact-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  display: inline-block;
}

.impact-tag--high { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.impact-tag--medium { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.impact-tag--low { background: rgba(34, 197, 94, 0.12); color: #15803d; }

.feed-item-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  white-space: nowrap;
}

.status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon--done { background: #22c55e; color: white; }
.status-icon--progress { color: var(--accent); }
.status-icon--skip { background: var(--border); color: var(--fg-subtle); }

.status-text { font-size: 0.65rem; color: var(--fg-subtle); font-weight: 500; }

/* === FEATURES === */
.features {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.features-header {
  margin-bottom: 3.5rem;
  max-width: 560px;
}

.features-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.features-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.feature-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  font-family: 'Fraunces', Georgia, serif;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === MANIFESTO === */
.manifesto {
  background: var(--fg);
  color: white;
  padding: 5rem 1.5rem;
}

.manifesto-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .manifesto-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.manifesto-quote { display: flex; flex-direction: column; gap: 1rem; }

.manifesto-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-style: italic;
}

.manifesto-attribution {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

.manifesto-rule {
  width: 1px;
  height: 120px;
  background: rgba(255,255,255,0.15);
}

@media (max-width: 900px) { .manifesto-rule { display: none; } }

.manifesto-solution { display: flex; flex-direction: column; gap: 1rem; }

.manifesto-headline {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: white;
  letter-spacing: -0.01em;
}

.manifesto-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  padding: 6rem 1.5rem;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing-inner { max-width: 640px; margin: 0 auto; }

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.closing-body--large {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--fg);
}

/* === FOOTER === */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}

.footer-tagline { font-size: 0.82rem; color: var(--fg-subtle); }
.footer-copy { font-size: 0.75rem; color: var(--fg-subtle); }
