:root {
  /* Nord Polar Night */
  --pn0: #2e3440;
  --pn1: #3b4252;
  --pn2: #434c5e;
  --pn3: #4c566a;
  /* Nord Snow Storm */
  --sn0: #d8dee9;
  --sn1: #e5e9f0;
  --sn2: #eceff4;
  /* Nord Frost */
  --frost0: #8fbcbb;
  --frost1: #88c0d0;
  --frost2: #81a1c1;
  --frost3: #5e81ac;
  /* Nord Aurora */
  --aurora-green: #a3be8c;
  --aurora-yellow: #ebcb8b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--pn0);
  color: var(--sn2);
  min-height: 100vh;
}

a {
  color: var(--frost1);
  text-decoration: none;
}
a:hover { color: var(--frost0); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--pn2);
  position: sticky;
  top: 0;
  background: rgba(46, 52, 64, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--frost1);
  color: var(--pn0);
  font-weight: 800;
  font-size: 18px;
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.topbar-nav a {
  color: var(--sn0);
  font-size: 14px;
}

.topbar-admin {
  padding: 6px 14px;
  border: 1px solid var(--pn3);
  border-radius: 8px;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 18px;
  color: var(--sn0);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--frost1);
  color: var(--pn0);
}
.btn-primary:hover { background: var(--frost0); color: var(--pn0); }

.btn-ghost {
  background: transparent;
  color: var(--sn2);
  border-color: var(--pn3);
}
.btn-ghost:hover { background: var(--pn1); }

section {
  padding: 56px 0;
  border-top: 1px solid var(--pn1);
}

section h2 {
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

section .muted {
  color: var(--sn0);
  margin: 0 0 32px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--pn1);
  border: 1px solid var(--pn2);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}
.download-card:hover { border-color: var(--frost2); }

.download-icon {
  font-size: 40px;
  line-height: 1;
}

.download-card h3 {
  margin: 0;
  font-size: 22px;
}

.download-card p {
  margin: 0;
  color: var(--sn0);
}

.download-btn {
  margin-top: auto;
  text-align: center;
}

.version-note {
  font-size: 12px;
  color: var(--pn3);
  margin: 0;
}

.how-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.how-steps li {
  background: var(--pn1);
  border: 1px solid var(--pn2);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  counter-increment: step;
}
.how-steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--frost3);
  color: var(--sn2);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.how-steps li strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.trust ul {
  padding-left: 20px;
  color: var(--sn0);
}
.trust li { margin: 8px 0; }

.footer {
  border-top: 1px solid var(--pn1);
  padding: 32px 24px;
  text-align: center;
  color: var(--pn3);
  font-size: 13px;
}
.footer a { color: var(--pn3); }
.footer a:hover { color: var(--sn0); }
