/* ─── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a1a;
  --bg-section: #0f0f2a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text: #e4e4f0;
  --text-muted: #9a9ab8;
  --accent-1: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --accent-4: #06b6d4;
  --gradient-main: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --gradient-card: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(168, 85, 247, 0.08)
  );
  --gradient-good: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.12),
    rgba(6, 182, 212, 0.08)
  );
  --gradient-bad: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.12),
    rgba(249, 115, 22, 0.08)
  );
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent-4);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-2);
}

code {
  background: rgba(99, 102, 241, 0.15);
  color: #c4b5fd;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: "Fira Code", "Cascadia Code", monospace;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(168, 85, 247, 0.1) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.tagline {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-badges img {
  height: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--text);
}

/* ─── Sections ────────────────────────────────────────────────── */
.section {
  padding: 90px 0;
}

.section-dark {
  background: var(--bg-section);
}

/* ─── Cards Grid ──────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #fff;
}

.card-detect {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-result {
  font-size: 0.85rem;
  color: var(--accent-4);
}

/* ─── Steps ───────────────────────────────────────────────────── */
.steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  transition: all 0.3s;
}
.step:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step p {
  font-size: 0.95rem;
}

/* ─── Terminal ────────────────────────────────────────────────── */
.terminal {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #28c840;
}

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}

.terminal pre {
  padding: 20px;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  font-family: "Fira Code", "Cascadia Code", monospace;
}

.terminal code {
  background: none;
  padding: 0;
  color: var(--text-muted);
}

.terminal .prompt {
  color: var(--accent-4);
}
.terminal .out {
  color: var(--text-muted);
}
.terminal .success {
  color: #34d399;
  font-weight: 600;
}

/* ─── Install ─────────────────────────────────────────────────── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.install-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px;
}

.install-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.code-block {
  position: relative;
  background: #1a1a2e;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block pre {
  padding: 16px;
  overflow-x: auto;
  font-size: 0.82rem;
  font-family: "Fira Code", "Cascadia Code", monospace;
  line-height: 1.6;
}

.code-block code {
  background: none;
  padding: 0;
  color: #c4b5fd;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.copy-btn:hover {
  background: rgba(99, 102, 241, 0.4);
}

/* ─── Detection Grid ─────────────────────────────────────────── */
.detection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.detect-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: all 0.3s;
}
.detect-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.detect-item h4 {
  margin-bottom: 8px;
  color: #fff;
}

.detect-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.port-priority {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.port-priority h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.port-priority ol {
  list-style: none;
  counter-reset: port-step;
  padding: 0;
}

.port-priority li {
  counter-increment: port-step;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.port-priority li::before {
  content: counter(port-step) ".";
  font-weight: 700;
  margin-right: 10px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Comparison ──────────────────────────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.compare-col {
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-bad {
  background: var(--gradient-bad);
}

.compare-good {
  background: var(--gradient-good);
  border-color: rgba(34, 197, 94, 0.2);
}

.compare-col h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.compare-col ul {
  list-style: none;
  padding: 0;
}

.compare-col li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.compare-bad li::before {
  content: "✗ ";
  color: #ef4444;
}

.compare-good li::before {
  content: "✓ ";
  color: #34d399;
}

/* ─── Release Cards ───────────────────────────────────────────── */
.release-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.release-card {
  display: block;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 40px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  min-width: 200px;
}
.release-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
  color: var(--text);
}

.release-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.release-card h4 {
  color: #fff;
  margin-bottom: 4px;
}

.release-file {
  font-family: "Fira Code", monospace;
  color: var(--accent-4);
  font-size: 0.9rem;
}

.release-size {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.release-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, var(--bg-dark) 0%, #080818 100%);
}

footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* ─── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.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: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  .hero {
    padding: 80px 0 60px;
  }
  .section {
    padding: 60px 0;
  }
  h2 {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .install-grid {
    grid-template-columns: 1fr;
  }
}
