/* --- Variables --- */
:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE8DF;
  --fg: #0A1628;
  --fg-muted: #5A6A7E;
  --accent: #F5A623;
  --accent-dark: #C47D00;
  --navy: #0A1628;
  --nav: #142232;
  --border: #D4CFBF;
  --card-bg: #FFFFFF;
  --feed-bg: #0A1628;
  --feed-fg: #E8E4DA;
  --feed-muted: #6B7A8C;
  --feed-border: #1E3048;
  --match-high: #22C55E;
  --match-med: #F5A623;
}

/* --- Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Hero --- */
.hero {
  padding: 5rem 3rem 4rem;
  border-bottom: 1px solid var(--border);
}

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

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 42ch;
  line-height: 1.65;
}

/* --- Signal Feed Widget --- */
.signal-feed {
  background: var(--feed-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--feed-border);
  box-shadow: 0 20px 60px rgba(10,22,40,0.15);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--feed-border);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

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

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

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--feed-border);
}

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

.signal-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.tag-hiring { background: rgba(34,197,94,0.15); color: #22C55E; }
.tag-funding { background: rgba(245,166,35,0.15); color: #F5A623; }
.tag-patent { background: rgba(99,102,241,0.15); color: #A5B4FC; }
.tag-news { background: rgba(139,92,246,0.15); color: #A78BFA; }

.company-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--feed-fg);
}

.company-stage {
  font-size: 0.75rem;
  color: var(--feed-muted);
}

.match-score {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.match-score.high { background: rgba(34,197,94,0.15); color: #22C55E; }
.match-score.med { background: rgba(245,166,35,0.15); color: #F5A623; }

.feed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--feed-border);
  font-size: 0.75rem;
  color: var(--feed-muted);
}

.feed-status {
  color: #22C55E;
  font-weight: 600;
}

/* --- How It Works --- */
.how-it-works {
  padding: 5rem 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hiw-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hiw-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 48ch;
  margin: 0 auto;
}

.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step {
  flex: 1;
  padding: 2rem 1.75rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.step-title {
  font-size: 1rem;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

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

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  color: var(--border);
}

/* --- Signals Grid --- */
.signals-section {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.signals-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.signals-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.signal-card {
  padding: 1.5rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.signal-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.signal-card-title {
  font-size: 0.9375rem;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.signal-card-body {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* --- Why Section --- */
.why-section {
  padding: 5rem 3rem;
  background: var(--navy);
  border-bottom: 1px solid var(--feed-border);
}

.why-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.why-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.why-headline {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--feed-fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.why-body {
  font-size: 0.9375rem;
  color: var(--feed-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Comparison block */
.comparison-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  overflow: hidden;
}

.comp-col-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid var(--feed-border);
}

.comp-col {
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--feed-muted);
}

.comp-col.new { color: var(--accent); }

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--feed-border);
}

.comp-row:last-child { border-bottom: none; }

.comp-item-label {
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--feed-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.comp-item.old, .comp-item.new {
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.comp-item.old { color: var(--feed-muted); text-decoration: line-through; opacity: 0.7; }
.comp-item.new { color: #22C55E; }

/* --- Closing --- */
.closing-section {
  padding: 6rem 3rem;
  text-align: center;
  background: var(--bg);
}

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

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.closing-body {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.closing-vision {
  font-size: 1rem;
  color: var(--fg);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  max-width: 50ch;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  color: var(--fg);
}

.footer-meta {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner,
  .why-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  
  .hiw-steps { flex-direction: column; }
  .step-arrow { display: none; }
  
  .signals-grid { grid-template-columns: repeat(2, 1fr); }
  
  .comp-col-header,
  .comp-row { grid-template-columns: 1fr; }
  .comp-col.old, .comp-col.new { display: none; }
  .comp-item-label { padding-bottom: 0.25rem; }
  .comp-item.old, .comp-item.new { padding-top: 0.25rem; font-size: 0.75rem; }
}

@media (max-width: 600px) {
  .hero, .signals-section, .why-section,
  .how-it-works, .closing-section, .footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .signals-grid { grid-template-columns: 1fr; }
  .nav { padding: 1rem 1.25rem; }
  .nav-tagline { display: none; }
}