:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #16181c;
  --text-muted: #5b6069;
  --border: #e6e5e2;
  --accent: #0f6e5c;
  --accent-contrast: #ffffff;
  --radius: 14px;
  --max-width: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --surface: #1a1b1d;
    --text: #f1f1ef;
    --text-muted: #9a9ea3;
    --border: #2b2c2e;
    --accent: #2fcf9e;
    --accent-contrast: #0b0c0c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 96px 24px 64px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 820px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--text-muted); }

/* Sections */
.section {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 44px;
  font-size: 1.02rem;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline-step {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.timeline-item h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 44px;
}

.highlight p {
  margin: 0;
  font-size: 1rem;
}

.network-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.network-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.network-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.network-list li span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Flagship project */
.flagship {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 32px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.flagship:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.flagship h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.flagship p {
  color: var(--text-muted);
  margin: 0 0 16px;
  max-width: 640px;
}

.flagship-link, .project-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

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

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.project-tagline {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.project-card p:not(.project-tagline) {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* Contact */
.contact {
  text-align: center;
}

.contact .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 24px 48px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 760px) {
  .timeline, .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 72px 20px 48px; }
  .section { padding: 56px 20px; }
}
