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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --text: #e5e5e5;
  --text-dim: #888888;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  margin: 16px 0 8px;
  font-weight: 400;
}

.hero .sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 40px;
  opacity: 0.7;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 12px;
}

.btn-outline:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* ── Sections ── */
section { padding: 100px 0; }

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-dim);
  max-width: 600px;
  font-size: 1.05rem;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc { margin: 0 auto; }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: #333;
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  counter-reset: step;
}

.step { position: relative; padding-left: 0; text-align: center; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ── Open Source ── */
.oss-section {
  border-top: 1px solid var(--border);
}

.oss-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.oss-box .section-title { margin-bottom: 16px; }

.oss-box p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.oss-box p:last-of-type { margin-bottom: 32px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer span { opacity: 0.5; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }
footer .footer-links { margin-bottom: 12px; }
footer .footer-links a { margin: 0 16px; }

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .oss-box { padding: 32px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .hero-buttons { display: flex; flex-direction: column; align-items: center; gap: 0; }
}

/* ── Install Command ── */
.hero-cta { margin: 2rem 0 1.5rem; }
.install-cmd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--text);
  display: inline-block;
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: all;
}
.install-cmd:hover { border-color: var(--accent); }
.install-cmd code { color: var(--text); }

/* ── Logo ── */
.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}
