:root {
  --bg: #0a0e17;
  --bg2: #0f1524;
  --panel: #141b2d;
  --panel2: #1a2338;
  --border: #263049;
  --text: #e6ebf5;
  --muted: #8b96ad;
  --accent: #f59e0b;
  --accent2: #fbbf24;
  --green: #22c55e;
  --blue: #38bdf8;
  --red: #ef4444;
  --purple: #a78bfa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(245,158,11,0.10), transparent),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(56,189,248,0.08), transparent),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--blue); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #1a1206 !important; padding: 8px 18px;
  border-radius: 8px; font-weight: 700 !important;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 24px 80px; text-align: center;
  background:
    linear-gradient(180deg, rgba(10,14,23,0.55) 0%, rgba(10,14,23,0.75) 55%, var(--bg) 100%),
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(245,158,11,0.10), transparent),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(56,189,248,0.08), transparent),
    url("hero-banner.jpg") center 30% / cover no-repeat,
    var(--bg);
}
.hero .tag {
  display: inline-block; background: rgba(245,158,11,0.12); color: var(--accent2);
  border: 1px solid rgba(245,158,11,0.3); padding: 6px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 20px; line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p.sub {
  color: var(--muted); font-size: 1.2rem; max-width: 640px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #d97706); color: #1a1206; box-shadow: 0 8px 24px rgba(245,158,11,0.3); }
.btn-secondary { background: #5865F2; color: #fff; box-shadow: 0 8px 24px rgba(88,101,242,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 48px; }

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

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card.soon { opacity: 0.72; }
.soon-badge {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: rgba(139,150,173,0.15); color: var(--muted); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 999px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; max-width: 700px; margin: 0 auto; }
.step-item {
  display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  counter-increment: step; min-width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--border); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step-num::before { content: counter(step); }
.step-content h4 { margin: 0 0 6px; }
.step-content p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(56,189,248,0.08));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 60px 24px;
}

/* ---------- Footer ---------- */
footer { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); margin: 0 10px; }

/* ---------- Docs page ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: 1080px; margin: 40px auto; padding: 0 24px; }
.docs-side { position: sticky; top: 90px; align-self: start; }
.docs-side h4 { color: var(--muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; margin-bottom: 12px; }
.docs-side ul { list-style: none; padding: 0; margin: 0 0 24px; }
.docs-side li { margin-bottom: 8px; }
.docs-side a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.docs-side a:hover { color: var(--accent); }
.docs-content h2 { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-top: 48px; }
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { color: var(--accent2); }
.docs-content code {
  background: #0b1220; border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 8px; font-family: Consolas, Monaco, monospace; font-size: 0.9em; color: #7dd3fc;
}
.docs-content pre {
  background: #0b1220; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto;
}
.docs-content pre code { border: none; padding: 0; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.docs-content th, .docs-content td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.docs-content th { color: var(--muted); }
.callout { border-radius: 10px; padding: 14px 18px; margin: 16px 0; border-left: 4px solid; }
.callout.note { background: rgba(56,189,248,0.08); border-color: var(--blue); }
.callout.warn { background: rgba(239,68,68,0.08); border-color: var(--red); }
.callout.tip { background: rgba(34,197,94,0.08); border-color: var(--green); }
.callout b { display: block; margin-bottom: 4px; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; gap: 4px; align-items: center; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--border); }
.lang-switch a {
  color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
}
.lang-switch a:hover { color: var(--text); background: var(--panel2); }
.lang-switch a.active { color: var(--accent2); background: rgba(245,158,11,0.1); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 26px; display: flex; flex-direction: column; position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.price-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(245,158,11,0.15); }
.price-card.platinum { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), 0 12px 32px rgba(167,139,250,0.15); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a1206; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card.platinum .price-badge { background: var(--purple); color: #1a1206; }
.price-name { font-size: 1.05rem; font-weight: 700; margin: 8px 0 4px; }
.price-amount { font-size: 2.2rem; font-weight: 800; margin: 8px 0 0; }
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.82rem; margin: 2px 0 18px; }
.price-features { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text); }
.price-features li:last-child { border-bottom: none; }
.price-features li.included-from { color: var(--muted); font-size: 0.85rem; font-style: italic; }
.price-cap { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 12px; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.pricing-foot a { color: var(--blue); }

/* ---------- Tier badges (docs) ---------- */
.tier-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
  text-transform: uppercase;
}
.tier-badge.t1 { background: rgba(56,189,248,0.12); color: var(--blue); border: 1px solid rgba(56,189,248,0.35); }
.tier-badge.t2 { background: rgba(167,139,250,0.12); color: var(--purple); border: 1px solid rgba(167,139,250,0.35); }
.tier-badge.t3 { background: rgba(245,158,11,0.12); color: var(--accent2); border: 1px solid rgba(245,158,11,0.35); }
.tier-badge.t4 { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.35); }
.tier-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; font-size: 0.85rem; }
.tier-legend div { display: flex; align-items: center; gap: 8px; color: var(--muted); }

/* ---------- Download grid (per-tier installers) ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 36px 0 20px; text-align: left; }
.download-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.download-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); }
.download-card h4 { margin: 4px 0 0; font-size: 1rem; }
.download-card p { margin: 0; color: var(--muted); font-size: 0.85rem; flex-grow: 1; }
.download-card .btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 0.9rem; }

/* ---------- Beta notice / single download ---------- */
.beta-panel {
  max-width: 640px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 32px; text-align: center;
}
.beta-panel .price-badge { position: static; transform: none; display: inline-block; margin-bottom: 14px; }
.beta-panel p { color: var(--muted); margin: 0 0 22px; }
.beta-banner {
  display: flex; align-items: center; gap: 12px; background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3); border-radius: 12px; padding: 14px 18px;
  margin: 0 0 32px; font-size: 0.9rem; color: var(--text);
}

@media (max-width: 800px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .nav-links { display: none; }
}
