:root {
  color-scheme: dark;
  --bg: #07110f;
  --surface: #0d1b18;
  --surface-2: #11221e;
  --line: rgba(196, 244, 228, 0.14);
  --text: #f4fbf8;
  --muted: #a9bdb6;
  --mint: #51e0b5;
  --cyan: #4ad4df;
  --violet: #8a72ef;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(7, 17, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; text-decoration: none; }
.brand-lamp {
  width: 24px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 4%, #62f4d2 18%, #2bcad8 47%, #7e65ed 72%, #d64aba 100%);
  box-shadow: 0 0 15px rgba(74, 212, 223, 0.6), inset -3px -4px 7px rgba(21, 9, 59, 0.55);
  animation: breathe 3.1s ease-in-out infinite;
}
nav { display: flex; gap: 22px; margin-right: auto; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }
select {
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.small-download { padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; text-decoration: none; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: clamp(50px, 8vw, 110px); padding-block: 100px; }
.eyebrow { margin: 0 0 12px; color: var(--mint); font-size: 12px; font-weight: 760; letter-spacing: 0.15em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(48px, 6.2vw, 78px); line-height: 1; letter-spacing: -0.052em; }
h2 { max-width: 760px; margin-bottom: 22px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -0.04em; }
.hero-text, .section-intro { max-width: 710px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; }
.button { min-height: 50px; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; text-decoration: none; }
.button small { color: rgba(7, 17, 15, 0.68); font-weight: 650; }
.button.primary { flex-direction: column; align-items: flex-start; border-color: transparent; background: linear-gradient(120deg, var(--mint), var(--cyan)); color: #04110d; }
.button.secondary { color: var(--text); }
.quick-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.quick-facts li::before { content: "✓"; margin-right: 6px; color: var(--mint); }
.hero-card { position: relative; min-height: 390px; padding: 50px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 50% 30%, rgba(81, 224, 181, 0.15), transparent 48%), var(--surface); overflow: hidden; }
.hero-card::after { content: ""; position: absolute; inset: auto -20% -45% 0; height: 65%; background: radial-gradient(ellipse, rgba(138, 114, 239, 0.22), transparent 70%); }
.hero-card img { margin-bottom: 25px; border-radius: 23%; filter: drop-shadow(0 14px 34px rgba(74, 212, 223, 0.2)); }
.live-line { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.live-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.hero-card p { margin: 10px 0 18px; color: var(--muted); }
.local-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.section { padding-block: 96px; border-top: 1px solid var(--line); }
.card-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.card > span { color: var(--mint); font: 700 12px ui-monospace, monospace; }
.card h3 { margin: 38px 0 8px; font-size: 19px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.pain-section { position: relative; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 40px; }
.pain-grid article { min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(81, 224, 181, 0.06), transparent 55%), var(--surface); }
.pain-grid span { color: var(--mint); font: 700 12px ui-monospace, monospace; }
.pain-grid h3 { margin: 24px 0 8px; font-size: 19px; }
.pain-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.comparison-wrap { margin-top: 56px; }
.comparison-wrap > h3 { margin-bottom: 18px; font-size: 21px; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
thead th { color: var(--text); background: rgba(81, 224, 181, 0.06); }
tbody th { width: 25%; color: var(--text); }
tbody td { color: var(--muted); }
tbody td:nth-child(2) { color: #c7f7e7; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.privacy-section, .install-section { background: #091512; }
.two-column { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 9vw, 130px); }
.plain-list { border-top: 1px solid var(--line); }
.plain-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 25px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.plain-list p { margin: 0; color: var(--muted); font-size: 14px; }
.boundary-note, .translation-note { margin-top: 46px; padding: 20px 24px; border-left: 3px solid var(--mint); background: var(--surface-2); }
.boundary-note p, .translation-note p { margin: 4px 0 0; color: var(--muted); }
.telemetry-disclosure { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.local-flow-wrap { margin-top: 54px; }
.local-flow-wrap > h3 { margin-bottom: 20px; font-size: 21px; }
.local-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.local-flow li { min-height: 170px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.local-flow li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(81, 224, 181, 0.13); color: var(--mint); font: 750 12px ui-monospace, monospace; }
.local-flow b { margin: 30px 0 7px; }
.local-flow small { color: var(--muted); line-height: 1.5; }
.open-source-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
.source-button { margin-top: 16px; }
.proof-grid { border-top: 1px solid var(--line); }
.proof-grid article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.proof-grid h3 { margin: 0; font-size: 16px; }
.proof-grid p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.narrow { max-width: 760px; }
.language-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 36px; }
.language-grid span { padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: #d8e6e1; font-size: 13px; }

.install-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 8vw, 110px); margin-top: 46px; }
.requirements { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.requirements h3 { margin-bottom: 18px; }
dl, dd { margin: 0; }
dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: 13px; }
dd { font-size: 14px; }
.install-steps { padding: 0; margin: 0; list-style: none; }
.install-steps li { display: flex; gap: 17px; padding: 12px 0 25px; }
.install-steps li > span { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--mint); color: var(--bg); font-weight: 800; }
.install-steps p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.download-panel { margin-top: 46px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(81, 224, 181, 0.28); border-radius: 14px; background: linear-gradient(100deg, rgba(81, 224, 181, 0.1), rgba(74, 212, 223, 0.04)); }
.download-panel > div { display: flex; flex-direction: column; }
.download-panel span { color: var(--muted); font-size: 13px; }
.checksum { margin: 12px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }

.windows-box { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 8vw, 110px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.windows-box > div > p { color: var(--muted); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 18px 30px 18px 0; position: relative; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; font-size: 20px; color: var(--mint); }
details[open] summary::after { content: "−"; }
details p { padding: 0 30px 18px 0; margin: 0; color: var(--muted); font-size: 14px; }
.faq-list { max-width: 860px; margin-top: 36px; }

footer { padding: 42px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-inner > div { display: grid; grid-template-columns: 28px 1fr; align-items: center; }
.footer-inner small { grid-column: 2; }
.footer-inner p { margin: 0; font-size: 13px; }
noscript { display: block; padding: 10px; text-align: center; background: #fff3cd; color: #2a240d; }

@keyframes breathe { 50% { transform: scale(1.09); filter: brightness(1.2); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .brand-lamp { animation: none; } }
@media (max-width: 850px) {
  nav { display: none; }
  .topbar { gap: 16px; }
  .top-actions { margin-left: auto; }
  .hero, .two-column, .install-layout, .windows-box, .open-source-section { grid-template-columns: 1fr; }
  .hero { padding-block: 70px; }
  .hero-card { min-height: 320px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .local-flow { grid-template-columns: repeat(2, 1fr); }
  .language-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .small-download { display: none; }
  .topbar { min-height: 60px; padding-inline: 14px; }
  h1 { font-size: 48px; }
  .section { padding-block: 70px; }
  .card-grid { grid-template-columns: 1fr; }
  .pain-grid, .local-flow { grid-template-columns: 1fr; }
  .language-grid { grid-template-columns: repeat(2, 1fr); }
  .plain-list > div { grid-template-columns: 1fr; gap: 5px; }
  .download-panel, .footer-inner { align-items: stretch; flex-direction: column; }
  .download-panel .button { width: 100%; }
  dl > div { grid-template-columns: 90px 1fr; }
}
