:root {
  --bg-root: #07070a;
  --bg-surface: #0c0c10;
  --bg-card: #111116;
  --bg-card-hover: #16161d;
  --bg-elevated: #1a1a22;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #eeeef0;
  --text-secondary: #8b8b97;
  --text-muted: #55555f;

  --accent: #00e5c8;
  --accent-hover: #2ef0d6;
  --accent-fg: #001915;
  --accent-dim: rgba(0, 229, 200, 0.08);
  --accent-glow: rgba(0, 229, 200, 0.25);

  --danger: #ff4466;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-display: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-root);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

.accent {
  color: var(--accent);
}

.accent-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #5ea8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7, 7, 10, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-name {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  margin-left: 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-massive {
  padding: 20px 32px;
  font-size: 17px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 40% at 50% 0%,
      rgba(0, 229, 200, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 80% 50% at 50% 100%,
      rgba(94, 168, 255, 0.08) 0%,
      transparent 60%
    );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.hero-logo {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}

.hero-logo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 1;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--text-primary);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title br {
  display: none;
}

.hero-title span {
  display: block;
}

@media (max-width: 680px) {
  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.2;
  }
}

.hero-tagline {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta .dot {
  opacity: 0.4;
}

/* ── Sections ─────────────────────────────────── */
.section-head {
  max-width: var(--max-w);
  margin: 0 auto 56px;
  padding: 0 32px;
  text-align: center;
}

.kicker,
.story-kicker,
.download-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Features ─────────────────────────────────── */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--c);
  border-radius: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Story ────────────────────────────────────── */
.story {
  padding: 100px 32px;
  background:
    radial-gradient(
      ellipse 50% 40% at 50% 50%,
      rgba(0, 229, 200, 0.06) 0%,
      transparent 60%
    );
}

.story-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.story-body {
  margin-top: 32px;
  text-align: left;
}

.story-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.story-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.story-sig {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent) !important;
  font-size: 16px !important;
  margin-top: 28px !important;
  text-align: right;
}

/* ── Download ─────────────────────────────────── */
.download {
  padding: 100px 32px;
}

.download-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 48px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 200, 0.1) 0%,
    transparent 70%
  );
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 20px 80px rgba(0, 229, 200, 0.1);
}

.download-head {
  margin-bottom: 40px;
}

.download-head p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 520px;
  margin: 16px auto 0;
  line-height: 1.6;
}

.download-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
  .download-card { padding: 36px 24px; }
  .download-specs { grid-template-columns: repeat(2, 1fr); }
}

.spec {
  text-align: center;
}

.spec-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.spec-value.accent {
  color: var(--accent);
}

.install-notes {
  margin-top: 28px;
  padding: 20px;
  background: var(--bg-root);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
}

.install-notes summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-notes summary::before {
  content: '▸';
  color: var(--accent);
  transition: transform 0.2s ease;
  display: inline-block;
}

.install-notes[open] summary::before {
  transform: rotate(90deg);
}

.install-notes ol {
  padding-left: 22px;
  margin-top: 14px;
  line-height: 1.8;
}

.install-notes code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--accent);
}

/* ── Verify card ──────────────────────────────── */
.verify-card {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.verify-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.verify-shield {
  color: #22dd88;
  flex-shrink: 0;
  margin-top: 2px;
}

.verify-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.verify-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.verify-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.verify-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
}

.verify-row-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verify-row-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.verify-row-value code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-root);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.copy-btn {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.verify-actions .btn {
  align-self: flex-start;
}

.verify-howto {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.verify-howto summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 500;
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verify-howto summary::before {
  content: '▸';
  color: var(--accent);
  transition: transform 0.2s ease;
}

.verify-howto[open] summary::before {
  transform: rotate(90deg);
}

.verify-howto p {
  margin: 10px 0;
  line-height: 1.6;
}

.verify-howto pre {
  background: var(--bg-root);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  overflow-x: auto;
}

@media (max-width: 600px) {
  .verify-card { padding: 24px 20px; }
  .verify-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Donate ───────────────────────────────────── */
.donate {
  padding: 80px 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.donate-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.donate-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  background: rgba(255, 68, 102, 0.1);
  color: var(--danger);
  border-radius: 16px;
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.donate h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.donate p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────── */
.footer {
  padding: 40px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .nav { padding: 14px 20px; }
  .nav-actions { gap: 2px; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .hero { padding: 56px 20px 80px; }
  .features { padding: 70px 0; }
  .story, .download, .donate, .footer { padding-left: 20px; padding-right: 20px; }
  .story, .download, .donate { padding-top: 70px; padding-bottom: 70px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { align-items: center; }
}
