:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-muted: #f3f4f6;
  --fg: #0a0a0a;
  --fg-muted: #6b7280;
  --fg-subtle: #9ca3af;
  --border: #e5e7eb;
  --accent-blue: #6366f1;
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --accent-green: #34d399;
  --accent-orange: #fb923c;
  --accent-cyan: #22d3ee;
  --danger: #f87171;
  --status-success: #34d399;
  --status-warn: #fbbf24;
  --status-danger: #f87171;
  --max: 1080px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--fg);
  text-decoration: none;
}

.logo-mark {
  display: block;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.locale-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.2rem;
  background: var(--bg-muted);
  gap: 0.2rem;
}

.locale-toggle button {
  border: none;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.5rem;
  border-radius: 9px;
  cursor: pointer;
}

.locale-toggle button.is-active {
  background: var(--fg);
  color: var(--bg);
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.35rem 0.5rem;
}

.nav-link:hover {
  color: var(--fg);
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.primary {
  background: var(--fg);
  color: var(--bg);
}

.primary:hover {
  opacity: 0.9;
}

.ghost {
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.ghost:hover {
  background: var(--bg-muted);
  color: var(--fg);
}

.primary.lg,
.ghost.lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem var(--pad) 4rem;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background:
    radial-gradient(ellipse 60% 80% at 70% 20%, rgba(167, 139, 250, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 70% at 30% 30%, rgba(99, 102, 241, 0.3), transparent 55%),
    radial-gradient(ellipse 40% 60% at 80% 60%, rgba(244, 114, 182, 0.25), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr minmax(240px, 320px);
  }

  .hero-copy h1 {
    max-width: 14ch;
  }
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 1rem 0 0;
}

.hero-stats {
  display: grid;
  gap: 0.75rem;
}

.stat-compact {
  padding: 1rem 1.15rem;
}

.stat-compact .stat-value {
  font-size: 1.5rem;
}

.hero-stats[data-loading="true"] .stat-value {
  min-height: 1.5rem;
}

.stat-skeleton {
  display: inline-block;
  width: 2.5rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background: linear-gradient(
    90deg,
    var(--bg-3, #e8e8ec) 0%,
    var(--bg-2, #f4f4f6) 50%,
    var(--bg-3, #e8e8ec) 100%
  );
  background-size: 200% 100%;
  animation: stat-shimmer 1.2s ease-in-out infinite;
}

@keyframes stat-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 1rem 0 0;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lead,
.muted {
  color: var(--fg-muted);
  max-width: 38rem;
}

.lead {
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--pad);
  border-top: 1px solid var(--border);
}

.section-subscribe {
  background: var(--bg-soft);
  max-width: none;
  padding-left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin-bottom: 0.35rem;
}

.venture-cta {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.venture-cta a {
  font-weight: 500;
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

.venture-card {
  position: relative;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.venture-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.venture-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.venture-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  min-height: 0;
  min-width: 0;
  pointer-events: none;
}

.venture-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.venture-card-main {
  min-width: 0;
  flex: 1;
}

.venture-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.venture-badge-muted,
.venture-badge-info {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
}

.venture-badge-muted {
  background: var(--bg-muted);
  color: var(--fg-muted);
}

.venture-badge-info {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-blue);
}

.venture-card-main h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
}

.venture-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-width: 0;
}

.venture-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.venture-card-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.venture-card-title-wrap {
  min-width: 0;
}

.venture-card-title-wrap h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.venture-stage {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.venture-tagline {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.venture-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
  pointer-events: auto;
  white-space: nowrap;
}

.venture-site-link:hover {
  text-decoration: underline;
}

.venture-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  align-items: start;
}

.metric {
  min-width: 0;
  margin: 0;
}

.metric-label {
  display: block;
  margin: 0;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-value {
  display: block;
  margin: 0.125rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  min-height: 1.25rem;
}

.metric-delta {
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.metric-delta.up {
  color: var(--accent-green);
}

.metric-delta.down {
  color: var(--danger);
}

.tag-accent {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-blue);
}

.venture-icon-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  object-fit: contain;
  padding: 6px;
  background: var(--bg-muted);
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.venture-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.venture-icon-blue { background: rgba(99, 102, 241, 0.15); color: var(--accent-blue); }
.venture-icon-purple { background: rgba(167, 139, 250, 0.15); color: var(--accent-purple); }
.venture-icon-green { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.venture-icon-orange { background: rgba(251, 146, 60, 0.15); color: var(--accent-orange); }
.venture-icon-cyan { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }

.venture-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  padding-top: 0.125rem;
}

.venture-category {
  font-size: 0.7rem;
  color: var(--fg-muted);
}

.venture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--fg-muted);
}

.mission-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.mission-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}

.mission-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.mission-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  min-width: 0;
  pointer-events: none;
}

.mission-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.mission-card-main {
  min-width: 0;
  flex: 1;
}

.mission-card-main .venture-badge-muted {
  display: inline-flex;
}

.mission-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.mission-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.mission-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mission-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.mission-venture {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.mission-comp {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mission-meta {
  margin: 0;
  font-size: 0.7rem;
  color: var(--fg-subtle);
}

.bullets {
  color: var(--fg-muted);
  padding-left: 1.25rem;
}

.bullets strong {
  color: var(--fg);
}

.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 24rem;
}

.subscribe input {
  flex: 1;
  min-width: 12rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  color: var(--fg);
  font-size: 0.875rem;
}

.subscribe input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.subscribe button {
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 0.625rem 1.125rem;
  font-weight: 500;
  cursor: pointer;
}

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.form-msg.error {
  color: var(--danger);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--border);
}

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

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--fg);
}

.copy {
  color: var(--fg-subtle);
  font-size: 0.8rem;
  margin-top: 2rem;
}

.loading {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .header {
    gap: 0.5rem;
  }

  .logo {
    font-size: 0.72rem;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .nav {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}
