:root {
  color-scheme: dark;
  --bg: #09110e;
  --panel: rgba(19, 36, 30, 0.78);
  --line: rgba(193, 196, 151, 0.18);
  --cream: #f3e8bd;
  --text: #e5ece7;
  --muted: #8ba398;
  --teal: #65b6a0;
  --amber: #e9b872;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.glow-one { width: 480px; height: 480px; background: #2f7d68; top: -200px; right: -80px; }
.glow-two { width: 380px; height: 380px; background: var(--amber); top: 640px; left: -260px; opacity: .1; }

.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 800; letter-spacing: .16em; }
.brand img { width: 38px; height: 38px; }
.nav nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
.nav a:hover { color: var(--cream); }
.nav-cta { border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; }

.hero { padding: 95px 0 80px; text-align: center; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--teal); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.eyebrow span { width: 22px; height: 1px; background: var(--teal); }
h1 { margin: 25px auto 24px; max-width: 980px; font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -.07em; font-weight: 650; }
h1 em { color: var(--cream); font-style: normal; }
.lede { max-width: 720px; margin: 0 auto 10px; color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 19px; line-height: 1.65; }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 14px 20px; font-size: 13px; font-weight: 700; }
.primary { background: var(--cream); color: #13241e; box-shadow: 0 12px 40px rgba(243, 232, 189, .1); }
.primary:hover { background: #fbf2cf; transform: translateY(-1px); }
.secondary { border: 1px solid var(--line); color: var(--muted); }
.secondary:hover { color: var(--text); border-color: rgba(193, 196, 151, .36); }

.app-window { margin: 90px 0 0; border: 1px solid rgba(101, 182, 160, .26); border-radius: 14px; overflow: hidden; background: #09110e; box-shadow: 0 38px 100px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .03); transform: perspective(1500px) rotateX(2deg); }
.app-window img, .app-window video { display: block; width: 100%; height: auto; }
.app-window figcaption { padding: 12px 16px; color: var(--muted); text-align: left; font-size: 10px; }

.installation { padding-bottom: 80px; }
.installation h2 { color: var(--cream); font-size: clamp(24px, 4vw, 36px); }
.installation p { max-width: 800px; color: var(--muted); font-family: Inter, system-ui, sans-serif; line-height: 1.7; }
.installation pre { padding: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); line-height: 1.7; }
.installation .actions { justify-content: flex-start; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles article { padding: 55px 40px; border-right: 1px solid var(--line); }
.principles article:first-child { padding-left: 0; }
.principles article:last-child { border: 0; }
.number { color: var(--teal); font-size: 11px; }
.principles h2 { margin: 26px 0 14px; color: var(--cream); font-size: 20px; }
.principles p { margin: 0; color: var(--muted); font-family: Inter, system-ui, sans-serif; line-height: 1.7; font-size: 15px; }

.details-showcase { padding-top: 120px; text-align: center; }
.details-showcase h2, .more h2 { margin: 22px 0 18px; color: var(--cream); font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -.05em; }
.details-showcase > p { max-width: 720px; margin: 0 auto; color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.7; }
.detail-window { margin-top: 55px; }

.sources { display: grid; grid-template-columns: 1fr 1.2fr; align-items: end; gap: 80px; padding-block: 130px; }
.sources .eyebrow, .more .eyebrow { justify-content: flex-start; }
.sources h2, .closing h2 { margin: 22px 0 0; color: var(--cream); font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -.05em; }
.source-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.source-list span { padding: 28px 20px; color: var(--muted); font-weight: 800; letter-spacing: .08em; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.source-list span:nth-child(3n) { border-right: 0; }

.more { padding-bottom: 110px; }
.more-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.more-list a { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.more-list a:hover { border-color: rgba(101, 182, 160, .45); }
.more-list strong { color: var(--cream); font-size: 17px; }
.more-list span { color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.6; }

.closing { padding: 110px 20px; border-radius: 16px; text-align: center; background: linear-gradient(145deg, rgba(32, 54, 45, .6), rgba(9, 17, 14, .8)); border: 1px solid var(--line); }
.closing p { color: var(--teal); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.closing h2 { margin-bottom: 34px; }
footer { display: flex; justify-content: space-between; padding-block: 48px; color: #63796f; font-size: 11px; }

@media (max-width: 850px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 65px; }
  .principles { grid-template-columns: 1fr; }
  .principles article, .principles article:first-child { padding: 38px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sources { grid-template-columns: 1fr; gap: 45px; padding-block: 90px; }
  .more-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .nav { height: 72px; }
  .brand span { font-size: 13px; }
  .hero { padding-top: 48px; }
  h1 { font-size: 42px; }
  .lede { font-size: 16px; }
  .actions { flex-direction: column; }
  .app-window { margin-top: 60px; }
  .source-list { grid-template-columns: repeat(2, 1fr); }
  .source-list span:nth-child(3n) { border-right: 1px solid var(--line); }
  .source-list span:nth-child(2n) { border-right: 0; }
  .closing { padding: 70px 20px; }
  footer { flex-direction: column; gap: 12px; }
}

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