:root {
  --bg: #111713;
  --panel: #182019;
  --panel-2: #202a21;
  --ink: #f0f4e9;
  --muted: #a6b0a2;
  --line: rgba(224, 239, 211, .14);
  --lime: #c7f36b;
  --lime-dark: #243513;
  --amber: #ffbd62;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
a { color: inherit; }
img { max-width: 100%; }

.topbar {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: .1em; }
.brand img { border-radius: 9px; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a, .github { color: var(--muted); text-decoration: none; font-size: 14px; }
.menu a:hover, .github:hover { color: var(--lime); }
.github { border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; }

.hero {
  width: min(1240px, calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 72px 0 86px;
}
.eyebrow, .kicker { color: var(--lime); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px var(--lime); }
h1 { margin: 22px 0 24px; font-size: clamp(64px, 8.5vw, 118px); line-height: .88; letter-spacing: -.07em; font-weight: 800; }
h1 span { color: var(--lime); }
.hero-lead { max-width: 570px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 23px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--lime); color: #17200e; box-shadow: 0 12px 34px rgba(167, 217, 72, .13); }
.primary:hover { background: #d5ff7d; box-shadow: 0 15px 40px rgba(167, 217, 72, .23); }
.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.secondary:hover { border-color: var(--lime); color: var(--lime); }
.text-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.text-link:hover { color: var(--ink); }
.quiet { margin-top: 17px; color: #7e8a7a; font-size: 12px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.console-card {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  background: linear-gradient(145deg, rgba(36, 49, 37, .98), rgba(20, 29, 22, .98));
  border: 1px solid rgba(199, 243, 107, .24);
  border-radius: 26px;
  padding: 25px;
  box-shadow: 0 35px 100px rgba(0,0,0,.4);
  transform: rotate(2deg);
}
.console-head, .console-foot { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.recording { color: var(--amber); }
.wave { height: 120px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.wave i { display: block; width: 5px; height: 25%; border-radius: 5px; background: var(--lime); animation: wave 1.6s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { height: 68%; animation-delay: -.6s; }
.wave i:nth-child(4n) { height: 90%; animation-delay: -.9s; background: var(--amber); }
.wave i:nth-child(5n) { height: 45%; animation-delay: -.3s; }
.wave i:nth-child(7n) { height: 75%; animation-delay: -1.2s; }
@keyframes wave { to { transform: scaleY(.35); opacity: .55; } }
.transcript { padding: 20px 4px 28px; color: #e3ebd9; font-size: 17px; line-height: 1.75; }
.orbit { position: absolute; border: 1px solid rgba(199,243,107,.13); border-radius: 50%; }
.orbit-one { width: 480px; height: 480px; }
.orbit-two { width: 610px; height: 610px; border-color: rgba(255,189,98,.08); }

.ticker { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.ticker div { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 100px; }
.ticker div + div { border-left: 1px solid var(--line); }
.ticker strong { color: var(--lime); font-size: 12px; letter-spacing: .12em; }
.ticker span { font-size: 18px; font-weight: 650; }

.section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; }
.section-heading { max-width: 700px; }
h2 { font-size: clamp(36px, 5vw, 62px); line-height: 1.08; letter-spacing: -.045em; margin: 16px 0 22px; }
.section-heading > p:last-child, .settings-copy > p { color: var(--muted); max-width: 620px; font-size: 17px; }
.screen-wrap { margin: 54px 0 38px; padding: 14px; border: 1px solid var(--line); background: #0c110d; border-radius: var(--radius); overflow: hidden; }
.screen-wrap img { display: block; width: 100%; max-height: 720px; object-fit: contain; object-position: top; border-radius: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.feature-grid article { padding: 28px 24px 12px 0; }
.feature-grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-no { color: var(--lime); font-size: 11px; letter-spacing: .14em; }
.feature-grid h3 { margin: 14px 0 9px; font-size: 18px; line-height: 1.3; }
.feature-grid p { color: var(--muted); font-size: 14px; }

.settings-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(45px, 7vw, 90px); border-top: 1px solid var(--line); }
.settings-shot { background: var(--panel); padding: 22px; border-radius: var(--radius); transform: rotate(-1.5deg); }
.settings-shot img { display: block; width: 100%; max-height: 590px; object-fit: contain; object-position: top; border-radius: 12px; }
.settings-copy ul { list-style: none; margin-top: 28px; }
.settings-copy li { padding: 12px 0; border-bottom: 1px solid var(--line); color: #d3dccb; }
.settings-copy li::before { content: "+"; color: var(--lime); font-weight: 800; margin-right: 13px; }

.download-section { border-top: 1px solid var(--line); }
.download-heading { max-width: 870px; margin-bottom: 48px; }
.download-heading .kicker span { margin-left: 8px; color: var(--muted); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.download-card { background: var(--lime); color: #1a2311; border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); }
.download-card p { color: #44532d; }
.download-card h3 { font-size: 30px; margin: 6px 0 12px; }
.download-card .card-label { font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.download-card .button { margin-top: 28px; }
.download-card .primary { background: #17200e; color: var(--lime); }
.portable-card { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.portable-card p { color: var(--muted); }
.wide { width: 100%; }
.file-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 18px; font-size: 11px; }
.file-meta code { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license { max-width: 800px; margin: 32px auto 0; text-align: center; color: var(--muted); font-size: 13px; }
.license a { color: var(--lime); }

footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; min-height: 100px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
footer > a:last-child { color: var(--lime); text-decoration: none; }

@media (max-width: 900px) {
  .menu { display: none; }
  .github { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { max-width: 690px; }
  .hero-visual { min-height: 400px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid article:nth-child(3) { border-left: 0; padding-left: 0; }
  .settings-section { grid-template-columns: 1fr; }
  .settings-shot { max-width: 650px; }
}

@media (max-width: 600px) {
  .topbar { min-height: 70px; }
  .hero { min-height: auto; padding-bottom: 60px; }
  h1 { font-size: 68px; }
  .console-card { padding: 20px; }
  .orbit-two { display: none; }
  .orbit-one { width: 110%; height: auto; aspect-ratio: 1; }
  .ticker div { flex-direction: column; gap: 2px; min-height: 88px; }
  .ticker span { font-size: 14px; }
  .section { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article + article { border-left: 0; padding-left: 0; }
  .download-grid { grid-template-columns: 1fr; }
  .file-meta { flex-direction: column; }
  footer { flex-direction: column; justify-content: center; padding: 25px 0; }
}

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

/* Language switch and copyable hashes */
.langs { display: flex; gap: 6px; }
.langs a {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.langs a:hover { color: var(--lime); border-color: var(--lime); }
.langs a[aria-current="true"] { color: var(--lime); border-color: var(--lime); }
.file-meta code { cursor: copy; }
.file-meta code.copied { color: var(--lime); }
