/* ── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --magenta: #FF00FF;
  --magenta-dim: #cc00cc;
  --magenta-glow: rgba(255, 0, 255, 0.15);
  --magenta-glow-strong: rgba(255, 0, 255, 0.3);
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --bg-card: #161616;
  --border: #222222;
  --border-light: #2a2a2a;
  --text: #e0e0e0;
  --text-dim: #888888;
  --text-bright: #ffffff;
  --code-bg: #0d0d0d;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--magenta);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text-bright);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-raised);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ── Navigation ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo:hover {
  color: var(--magenta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-bright);
}

.nav-github {
  display: flex;
  align-items: center;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--magenta);
  color: var(--bg);
  border-color: var(--magenta);
}

.btn-primary:hover {
  background: var(--magenta-dim);
  border-color: var(--magenta-dim);
  color: var(--bg);
  box-shadow: 0 0 20px var(--magenta-glow);
}

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

.btn-secondary:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--magenta-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px var(--magenta-glow-strong));
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.35rem;
  color: var(--text);
  max-width: 550px;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* ── Code Block (Hero) ───────────────────────────────────── */

.hero-code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.code-filename {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-code pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.hero-code code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Syntax Highlighting */
.kw { color: var(--magenta); }
.type { color: #79c0ff; }
.fn { color: #d2a8ff; }
.str { color: #a5d6ff; }
.num { color: #ffa657; }
.mod { color: #7ee787; }
.alias { color: #ffa657; }
.param { color: #e0e0e0; }
.ct { color: #ff7b72; }
.sh-comment { color: #484f58; }

/* ── Sections ────────────────────────────────────────────── */

.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ── Philosophy ──────────────────────────────────────────── */

.philosophy {
  border-top: 1px solid var(--border);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.philosophy-col h3 {
  font-size: 1.2rem;
  color: var(--magenta);
  margin-bottom: 1rem;
  font-weight: 600;
}

.philosophy-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.philosophy-col li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}

.philosophy-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light);
}

.philosophy-col li strong {
  color: var(--text-bright);
}

/* ── Features ────────────────────────────────────────────── */

.features {
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 20px var(--magenta-glow);
}

.feature-icon {
  color: var(--magenta);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.feature-card code {
  color: var(--magenta);
  background: rgba(255, 0, 255, 0.08);
}

/* ── Platforms ────────────────────────────────────────────── */

.platforms {
  border-top: 1px solid var(--border);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  text-align: center;
}

.platform-card.active {
  border-color: var(--magenta);
  box-shadow: 0 0 15px var(--magenta-glow);
}

.platform-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--text-dim);
}

.platform-card.active .platform-status {
  color: var(--magenta);
}

.platform-card h3 {
  font-size: 1.2rem;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.platform-card.upcoming h3 {
  color: var(--text-dim);
}

.platform-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── Get Started ─────────────────────────────────────────── */

.get-started {
  border-top: 1px solid var(--border);
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.install-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  color: var(--magenta);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.code-block pre {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-block code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.get-started-links {
  display: flex;
  gap: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-bright);
}

.footer-license {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links a:not(.nav-github) {
    display: none;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
