:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-soft: #111216;
  --surface: #15161a;
  --surface-raised: #1a1b20;
  --line: #2a2b31;
  --text: #f5f5f2;
  --muted: #9b9ba3;
  --yellow: #f5c842;
  --yellow-bright: #ffe16a;
  --yellow-dark: #b88705;
  --green: #70e39a;
  --max-width: 1180px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(245, 200, 66, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 200, 66, 0.4);
  border-radius: 10px;
  background: rgba(245, 200, 66, 0.1);
  box-shadow: inset 0 0 16px rgba(245, 200, 66, 0.08);
}

.accent,
.yellow {
  color: var(--yellow);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: #b7b7bd;
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.nav-source {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.hero {
  position: relative;
  padding: 116px 0 96px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: -180px;
  border-radius: 50%;
  background: rgba(245, 200, 66, 0.11);
  filter: blur(90px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 76px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 6px;
  font-size: 0.6rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 7.3vw, 6.6rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
  font-weight: 900;
}

h1 span {
  color: var(--yellow);
}

.hero-description {
  max-width: 600px;
  margin-bottom: 32px;
  color: #b7b7bd;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
.copy-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(245, 200, 66, 0.55);
  outline-offset: 3px;
}

.button-primary {
  background: var(--yellow);
  color: #15130b;
  box-shadow: 0 10px 30px rgba(245, 200, 66, 0.14);
}

.button-primary:hover {
  background: var(--yellow-bright);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary:hover {
  border-color: #515159;
  background: rgba(255, 255, 255, 0.06);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 0;
  color: #72727a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero-meta span::before {
  content: "◆";
  margin-right: 8px;
  color: var(--yellow-dark);
  font-size: 0.56rem;
}

.hero-terminal,
.code-window {
  border: 1px solid #303138;
  border-radius: var(--radius);
  background: rgba(18, 19, 23, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.hero-terminal {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.terminal-bar,
.code-title {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #191a1f;
  color: #777780;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.74rem;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #46474f;
}

.terminal-dots span:first-child {
  background: #e05c50;
}

.terminal-dots span:nth-child(2) {
  background: #d9ad3b;
}

.terminal-dots span:nth-child(3) {
  background: #57b56d;
}

.terminal-bolt {
  justify-self: end;
  color: var(--yellow);
}

.terminal-body {
  min-height: 355px;
  padding: 33px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.76rem, 1.25vw, 0.94rem);
  line-height: 1.85;
}

.terminal-body p {
  display: flex;
  gap: 10px;
  margin-bottom: 7px;
}

.terminal-body .terminal-heading {
  margin: 24px 0 15px;
  color: var(--yellow);
  font-weight: 800;
}

.terminal-body .muted {
  margin-left: auto;
}

.prompt {
  color: #85858e;
}

.command {
  color: #f7dd87;
}

.success {
  color: var(--green);
}

.muted {
  color: #777780;
}

.terminal-result {
  margin-top: 21px;
  color: #c9c9ce;
}

.cursor {
  width: 8px;
  height: 1.1em;
  display: inline-block;
  background: var(--yellow);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: #0d0e11;
}

.trust-items {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #85858d;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.trust-items strong {
  margin-right: 5px;
  color: var(--yellow);
  font-size: 1.1rem;
}

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 50px;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-heading > p:last-child,
.preview-copy > p {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #46474f;
}

.feature-card.featured {
  background: linear-gradient(150deg, rgba(245, 200, 66, 0.14), var(--surface) 48%);
  border-color: rgba(245, 200, 66, 0.35);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 58px;
  border: 1px solid rgba(245, 200, 66, 0.22);
  border-radius: 12px;
  background: rgba(245, 200, 66, 0.08);
  color: var(--yellow);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 800;
}

.card-index {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #515159;
  font: 700 0.74rem "Cascadia Code", Consolas, monospace;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.feature-card > p:not(.card-index) {
  color: var(--muted);
  font-size: 0.93rem;
}

.card-command {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #777780;
  font: 0.72rem "Cascadia Code", Consolas, monospace;
}

.preview-section {
  border-block: 1px solid var(--line);
  background: #0d0e11;
}

.preview-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: #c4c4ca;
}

.check-list li::before {
  content: "✓";
  margin-right: 12px;
  color: var(--yellow);
  font-weight: 900;
}

.code-title {
  grid-template-columns: 1fr auto;
}

.copy-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #222329;
  color: #b4b4ba;
  cursor: pointer;
  font-size: 0.7rem;
}

.code-window pre {
  margin: 0;
  padding: 32px;
  color: #c6c6cc;
  font-size: clamp(0.72rem, 1.25vw, 0.9rem);
  line-height: 2;
  overflow-x: auto;
}

.line-number {
  width: 2.3em;
  display: inline-block;
  color: #4f5058;
  user-select: none;
}

.download-section {
  position: relative;
}

.download-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(245, 200, 66, 0.15), transparent 40%),
    var(--surface);
  overflow: hidden;
}

.download-copy {
  padding: 60px;
}

.download-copy > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
}

.download-copy code,
.install-steps code {
  color: #f6d871;
}

.system-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.system-chips span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #aaaab1;
  font-size: 0.72rem;
  font-weight: 700;
}

.download-large {
  min-height: 66px;
  justify-content: flex-start;
  padding-inline: 24px;
}

.download-large > span:first-child {
  font-size: 1.6rem;
}

.download-large small {
  display: block;
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-steps {
  display: grid;
  margin: 0;
  padding: 48px;
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.17);
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.install-steps li:last-child {
  border-bottom: 0;
}

.install-steps li > span {
  color: var(--yellow);
  font: 700 0.75rem "Cascadia Code", Consolas, monospace;
}

.install-steps strong {
  display: block;
  margin-bottom: 6px;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #08090a;
}

.footer-inner {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: #74747c;
  font-size: 0.78rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--yellow);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 82px;
  }

  .hero-grid,
  .preview-grid,
  .download-card {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .preview-grid {
    gap: 54px;
  }

  .hero-terminal {
    transform: none;
  }

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

  .feature-card {
    min-height: 310px;
  }

  .download-copy,
  .install-steps {
    padding: 40px;
  }

  .install-steps {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 35px;
    text-align: center;
  }

  .footer-inner .brand,
  .footer-links {
    justify-self: center;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav {
    min-height: 64px;
  }

  nav a:not(.nav-source) {
    display: none;
  }

  .hero {
    padding: 70px 0 64px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 4.7rem);
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .terminal-body {
    min-height: auto;
    padding: 22px 18px;
    overflow-x: auto;
  }

  .terminal-body p {
    min-width: 340px;
  }

  .terminal-bar {
    padding-inline: 12px;
  }

  .trust-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 22px;
    text-align: center;
  }

  .section {
    padding: 78px 0;
  }

  .feature-card {
    padding: 24px;
  }

  .code-window pre {
    padding: 22px 17px;
  }

  .download-copy,
  .install-steps {
    padding: 30px 24px;
  }

  .download-large {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
