@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0c0c12;
  --bg-card:    #13131c;
  --bg-subtle:  #1a1a28;
  --border:     rgba(255,255,255,0.08);
  --border-mid: rgba(255,255,255,0.13);
  --text:       #e8e8f0;
  --text-muted: #888899;
  --text-dim:   #555566;
  --accent:     #ff4e1f;
  --accent-glow:rgba(255,78,31,0.25);
  --accent-soft:#ff7043;
  --success:    #34d399;
  --radius:     10px;
  --radius-lg:  16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.nav-brand span { color: var(--accent-soft); }

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

nav a:not(.nav-brand) {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

nav a:not(.nav-brand):hover {
  color: var(--text);
  background: var(--bg-subtle);
}

nav a.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 7px;
  margin-left: 6px;
}

nav a.nav-cta:hover {
  background: var(--accent-soft) !important;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px; }
h2 { font-size: 1.35rem; margin-top: 48px; margin-bottom: 16px; }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 28px; margin-bottom: 10px; }

p { margin-bottom: 16px; color: var(--text); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 20px; margin-bottom: 16px; }
li { margin-bottom: 8px; }

strong { font-weight: 600; color: #fff; }

code {
  background: var(--bg-subtle);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.875em;
  color: var(--accent-soft);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

/* ── Tagline / Hero text ──────────────────────────────────────────────────── */
.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

/* ── CTA Button ───────────────────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.cta:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  margin-left: 12px;
}

.cta-secondary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  text-decoration: none;
}

/* ── Notice / callout ─────────────────────────────────────────────────────── */
.notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 32px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.notice strong { color: var(--text); }

/* ── Update banner ────────────────────────────────────────────────────────── */
.update-banner {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 3px;
}
.update-banner a { color: #fbbf24; text-decoration: underline; }

/* ── Platform tags ────────────────────────────────────────────────────────── */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.platform-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.platform-tag img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.platform-tag--soon {
  opacity: 0.75;
  border-style: dashed;
}

.soon-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  margin-left: 3px;
}

.platform-tag .icon-wrap {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-meta {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* ── Install steps ────────────────────────────────────────────────────────── */
.steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-mid);
  color: var(--accent-soft);
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer a { color: var(--text-dim); }
footer a:hover { color: var(--text-muted); text-decoration: none; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.2s; }
.fade-up-4 { animation-delay: 0.28s; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-wrapper { padding: 0 18px 60px; }
  nav { padding: 20px 0 32px; margin-bottom: 48px; flex-wrap: nowrap; }
  .nav-brand { font-size: 0.9rem; }
  .nav-icon { width: 18px; height: 18px; margin-right: 5px; }
  nav a:not(.nav-brand) { font-size: 0.8rem; padding: 5px 8px; }
  nav a.nav-cta { padding: 6px 11px; margin-left: 4px; }
  .cta-secondary { margin-left: 0; margin-top: 10px; }
  h1 { font-size: 1.9rem; }
}
