@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

html { scroll-behavior: smooth; }

:root {
  --bg: #0f1115;
  --bg-2: #131721;
  --ink: #e6ebf5;
  --muted: #a6b0c2;
  --accent: #23d18b;
  --accent-2: #4aa7ff;
  --card: #161b26;
  --stroke: #2a3142;
  --glow: rgba(35, 209, 139, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(74,167,255,0.14), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(35,209,139,0.16), transparent 55%),
    linear-gradient(180deg, #0f1115 0%, #0f1115 100%);
  z-index: -2;
}
.bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 6vw;
  padding: 10px 14px;
  background: var(--accent);
  color: #08120d;
  font-weight: 600;
  border-radius: 10px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 24px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #0b0e13;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.logo-fallback {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #08120d;
  font-weight: 700;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.logo-fallback.show {
  display: inline-flex;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.tag {
  color: var(--muted);
  font-size: 13px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:hover { color: var(--ink); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-btn.is-active {
  background: var(--accent);
  color: #08120d;
}

main {
  padding: 0 6vw 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 32px 0 48px;
  align-items: center;
}

h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 12px;
}

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-weight: 600;
}

.btn.primary {
  background: linear-gradient(135deg, #2ade9a 0%, var(--accent) 50%, #1eb872 100%);
  color: #08120d;
  border-color: transparent;
  box-shadow: 0 12px 24px var(--glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px var(--glow), 0 0 0 1px rgba(255,255,255,0.15) inset; }
.btn.primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn.ghost {
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn.ghost:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.btn.ghost:focus-visible { outline: 2px solid var(--stroke); outline-offset: 2px; }

.meta {
  font-size: 13px;
  color: var(--muted);
}
.freeware {
  font-size: 13px;
  color: var(--accent);
  margin: 8px 0 0 0;
  font-weight: 500;
}

.hero-card {
  background: radial-gradient(120% 120% at 30% 0%, #1d2433 0%, #101521 60%);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
  overflow: hidden;
  animation: heroCardIn 0.5s ease-out;
}
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; }
}
.hero-card .window { border-radius: 0 0 14px 14px; border-width: 0 1px 1px; }
.hero-card .window-body { padding: 18px; }

.window {
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.window-bar {
  height: 28px;
  background: linear-gradient(180deg, #3d4558 0%, #2a3142 100%);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.window-bar::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 0 #febc2e, 36px 0 0 0 #28c840;
}

.window-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.stat {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  border-radius: 10px;
  background: #111722;
}

.stat-title { color: var(--muted); }

.chip {
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f1a17;
  border: 1px solid #1e3b2f;
  color: #b8f1d7;
  font-size: 13px;
}

.section-title {
  margin: 36px 0 18px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px 18px 18px 20px;
  min-height: 120px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-left: 3px solid transparent;
}
.card:hover {
  border-color: rgba(35, 209, 139, 0.4);
  border-left-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  color: var(--muted);
  font-size: 14px;
}

#features { scroll-margin-top: 24px; }
#download {
  scroll-margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 49, 66, 0.6);
  margin-top: 48px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dl {
  display: block;
  background: linear-gradient(180deg, #141b28 0%, #101824 100%);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.dl:hover {
  background: linear-gradient(180deg, #1a2232 0%, #151d2e 100%);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 167, 255, 0.12);
}
.dl:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.about {
  margin-top: 48px;
  padding: 32px 24px;
  background: rgba(19, 23, 33, 0.6);
  border-radius: 16px;
  border: 1px solid var(--stroke);
}
.about p {
  color: var(--muted);
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--stroke);
  padding: 18px 6vw 30px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .features .grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  h1 { font-size: 36px; }

  .features .grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}
