:root {
  --bg: #070c15;
  --bg-2: #0b1220;
  --panel: rgba(15, 24, 39, 0.78);
  --panel-solid: #101b2d;
  --border: rgba(148, 177, 214, 0.16);
  --border-strong: rgba(148, 177, 214, 0.28);
  --text: #eef4ff;
  --muted: #9fb0c8;
  --faint: #6c7f9a;
  --accent: #55a8ff;
  --accent-2: #6ee7d8;
  --accent-soft: rgba(85, 168, 255, 0.14);
  --danger: #ff7c88;
  --ok: #65d6a3;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 165, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 210, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 780px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 50% at 28% 30%, rgba(47, 117, 210, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 45% at 78% 12%, rgba(84, 220, 204, 0.12), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

main, .topbar, footer { position: relative; z-index: 1; }

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.topbar nav a:hover { color: var(--text); }
.nav-ghost { color: var(--faint) !important; }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 28px 42px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a9c6e8;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(110, 231, 216, 0.8);
}

h1 {
  margin: 20px 0 20px;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(95deg, #7fc1ff 5%, #6ee7d8 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  margin: 0;
  max-width: 570px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.65;
}

.hero-actions {
  margin: 30px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button.primary {
  color: #06101d;
  background: linear-gradient(135deg, #7cc4ff, #6ee7d8);
  box-shadow: 0 12px 34px rgba(67, 168, 255, 0.24);
}

.button.primary:hover { box-shadow: 0 16px 40px rgba(67, 168, 255, 0.34); }

.button.ghost {
  color: #cfe1f7;
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-strong);
}

.button.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.button.wide { width: 100%; margin-top: 4px; }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 13px;
}

.hero-points li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent-2);
}

.hero-visual { position: relative; min-width: 0; }

.window {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #0d1625;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  transform: perspective(1100px) rotateY(-3deg) rotateX(1deg);
  transform-origin: 60% 50%;
}

.window-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #0a1220;
  border-bottom: 1px solid var(--border);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #31435c;
}

.window-bar span:nth-child(1) { background: #ff6b6b; }
.window-bar span:nth-child(2) { background: #ffc857; }
.window-bar span:nth-child(3) { background: #55d68b; }

.window-bar em {
  margin-left: 10px;
  color: #7f93af;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: top left;
  opacity: 0.94;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(10, 18, 32, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 12px;
}

.float-card strong { display: block; font-size: 12.5px; }
.float-card small { display: block; color: var(--faint); font-size: 10.5px; }

.float-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 800;
  font-family: var(--mono);
}

.float-cache { left: -24px; bottom: -22px; }
.float-terminal { right: -18px; top: 44px; }

.stat-strip {
  max-width: 1124px;
  margin: 26px auto 0;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-strip div { display: flex; flex-direction: column; gap: 2px; }
.stat-strip strong { font-size: 18px; letter-spacing: -0.02em; }
.stat-strip span { color: var(--faint); font-size: 12.5px; }

.features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 28px 40px;
}

.section-head { max-width: 690px; }
.section-head h2, .download h2, .details h2 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-head p, .download-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 31, 51, 0.82), rgba(11, 18, 32, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 216, 0.35);
  background: linear-gradient(160deg, rgba(23, 39, 63, 0.9), rgba(11, 18, 32, 0.7));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid rgba(85, 168, 255, 0.24);
  background: var(--accent-soft);
  color: #8ccaff;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}

.feature h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.details {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 70px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.details-text p { color: var(--muted); font-size: 15.5px; }

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #c6d5e8;
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--accent-2);
  font-weight: 700;
}

.code-card {
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: #0a1321;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.code-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #8399b5;
  font-family: var(--mono);
  font-size: 11.5px;
}

.code-head em { color: #6ee7d8; font-style: normal; }

.code-card pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #c7d7ea;
}

.code-card .c { color: #6c829e; }
.code-card .k { color: #c792ea; }
.code-card .v { color: #ffcb8b; }
.code-card .s { color: #9be3a8; }
.code-card .t { color: #7cc4ff; }
.code-card .f { color: #6ee7d8; }

.code-foot {
  border-top: 1px solid var(--border);
  padding: 9px 16px;
  color: var(--faint);
  font-size: 11.5px;
  font-family: var(--mono);
}

.code-foot .ok { color: var(--ok); margin-right: 7px; }

.download {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 70px 28px 84px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 54px;
  align-items: start;
}

.file-facts {
  margin: 28px 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  display: grid;
  gap: 11px;
}

.file-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.file-facts span { color: var(--faint); }
.file-facts strong { color: #d6e3f4; font-weight: 550; text-align: right; }

.hint { color: var(--faint) !important; font-size: 13px !important; }

.download-card {
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(20, 33, 54, 0.94), rgba(10, 17, 30, 0.92));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.card-head h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.card-head p { margin: 0; color: var(--faint); font-size: 12.5px; }

.lock {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 20px;
}

.field { display: block; margin-bottom: 15px; }
.field > span {
  display: block;
  margin-bottom: 7px;
  color: #b8cbe2;
  font-size: 12.5px;
  font-weight: 550;
}

.field input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(5, 10, 18, 0.55);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: #5f738d; }

.field input:focus {
  border-color: rgba(110, 231, 216, 0.65);
  box-shadow: 0 0 0 3px rgba(110, 231, 216, 0.1);
}

.status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.status.error { color: var(--danger); }
.status.success { color: var(--ok); }

.secure-note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.5;
}

.secure-note span { color: var(--ok); margin-right: 6px; }

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 12.5px;
}

.footer-brand { display: flex; align-items: center; gap: 9px; color: #c6d7eb; font-weight: 650; }
.footer-brand img { border-radius: 6px; }
footer p { margin: 0; }
footer > a { color: #9fc8f2; }
footer > a:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 46px; padding-top: 56px; }
  .hero-visual { max-width: 640px; }
  .float-cache { left: 6px; }
  .float-terminal { right: 4px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .details { grid-template-columns: 1fr; gap: 34px; }
  .download { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar { padding: 18px 18px 0; }
  .topbar nav { gap: 14px; font-size: 13px; }
  .hero, .features, .details, .download, footer { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 42px; }
  .lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; padding-left: 18px; padding-right: 18px; }
  .float-terminal { display: none; }
  .window { transform: none; }
  footer { flex-direction: column; align-items: flex-start; }
  .download-card { padding: 20px; }
}

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