:root {
  --bg: #07111f;
  --bg-deep: #050c16;
  --bg-soft: #0c1828;
  --panel: rgba(10, 19, 33, .72);
  --panel-strong: rgba(8, 15, 27, .88);
  --panel-soft: rgba(18, 32, 53, .56);
  --line: rgba(139, 177, 255, .15);
  --line-strong: rgba(139, 177, 255, .28);
  --text: #eef4ff;
  --muted: #9fb0cb;
  --soft: #cdd8ea;
  --accent: #71a8ff;
  --accent-2: #8dd8ff;
  --accent-3: #4c7dff;
  --ok: #56d4a7;
  --warn: #f0b16d;
  --max: 1180px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --shadow-soft: 0 18px 50px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(113, 168, 255, .22), transparent 0 26%),
    radial-gradient(circle at 88% 14%, rgba(141, 216, 255, .12), transparent 0 18%),
    radial-gradient(circle at 78% 72%, rgba(86, 212, 167, .10), transparent 0 18%),
    linear-gradient(180deg, #07111f 0%, #081525 38%, #091120 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(150, 182, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 182, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.56), transparent 84%);
}

body::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(76, 125, 255, .11), transparent 0 22%),
    radial-gradient(circle at 82% 78%, rgba(141, 216, 255, .07), transparent 0 20%);
  filter: blur(16px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 14px;
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  background: rgba(6, 12, 22, .62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: .01em;
}

.brand-text span {
  font-size: .79rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--muted);
  border-radius: 999px;
  transition: .22s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.nav a.cta {
  color: #08111d;
  background: linear-gradient(135deg, #d7e6ff 0%, #8dd8ff 100%);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(113, 168, 255, .2);
}

.nav a.cta:hover,
.nav a.cta.active {
  transform: translateY(-1px);
  color: #08111d;
  background: linear-gradient(135deg, #edf4ff 0%, #9ce1ff 100%);
}

.nav a.cta.active::after { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

main { position: relative; z-index: 1; }
.page-hero {
  padding: 44px 0 10px;
}

.hero-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: stretch;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 34%, transparent 66%, rgba(141,216,255,.045));
}

.hero-copy,
.card,
.download-box {
  padding: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #d9e8ff;
  background: rgba(113, 168, 255, .12);
  border: 1px solid rgba(113, 168, 255, .18);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: -.03em;
  max-width: 13ch;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.2;
}

.lead,
.copy,
.card p,
ul,
.copy-muted {
  color: var(--muted);
}

.lead {
  max-width: 62ch;
  font-size: 1rem;
}

.badge-row,
.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-row { margin: 8px 0 24px; }

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 216, 255, .14);
  background: rgba(255,255,255,.04);
  color: var(--soft);
  font-size: .86rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  transition: .22s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  color: #08111d;
  background: linear-gradient(135deg, #d8e7ff 0%, #8dd8ff 100%);
  box-shadow: 0 14px 30px rgba(113, 168, 255, .2);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}

.hero-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(16, 28, 47, .92), rgba(8, 15, 27, .88));
}

.preview {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.preview img {
  width: 100%;
  height: auto;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
}

.mini-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
}

.mini-item span {
  color: var(--muted);
  font-size: .92rem;
}

.section {
  padding: 18px 0 8px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.card {
  min-height: 100%;
}

.card:hover,
.download-box:hover,
.hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 216, 255, .22);
}

.card,
.download-box,
.hero-card,
.panel {
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.card ul,
.download-box ul {
  padding-left: 18px;
  margin: 0;
}

.card li,
.download-box li {
  margin-bottom: 8px;
}

.status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(86, 212, 167, .1);
  color: #bef4df;
  border: 1px solid rgba(86, 212, 167, .2);
  font-size: .84rem;
  font-weight: 700;
}

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(240,177,109,.18);
  background: rgba(240,177,109,.08);
  color: #efd6b4;
}

.footer {
  padding: 26px 0 38px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(7, 13, 24, .5);
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .topbar {
    padding-top: 10px;
  }

  .topbar-inner {
    min-height: 70px;
    border-radius: 24px;
  }

  .brand-text span {
    max-width: 180px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    background: rgba(6, 12, 22, .94);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 50px rgba(0,0,0,.28);
  }

  .nav.open { display: flex; }

  .nav a,
  .nav a.cta {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav a.active::after { display: none; }

  .hero-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .card,
  .download-box { padding: 22px; }

  .page-hero { padding-top: 30px; }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.45rem);
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .topbar-inner {
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: .96rem;
  }

  .brand-text span {
    max-width: 128px;
    font-size: .72rem;
  }

  .badge-row,
  .hero-actions,
  .download-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    padding: 14px;
  }
}
