:root {
  --primary: 210 95% 50%;
  --primary-foreground: 210 40% 98%;
  --secondary: 215 20% 18%;
  --secondary-foreground: 210 20% 90%;
  --background: 222 28% 7%;
  --foreground: 210 20% 94%;
  --card: 222 24% 11%;
  --card-foreground: 210 20% 94%;
  --muted: 220 16% 16%;
  --muted-foreground: 215 12% 62%;
  --accent: 210 70% 48%;
  --accent-foreground: 0 0% 100%;
  --border: 220 16% 20%;
  --ring: 210 95% 50%;
  --success: 142 71% 42%;
  --warning: 38 92% 50%;
  --radius: 0.85rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px hsl(var(--border)), 0 18px 50px rgba(8, 107, 247, 0.12);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  color: hsl(var(--foreground));
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(8, 107, 247, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(8, 107, 247, 0.08), transparent 55%),
    hsl(var(--background));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

code,
.mono {
  font-family: "Fira Code", "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 22, 0.72);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

.nav-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, hsl(210 100% 58%), hsl(210 95% 46%));
  color: white;
  box-shadow: 0 10px 24px rgba(8, 107, 247, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(8, 107, 247, 0.36);
}

.btn-secondary {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-secondary:hover {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--muted));
}

.btn-ghost {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.8);
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  margin-bottom: 1.1rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--success));
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, #60a5fa 0%, #086bf7 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
}

.hero-card {
  position: relative;
  border-radius: calc(var(--radius) + 0.35rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--glow);
  overflow: hidden;
  min-height: 420px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 107, 247, 0.14), transparent 40%),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4254;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.preview-label {
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

.logo-stage {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 0.5rem;
}

.logo-stage img {
  width: min(180px, 48%);
  filter: drop-shadow(0 18px 30px rgba(8, 107, 247, 0.35));
}

.fake-table {
  border: 1px solid hsl(var(--border));
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.fake-table-head,
.fake-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.3fr 0.55fr;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.78rem;
}

.fake-table-head {
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
  background: rgba(255, 255, 255, 0.02);
}

.fake-row + .fake-row {
  border-top: 1px solid hsl(var(--border));
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: rgba(8, 107, 247, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(8, 107, 247, 0.25);
  font-size: 0.72rem;
  white-space: nowrap;
}

.status-ok {
  color: #4ade80;
}

.status-run {
  color: #60a5fa;
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  max-width: 42rem;
}

.section-kicker {
  color: #7db4ff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

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

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

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 0.94rem;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(8, 107, 247, 0.12);
  border: 1px solid rgba(8, 107, 247, 0.22);
  color: #93c5fd;
}

.steps {
  display: grid;
  gap: 0.85rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), hsl(var(--card));
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(8, 107, 247, 0.16);
  color: #bfdbfe;
  border: 1px solid rgba(8, 107, 247, 0.28);
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
}

.panel {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.15rem);
  background: hsl(var(--card));
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: rgba(255, 255, 255, 0.02);
}

.panel-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.panel-body {
  padding: 1.1rem;
}

.cmd {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1rem;
  border-radius: 0.8rem;
  background: #070b12;
  border: 1px solid hsl(var(--border));
  color: #dbeafe;
  font-size: 0.82rem;
  line-height: 1.55;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  border: 1px solid hsl(var(--border));
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.84rem;
  color: hsl(var(--muted-foreground));
}

.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 0.25rem);
  border: 1px solid hsl(var(--border));
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(8, 107, 247, 0.18), transparent 55%),
    hsl(var(--card));
}

.download-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.download-meta {
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.stat {
  padding: 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--border));
  background: rgba(0, 0, 0, 0.15);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.stat span {
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
}

.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0 2.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer a:hover {
  color: hsl(var(--foreground));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .download-card,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(10, 14, 22, 0.96);
    border-bottom: 1px solid hsl(var(--border));
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .fake-table-head,
  .fake-row {
    grid-template-columns: 1fr 0.8fr 0.55fr;
  }

  .fake-table-head span:nth-child(3),
  .fake-row span:nth-child(3) {
    display: none;
  }
}
