/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-3: #1c2230;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --accent-h: #818cf8;
  --accent-2: #06b6d4;
  --text: #f0f4ff;
  --text-muted: #8b9ab5;
  --code-bg: #0d1117;
  --radius: 12px;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, "Liberation Mono", Menlo, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-h);
}

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo img {
  height: 28px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.docs {
  color: var(--accent-h);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.nav-link.docs:hover {
  background: rgba(99, 102, 241, 0.1);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-ghost {
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
}

/* GitHub icon */
.github-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: fill 0.2s;
}
.github-icon:hover {
  fill: var(--text);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(6, 182, 212, 0.08) 50%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero h1 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent-h), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

/* Docs callout banner */
.docs-callout {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.docs-callout svg {
  flex-shrink: 0;
  color: var(--accent-h);
}
.docs-callout a {
  color: var(--accent-h);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.docs-callout a:hover {
  color: #fff;
}

/* Screenshot */
.hero-visual img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(99, 102, 241, 0.15);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ── Section base ─────────────────────────────────────────── */
section {
  padding: 96px 0;
}
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-h);
  margin-bottom: 14px;
}
.section-title {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}
.section-header {
  margin-bottom: 64px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-desc {
  margin: 0 auto;
}

/* ── Problem section ──────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}
.problem-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.problem-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
}
.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-h);
  font-size: 1.3rem;
}
.problem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Quickstart ───────────────────────────────────────────── */
.quickstart {
  background: var(--bg-2);
}
.quickstart-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .quickstart-inner {
    grid-template-columns: 1fr;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Code terminal */
.terminal {
  background: #0a0e16;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.td-red {
  background: #ff5f57;
}
.td-yellow {
  background: #febc2e;
}
.td-green {
  background: #28c840;
}
.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: var(--font-mono);
}
.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}
.t-comment {
  color: #4a5568;
}
.t-prompt {
  color: var(--accent-h);
  user-select: none;
}
.t-cmd {
  color: #e2e8f0;
}
.t-out {
  color: #68d391;
}
.t-url {
  color: var(--accent-2);
}
.t-line {
  display: block;
}

.terminal-info {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
  font-size: 0.85rem;
}
.terminal-info strong {
  color: var(--accent-2);
}
.terminal-info ul {
  margin-top: 8px;
  padding-left: 18px;
  color: var(--text-muted);
}
.terminal-info li {
  margin-bottom: 4px;
}

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(6, 182, 212, 0.15)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Video section ────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16/9;
  max-width: 900px;
  margin: 0 auto;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Logo cloud ───────────────────────────────────────────── */
.logos {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos p {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 600;
}
.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logos-grid img {
  height: 32px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition:
    opacity 0.3s,
    filter 0.3s;
}
.logos-grid img:hover {
  opacity: 0.9;
  filter: grayscale(0);
}

/* ── Docs section ─────────────────────────────────────────── */
.docs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .docs-cards {
    grid-template-columns: 1fr;
  }
}
.doc-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
}
.doc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.doc-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.doc-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}
.doc-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-h);
  display: flex;
  align-items: center;
  gap: 4px;
}
.doc-link:hover {
  color: #fff;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(6, 182, 212, 0.06)
  );
  border-radius: 20px;
  padding: 80px 48px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 80px;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(99, 102, 241, 0.15),
    transparent 60%
  );
  pointer-events: none;
}
.cta h2 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text);
}
footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: 0;
  border-top: 1px solid var(--border);
}

/* ── Fade-in animations ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.65s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}

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

/* Tablet: hide the "Quick Start" text link, keep everything else */
@media (max-width: 780px) {
  .nav-link:not(.docs):not([href*="github"]) {
    display: none;
  }
}

/* Mobile: hide the logo too, trim button padding */
@media (max-width: 480px) {
  .nav-logo {
    display: none;
  }

  /* Only show: 📖 Docs · GitHub icon · Login */
  .btn-ghost {
    display: none;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-link.docs {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .btn-primary {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .hero-cta {
    flex-direction: column;
  }
}