:root {
  --bg: #071014;
  --bg-2: #0b171c;
  --text: #eef6f5;
  --muted: #9db0b1;
  --teal: #5ce1d0;
  --teal-ink: #062521;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --edge: rgba(255, 255, 255, 0.14);
  --edge-hi: rgba(255, 255, 255, 0.28);
  --radius: 20px;
  --wrap: 1180px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 85% 55%, rgba(92, 225, 208, 0.08), transparent 70%),
    radial-gradient(700px 500px at 10% 90%, rgba(92, 225, 208, 0.06), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; }

/* Liquid glass panel */
.glass {
  position: relative;
  background: linear-gradient(160deg, var(--glass-strong), var(--glass) 45%, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 14px;
  background: var(--teal); color: var(--teal-ink);
  font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px rgba(92, 225, 208, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(92, 225, 208, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .menu:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-glass {
  background: rgba(255, 255, 255, 0.08); color: var(--text);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--edge-hi);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 1px 0 var(--edge-hi); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-full { width: 100%; }

/* Nav */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(var(--wrap), calc(100% - 24px));
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: rgba(10, 22, 27, 0.55);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 10px 30px rgba(0, 0, 0, 0.3);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--head); }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: #d6e3e2; }
.nav nav a:hover { color: var(--teal); }
.menu { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 72px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.92) 0%, rgba(7, 16, 20, 0.6) 50%, rgba(7, 16, 20, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    url("assets/hero.jpg") center / cover no-repeat;
}
.hero-inner {
  position: relative; width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--edge);
  font-size: 13px; color: #d6e6e4;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin: 22px 0 18px; }
h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: 18px; color: #c5d4d3; max-width: 30em; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.chips li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle; }
.hero-shot { margin: 0; padding: 10px; border-radius: 24px; }
.hero-shot img { border-radius: 16px; }

/* Sections */
.section { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; padding: 80px 0 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.head p { margin: 0; color: var(--muted); max-width: 28em; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { padding: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--teal); margin-bottom: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card.wide { grid-column: span 4; background: linear-gradient(120deg, rgba(92, 225, 208, 0.16), rgba(255, 255, 255, 0.05) 60%); }
.card.wide p { max-width: 44em; }

.versions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ver { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.num { font: 600 30px var(--head); letter-spacing: -0.02em; }
.state { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.state.ok { background: rgba(92, 225, 208, 0.15); color: var(--teal); border: 1px solid rgba(92, 225, 208, 0.35); }
.state.soon { background: rgba(255, 255, 255, 0.07); color: #d3dedd; border: 1px solid var(--edge); }

.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl { padding: 26px; display: flex; flex-direction: column; }
.dl-top { display: flex; align-items: center; gap: 16px; }
.dl-top h3 { font-size: 22px; }
.meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.dl-app-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1px var(--edge); }
.dl ol { margin: 22px 0 24px; padding-left: 20px; color: #cddbda; flex: 1; }
.dl li { margin-bottom: 8px; }
.dl li::marker { color: var(--teal); font-weight: 700; }
.note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.faq { padding-bottom: 20px; }
.faq details { max-width: 820px; }
details { padding: 0; margin-bottom: 10px; border-radius: 16px; }
summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font: 600 17px var(--head); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 24px; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

footer {
  width: min(var(--wrap), calc(100% - 40px)); margin: 80px auto 0; padding: 28px 0 40px;
  border-top: 1px solid var(--edge);
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
footer .brand { font-size: 17px; color: var(--text); }
footer p { margin: 0; }
footer p:last-child { margin-left: auto; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav { gap: 12px; padding: 8px 8px 8px 14px; }
  .nav nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 10px;
    background: rgba(10, 22, 27, 0.92); border: 1px solid var(--edge); border-radius: 16px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 10px; border-radius: 10px; }
  .nav nav a:hover { background: rgba(255, 255, 255, 0.06); }
  .nav .btn-small { margin-left: auto; }
  .menu {
    display: grid; place-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0; border-radius: 12px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--edge); cursor: pointer;
  }
  .menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .hero { padding: 104px 0 48px; min-height: 0; }
  .hero-bg { background:
    linear-gradient(180deg, rgba(7, 16, 20, 0.75) 0%, rgba(7, 16, 20, 0.85) 60%, var(--bg) 100%),
    url("assets/hero.jpg") center / cover no-repeat; }
  .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .section { padding-top: 64px; width: calc(100% - 32px); }
  .hero-inner, footer { width: calc(100% - 32px); }
  .grid, .versions, .downloads { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .ver { flex-direction: row; align-items: center; justify-content: space-between; }
  .num { font-size: 24px; }
  footer p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after, .menu span { transition: none; }
}
