:root {
  color-scheme: dark;
  --bg: #09070d;
  --panel: #110d18;
  --panel-2: #171020;
  --text: #f4f0f8;
  --muted: #aaa1b3;
  --line: #34283f;
  --purple: #b881ff;
  --purple-2: #7c3ed6;
  --green: #78e29a;
  --yellow: #f0cf6a;
  --danger: #ff7474;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 5%, rgba(124, 62, 214, .14), transparent 26rem),
    radial-gradient(circle at 5% 42%, rgba(184, 129, 255, .07), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--purple); }
code, pre, .eyebrow, .terminal, .brand { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; padding: .7rem 1rem; background: white; color: black; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1rem 0;
  background: rgba(9, 7, 13, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 129, 255, .15);
}
.brand { display: flex; gap: .65rem; align-items: center; font-weight: 800; letter-spacing: .12em; }
.brand-mark { color: var(--purple); }
nav { display: flex; gap: 1.4rem; color: var(--muted); font-size: .92rem; }

.hero {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 5rem;
}
.eyebrow { color: var(--purple); font-size: .76rem; letter-spacing: .16em; font-weight: 800; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); letter-spacing: -.065em; margin-bottom: 1.7rem; }
h1 span { color: var(--purple); }
.hero-lede { max-width: 670px; color: #c8c0cf; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 750; }
.button.primary { color: #0d0714; background: var(--purple); border-color: var(--purple); }
.button.primary:hover { color: #0d0714; background: #c99cff; }
.button.secondary { background: rgba(255,255,255,.025); }
.release-line { color: var(--muted); font-size: .86rem; }

.terminal { border: 1px solid #4b385a; border-radius: 12px; overflow: hidden; background: rgba(7, 5, 10, .94); box-shadow: 0 28px 80px rgba(0,0,0,.45), 0 0 70px rgba(124,62,214,.08); transform: rotate(.7deg); }
.terminal-bar { display: flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1rem; background: #181020; border-bottom: 1px solid #33263d; color: var(--muted); font-size: .75rem; }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #51425b; }
.terminal-bar span { margin-left: .45rem; }
.terminal-body { padding: 1.3rem 1.4rem 1.5rem; font-size: .84rem; color: #c9c2ce; }
.terminal-body p { margin: .38rem 0; }
.terminal-body b { color: var(--purple); }
.terminal-body em { color: #e0d8e7; font-style: normal; }
.terminal-body span { display: inline-block; min-width: 88px; color: #8d8195; }
.terminal-body mark { color: var(--yellow); background: none; }
.terminal-body hr { border: 0; border-top: 1px solid #31253b; margin: 1rem 0; }
.terminal-body .prompt { color: var(--purple); margin-top: 1.1rem; }
.cursor { min-width: 8px !important; height: 16px; background: #eee; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.principles { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.principles article { display: grid; gap: .35rem; padding: 1.35rem 1.5rem; background: rgba(17,13,24,.72); }
.principles article + article { border-left: 1px solid var(--line); }
.principles span { color: var(--muted); font-size: .9rem; }

.section { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 7.5rem 0; }
.section-heading { max-width: 720px; margin-bottom: 3rem; }
.section h2 { font-size: clamp(2.2rem, 5vw, 4.3rem); letter-spacing: -.045em; margin-bottom: 1rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.install-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; }
.code-card, .requirements, .card-grid article, .prompt-example, .security aside { background: rgba(17,13,24,.84); border: 1px solid var(--line); border-radius: 10px; }
.code-card-title { display: flex; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.code-card-title button { border: 0; background: none; color: var(--purple); cursor: pointer; font: inherit; }
pre { margin: 0; padding: 1.5rem; overflow-x: auto; color: var(--green); line-height: 1.9; }
.requirements { padding: 1.5rem; }
.requirements li, .requirements p { color: var(--muted); }
.requirements a, .security a { color: var(--purple); font-weight: 700; }

.workflow-section { border-top: 1px solid rgba(184,129,255,.12); }
.prompt-example { padding: 1.4rem 1.6rem; display: grid; grid-template-columns: 100px 1fr; gap: 1rem; margin-bottom: 2rem; }
.prompt-example span { color: var(--purple); font-weight: 800; }
.prompt-example p { margin: 0; font-size: 1.08rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps li { border-top: 1px solid var(--line); padding-top: 1rem; }
.steps li > span { color: var(--purple); font-family: ui-monospace, monospace; }
.steps h3 { margin: 1.2rem 0 .45rem; }
.steps p { color: var(--muted); font-size: .92rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card-grid article { min-height: 210px; padding: 1.5rem; }
.card-grid h3 { font-size: 1.25rem; }
.card-grid p { color: var(--muted); }

.security { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; border-top: 1px solid rgba(255,116,116,.2); }
.security strong { color: var(--danger); }
.security aside { padding: 1.6rem; border-color: rgba(255,116,116,.25); }
.security aside h3 { color: var(--danger); }
.security aside li { margin: .55rem 0; color: #c8c0cf; }
.final-cta { text-align: center; border-top: 1px solid var(--line); }
.final-cta .hero-actions { justify-content: center; }
footer { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 2rem 0 3rem; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@media (max-width: 850px) {
  .hero, .install-grid, .security { grid-template-columns: 1fr; }
  .hero { gap: 2rem; padding-top: 4rem; }
  .terminal { transform: none; }
  .principles, .card-grid { grid-template-columns: 1fr; }
  .principles article + article { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 570px) {
  nav a:not(:last-child) { display: none; }
  h1 { font-size: 3.25rem; }
  .steps { grid-template-columns: 1fr; }
  .prompt-example { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: .7rem; }
}

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