/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #0a0f1e;
  --bg-panel:   #0f1628;
  --bg-card:    #141c34;
  --bg-code:    #0d1120;
  --accent:     #00d4aa;
  --accent-dim: #00a882;
  --accent-glow:#00d4aa33;
  --text:       #e8edf5;
  --text-muted: #8895b0;
  --text-dim:   #4a5568;
  --border:     #1e2d4d;
  --method-get:    #61afef;
  --method-post:   #98c379;
  --method-patch:  #e5c07b;
  --method-delete: #e06c75;
  --code-param:    #c678dd;
  --code-op:       #56b6c2;
  --code-string:   #98c379;
  --radius:     12px;
  --radius-sm:  8px;
  --nav-h:      64px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
svg { display: block; }

/* ─── Shared ─────────────────────────────────────────────────────────────── */
.accent { color: var(--accent); }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0a0f1e;
}
.btn-primary:hover { background: #00efc0; transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-sm {
  padding: 7px 18px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline-sm:hover { background: var(--accent-glow); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #7b8fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.btn-outline-sm) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:not(.btn-outline-sm):hover { color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.25;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: drift 12s ease-in-out infinite;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, #7b8fff, transparent 70%);
  animation: drift 16s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(40px, 30px) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-code {
  display: inline-block;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: left;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.hero-code .code-comment { color: var(--text-dim); }
.hero-code .code-method  { color: var(--method-post); font-weight: 500; }
.hero-code .code-param   { color: var(--code-param); }
.hero-code .code-body    { color: var(--text); }

/* ─── Features Section ───────────────────────────────────────────────────── */
.features {
  padding: 100px 0 80px;
  background: var(--bg-panel);
}
.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.features-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ─── Slider ─────────────────────────────────────────────────────────────── */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.slider-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  width: 100%;
}
.slider-track::-webkit-scrollbar { display: none; }

/* ─── Panel Cards ────────────────────────────────────────────────────────── */
.panel {
  scroll-snap-align: start;
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 48px 56px;
  position: relative;
}
.panel-icon {
  width: 80px; height: 80px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.panel-icon svg { width: 40px; height: 40px; }
.panel:hover .panel-icon {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.panel-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  opacity: 0.7;
}
.panel-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.panel-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 32px;
}
.panel-code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.825rem;
  line-height: 2;
  text-align: left;
  width: 100%;
  max-width: 520px;
}
.code-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-comment { color: var(--text-dim); }
.code-comment-inline { color: var(--text-dim); margin-left: 8px; }
.code-method { font-weight: 600; }
.method-get    { color: var(--method-get); }
.method-post   { color: var(--method-post); }
.method-patch  { color: var(--method-patch); }
.method-delete { color: var(--method-delete); }
.code-param  { color: var(--code-param); }
.code-op     { color: var(--code-op); }
.code-string { color: var(--code-string); }

/* ─── Slider Arrows ──────────────────────────────────────────────────────── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.slider-arrow:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.slider-arrow:disabled { opacity: 0.2; pointer-events: none; }
.slider-arrow svg { width: 22px; height: 22px; }
.arrow-left  { left: 16px; }
.arrow-right { right: 16px; }

/* ─── Dots ───────────────────────────────────────────────────────────────── */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  padding-bottom: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ─── Examples Section ───────────────────────────────────────────────────── */
.examples {
  padding: 100px 0 80px;
  background: var(--bg);
}

.example-panel {
  justify-content: center;
}

.example-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}
.example-icon svg { width: 48px; height: 48px; }

.example-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 12px;
}

.example-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.example-tag-chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.775rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

.example-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}
.example-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
.example-link:hover {
  background: var(--accent);
  color: #0a0f1e;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.example-link:hover svg { transform: translateX(3px); }

/* ─── How It Works ───────────────────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}
.how-it-works h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 60px;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.step-icon {
  width: 64px; height: 64px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-icon svg { width: 32px; height: 32px; }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.7;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.step-connector {
  flex: 0 0 auto;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-dim), var(--border));
  margin-top: 32px;
  opacity: 0.5;
}

/* ─── Get Started ────────────────────────────────────────────────────────── */
.get-started {
  padding: 100px 0;
  background: var(--bg-panel);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.get-started-glow {
  position: absolute;
  width: 600px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.get-started h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}
.get-started p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  position: relative;
}
.get-started-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(.btn-outline-sm) { display: none; }

  .panel { padding: 36px 24px 44px; }
  .panel-title { font-size: 1.5rem; }
  .panel-desc { font-size: 0.925rem; }

  .slider-arrow { display: none; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .step-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--border), var(--accent-dim), var(--border));
    margin-top: 0;
  }
  .step { max-width: 360px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .get-started-cta { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
  .get-started-cta .btn { justify-content: center; }
  .hero-code { font-size: 0.775rem; padding: 16px 20px; }
}
