:root {
  --black: #0a0a0a;
  --gray-1: #666;
  --gray-2: #999;
  --line: #e8e8e8;
  --soft: #fafafa;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  height: 72px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}
.brand img, footer img { display: block; width: 118px; height: auto; }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 500; }
nav > a:not(.nav-button) { color: var(--gray-1); transition: color .2s; }
nav > a:not(.nav-button):hover { color: var(--black); }
.nav-button { padding: 9px 15px; color: white; background: var(--black); border-radius: 7px; }

.hero {
  min-height: 100svh;
  padding: 145px 5vw 55px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute;
  inset: 72px 0 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
}
.hero-grid::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(0,0,0,.018), 0 0 0 160px rgba(0,0,0,.012);
}
.hero-content { position: relative; text-align: center; max-width: 900px; }
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--gray-1);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span, .status i { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 5px rgba(34,197,94,.12); }
h1 {
  margin: 0;
  font-size: clamp(62px, 9.8vw, 150px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 700;
}
h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--black); }
.hero-copy {
  max-width: 535px;
  margin: 34px auto 0;
  color: var(--gray-1);
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { margin-top: 32px; display: flex; justify-content: center; gap: 10px; }
.button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--black); border-color: var(--black); }
.button-light { color: var(--black); background: white; }
.scroll-note { position: absolute; bottom: 25px; color: var(--gray-2); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-note span { margin-left: 9px; }

.section-shell { padding: 120px 8vw; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .5fr 1.5fr 1fr; gap: 5vw; align-items: end; margin-bottom: 65px; }
.section-index { margin: 0; color: var(--gray-2); font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
h2 { margin: 0; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.065em; }
.section-heading > p:last-child { margin: 0; color: var(--gray-1); font-size: 14px; line-height: 1.7; }
.experiment-card { border: 1px solid #222; border-radius: 12px; overflow: hidden; background: var(--black); color: white; box-shadow: 0 30px 80px rgba(0,0,0,.13); }
.card-topbar, .card-footer { min-height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: #777; font: 500 10px ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.card-topbar { border-bottom: 1px solid #222; }
.status { display: flex; align-items: center; gap: 10px; color: #aaa; }
.terminal { padding: 6vw; }
.terminal-row { display: grid; grid-template-columns: 30px 1fr auto; padding: 21px 0; border-bottom: 1px solid #1c1c1c; font: 500 clamp(13px, 1.7vw, 21px)/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #ddd; }
.terminal-row:last-child { border: 0; }
.prompt { color: #555; }
.terminal-row b { color: #36d26b; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; align-self: center; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.card-footer { border-top: 1px solid #222; }
.card-footer strong { color: #ccc; font-weight: 500; }

.principles { background: var(--soft); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle-grid article { padding: 45px 35px 65px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.principle-grid span { color: var(--gray-2); font: 500 10px ui-monospace, monospace; }
.principle-grid h3 { margin: 75px 0 13px; font-size: 22px; letter-spacing: -.04em; }
.principle-grid p { margin: 0; color: var(--gray-1); font-size: 13px; line-height: 1.7; }
.closing { text-align: center; padding-top: 155px; padding-bottom: 155px; }
.closing h2 { margin-bottom: 35px; }
.closing .button { min-width: 170px; }

footer { min-height: 85px; padding: 0 5vw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: var(--gray-2); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

@media (max-width: 800px) {
  .site-header { padding: 0 20px; }
  nav > a:not(.nav-button) { display: none; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-copy { font-size: 15px; }
  .section-shell { padding: 80px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid h3 { margin-top: 35px; }
  .terminal { padding: 28px 20px; }
  .terminal-row { grid-template-columns: 22px 1fr; }
  .terminal-row b { display: none; }
  .card-topbar span:last-child { display: none; }
  .card-footer { display: block; padding: 17px 20px; line-height: 1.8; }
  .card-footer strong { display: block; }
  footer { padding: 28px 20px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
  footer p:nth-child(2) { width: 100%; text-align: left; order: 3; }
}
