:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f4f5f3;
  --muted: #959a98;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #fff;
  --max-width: 1180px;
  --font-sans: Inter, "SF Pro Text", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
}

.brand-mark img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c5c8c6;
  font-size: 14px;
  transition: color 180ms ease;
}

.github-link:hover {
  color: #fff;
}

.github-link svg {
  width: 18px;
  fill: currentColor;
}

.github-link .arrow {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: center;
  gap: clamp(64px, 9vw, 130px);
  min-height: 610px;
  padding: 64px 0 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: #b8bdb9;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(54px, 6.7vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  color: #8d9390;
}

.intro {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 180ms ease;
}

.button-primary {
  background: var(--text);
  color: #111312;
}

.button-primary:hover {
  background: #d8d8d8;
}

.button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launch-note {
  color: #727775;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-preview {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #656a67;
}

.preview-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.preview-search svg {
  width: 14px;
  fill: none;
  stroke: #555a57;
  stroke-linecap: round;
}

.preview-row {
  padding: 16px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-row span {
  display: block;
  margin-bottom: 5px;
  color: #454946;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.preview-row p {
  margin: 0;
  color: #6d726f;
  font-size: 12px;
  line-height: 1.45;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article {
  display: flex;
  gap: 18px;
  min-height: 152px;
  padding: 34px 32px;
}

.principles article + article {
  border-left: 1px solid var(--line);
}

.principle-number {
  padding-top: 3px;
  color: #575c59;
  font-family: var(--font-sans);
  font-size: 10px;
}

.principles h2 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.principles p {
  max-width: 240px;
  margin: 0;
  color: #787d7a;
  font-size: 13px;
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 36px;
  color: #5f6461;
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 740px;
  }

  .context-preview {
    display: none;
  }

  .principles article {
    padding: 28px 20px;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    height: 76px;
  }

  .github-link > span,
  .github-link .arrow {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 40px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .intro {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
  }

  .button {
    width: 100%;
  }

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

  .principles article {
    min-height: auto;
    padding: 25px 8px;
  }

  .principles article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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