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

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #030307;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Aurora Background ────────────────────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.aurora-1 {
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 229, 191, 0.06), transparent 70%);
}

.aurora-2 {
  background: radial-gradient(ellipse 60% 80% at 80% 60%, rgba(139, 124, 240, 0.06), transparent 70%);
}

.aurora-3 {
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(240, 98, 160, 0.04), transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #00e5bf, #8b7cf0);
  box-shadow: 0 0 32px rgba(0, 229, 191, 0.3);
  animation: float-y 6s ease-in-out infinite;
}

.logo-text {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f0f0f5 40%, #8b7cf0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.version-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.25rem;
  align-self: flex-end;
  margin-bottom: 0.625rem;
}

.version-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5bf;
  box-shadow: 0 0 6px #00e5bf;
}

.tagline {
  max-width: 620px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.5rem;
}

.tagline strong {
  color: rgba(255, 255, 255, 0.85);
}

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

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #00e5bf, #00c4a0);
  color: #030307;
  box-shadow: 0 0 24px rgba(0, 229, 191, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(0, 229, 191, 0.3);
}

.btn-secondary {
  background: rgba(139, 124, 240, 0.12);
  color: #8b7cf0;
  border: 1px solid rgba(139, 124, 240, 0.25);
}

.btn-secondary:hover {
  background: rgba(139, 124, 240, 0.18);
  box-shadow: 0 0 24px rgba(139, 124, 240, 0.15);
}

/* ── Social row ───────────────────────────────────────────── */

.social-row {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s;
}

.social-link:hover {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.social-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

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

.section {
  padding: 4rem 1.5rem;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 2rem;
  }
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00e5bf;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.section-text:last-child {
  margin-bottom: 0;
}

.section-text.strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ── Divider ───────────────────────────────────────────────── */

.divider {
  max-width: 1000px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.06) 80%, transparent);
}

/* ── Steps / Pipeline ──────────────────────────────────────── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s, border-color 0.2s;
}

.step:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,229,191,0.15), rgba(139,124,240,0.15));
  border: 1px solid rgba(0,229,191,0.2);
  font-size: 0.875rem;
  font-weight: 700;
  color: #00e5bf;
  font-family: "Outfit", "Inter", system-ui, sans-serif;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 0.375rem;
}

.step p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.step p strong {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Changelog Grid ─────────────────────────────────────────── */

.changelog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .changelog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .changelog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.change-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.change-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.change-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.change-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 0.5rem;
}

.change-card p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Code blocks ───────────────────────────────────────────── */

code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  word-break: break-all;
}

.code-block {
  display: block;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow-x: auto;
  margin-top: 0.5rem;
  line-height: 1.7;
}

.code-block code {
  background: none;
  padding: 0;
  color: #00e5bf;
  font-size: 0.875rem;
}

kbd {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── CLI Reference ─────────────────────────────────────────── */

.cli-reference {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cli-reference h3 {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 0.5rem;
}

.cli-reference > p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}

.cli-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.cli-table th {
  text-align: left;
  padding: 0.625rem 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cli-table td {
  padding: 0.625rem 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cli-table tr:last-child td {
  border-bottom: none;
}

.cli-table td:first-child code {
  color: #00e5bf;
  font-size: 0.8125rem;
  word-break: keep-all;
  white-space: nowrap;
}

/* ── Misc ──────────────────────────────────────────────────── */

.arrow-icon {
  opacity: 0.25;
  flex-shrink: 0;
}

/* ── Link Cards ───────────────────────────────────────────── */

.link-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .link-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.link-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.link-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 0.125rem;
}

.link-card p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #00e5bf, #8b7cf0);
}

.footer-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.footer-tag {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

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

.footer-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-badge {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Animation ────────────────────────────────────────────── */

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@media (max-width: 639px) {
  .logo-wrap {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 2.5rem;
  }

  .version-badge {
    align-self: center;
    margin-left: 0;
    margin-bottom: 0;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero {
    min-height: 90vh;
    padding: 4rem 1rem 3rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
