:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --ink: #111111;
  --muted: #6b6b70;
  --line: #e7e7e9;
  --accent: #0071e3;
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  overflow-x: hidden;
}

body::selection {
  background: #111;
  color: #fff;
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.brand span { color: #999; }

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

.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-links a:hover { color: #000; }

.theme-toggle { display: none; }

main {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 150px 0 110px;
  border-bottom: 1px solid var(--line);
}

.hero-profile { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin-bottom: 26px; border: 1px solid var(--line); }
.hero-profile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eyebrow {
  color: #777;
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 700;
}

h1 {
  max-width: 1000px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: .94;
  letter-spacing: -.075em;
  margin: 24px 0 30px;
  font-weight: 800;
}

h1 span { color: #8a8a8f; }

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.button-dark {
  color: #fff;
  background: #111;
}

.button-glass {
  color: #111;
  background: #fff;
  border: 1px solid #d8d8dc;
}

.button:hover { transform: translateY(-2px); }

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1px;
  background: var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.card {
  min-height: 340px;
  padding: 42px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.card-large { min-height: 410px; }

.card-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 800;
  color: #999;
}

.card h2 {
  font-size: clamp(29px, 4vw, 47px);
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: 48px 0 18px;
}

.card h3 {
  font-size: 19px;
  margin: 12px 0;
  letter-spacing: -.03em;
}

.card p {
  max-width: 590px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.stat-card .stat {
  font-size: 100px;
  line-height: .8;
  letter-spacing: -.09em;
  font-weight: 800;
  margin-top: 70px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.chips span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f5f5f6;
  border: 1px solid #e6e6e8;
  font-size: 10px;
  color: #666;
}

.card-dark {
  background: #111;
  color: #fff;
}

.card-dark .card-kicker { color: #888; }
.card-dark p { color: #aaa; }

.card-dark .orb {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -65px;
  bottom: -75px;
  border-radius: 50%;
  background: #fff;
  opacity: .08;
}

.card-dark .orb span {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
}

.section {
  padding: 150px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -.07em;
  margin: 22px 0 55px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stack-item {
  min-height: 140px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  transition: background .2s ease;
}

.stack-item:hover { background: #f7f7f8; }

.stack-item strong {
  font-size: 17px;
  letter-spacing: -.03em;
}

.stack-item span {
  color: var(--muted);
  font-size: 12px;
}

.project-feature { display:grid; grid-template-columns:1.35fr .65fr; border:1px solid var(--line); background:#fff; }
.project-image { min-height:430px; background:#f3f3f5; overflow:hidden; }
.project-image img { width:100%; height:100%; object-fit:cover; display:block; }
.project-copy { padding:44px; display:flex; flex-direction:column; justify-content:center; }
.project-copy h3 { font-size:42px; letter-spacing:-.06em; margin:18px 0 14px; }
.project-copy p { color:var(--muted); font-size:14px; line-height:1.7; }
.project-copy a { margin-top:18px; color:#111; font-size:13px; font-weight:700; text-decoration:none; }

.now {
  padding: 65px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  border-bottom: 1px solid var(--line);
}

.now h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.07em;
  margin: 35px 0 0;
}

.now-copy { padding-top: 30px; }

.now-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.profile-source {
  border: 1px solid var(--line);
}

.profile-stack-label { margin-top: 50px; }

.source-grid {
  margin-top: 1px;
  border-top: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 11px;
  padding: 0 0 35px;
}

@media (max-width: 760px) {
  main { width: min(100% - 24px, 620px); }

  .nav {
    top: 0;
    width: calc(100% - 24px);
    height: 54px;
    padding: 0;
    background: rgba(255,255,255,.96);
  }

  .nav-links {
    display: flex;
    gap: 14px;
    margin-left: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a { font-size: 11px; }

  .brand { flex-shrink: 0; }

  .hero {
    min-height: 92vh;
    padding: 105px 0 60px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: .12em;
  }

  h1 {
    font-size: clamp(43px, 13vw, 64px);
    letter-spacing: -.07em;
    margin: 20px 0 22px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 26px;
    width: 100%;
  }

  .button {
    padding: 12px 16px;
    font-size: 12px;
  }

  .feature-grid,
  .stack-grid,
  .now {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 280px;
    padding: 25px;
  }

  .card-large { min-height: 340px; }

  .card h2 {
    font-size: clamp(30px, 9vw, 42px);
    margin: 38px 0 16px;
  }

  .stat-card .stat {
    font-size: 82px;
    margin-top: 56px;
  }

  .card-dark .orb {
    width: 170px;
    height: 170px;
  }

  .section { padding: 95px 0; }

  .section-heading h2 {
    font-size: clamp(36px, 10vw, 54px);
    margin: 18px 0 36px;
  }

  .stack-item {
    min-height: 105px;
    padding: 21px;
  }

  .now {
    padding: 45px 0;
    gap: 25px;
    margin-bottom: 65px;
  }

  .now h2 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .now-copy { padding-top: 0; }

  .now-copy p {
    font-size: 14px;
    line-height: 1.65;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 25px;
  }
}

@media (max-width: 380px) {
  main { width: calc(100% - 18px); }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .card { padding: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
