:root {
  --primary: #D94F2B;
  --primary-dark: #B03A1A;
  --primary-light: #F26340;
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-3: #1A1A1A;
  --border: rgba(255, 255, 255, 0.07);
  --text: #F0EDE8;
  --text-muted: #7A7570;
  --text-dim: #4A4744;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --display: 'Syne', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 79, 43, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(217, 79, 43, 0.3);
  border-radius: 100px;
  background: rgba(217, 79, 43, 0.08);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 79, 43, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* ── HERO TERMINAL ── */
.hero-terminal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeUp 0.6s 0.4s ease both;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #FF5F57;
}

.terminal-dot.yellow {
  background: #FEBC2E;
}

.terminal-dot.green {
  background: #28C840;
}

.terminal-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
}

.t-comment {
  color: var(--text-dim);
}

.t-prompt {
  color: var(--primary);
}

.t-cmd {
  color: #E8C77A;
}

.t-key {
  color: #7EC8A4;
}

.t-val {
  color: #89B4E8;
}

.t-ok {
  color: #28C840;
}

.t-num {
  color: var(--primary-light);
}

.t-nil {
  color: var(--text-dim);
}

.t-info {
  color: #A8B4C8;
}



/* ── COMPAT BAR ── */
.compat-bar {
  padding: 2.8rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.compat-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.compat-heading {
  text-align: center;
}

.compat-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.compat-title span {
  color: var(--primary);
}

.compat-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.compat-subtitle span {
  color: var(--text-muted);
}

/* Carousel */
.compat-carousel-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.compat-carousel {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: carousel-scroll 18s linear infinite;
}

.compat-carousel:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.compat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg);
  white-space: nowrap;
  transition: all 0.2s;
  cursor: default;
}

.compat-carousel:hover .compat-pill:hover {
  border-color: rgba(217, 79, 43, 0.35);
  color: var(--text);
  background: rgba(217, 79, 43, 0.06);
}

.compat-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── SECTION ── */
section {
  padding: 6rem 2rem;
}

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

.section-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── FEATURES ── */
#features {
  background: var(--bg);
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header .section-desc {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.2s;
  position: relative;
}

.feature-card:hover {
  background: var(--bg-2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(217, 79, 43, 0.1);
  border: 1px solid rgba(217, 79, 43, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.feature-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ── BENCHMARK ── */
#benchmark {
  background: var(--bg-2);
}

.benchmark-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benchmark-table {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.bench-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 80px;
  padding: 0.75rem 1.25rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bench-section-label {
  padding: 0.6rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(217, 79, 43, 0.04);
  border-bottom: 1px solid var(--border);
}

.bench-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 80px;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
}

.bench-row:last-child {
  border-bottom: none;
}

.bench-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.bench-cmd {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--primary-light);
}

.bench-velox {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

.bench-redis {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bench-ratio {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #28C840;
  text-align: right;
}

.bench-bar-wrap {
  margin-top: 2rem;
}

.bench-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-family: var(--mono);
}

.bench-bar-track {
  height: 6px;
  background: var(--bg-3);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.bench-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--primary);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bench-bar-fill.redis {
  background: rgba(255, 255, 255, 0.2);
}

.bench-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-family: var(--mono);
  line-height: 1.6;
}

/* ── COMMANDS ── */
#commands {
  background: var(--bg);
}

.commands-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
}

.cmd-list {
  border-right: 1px solid var(--border);
  padding: 1rem 0;
}

.cmd-list-item {
  display: block;
  padding: 0.7rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 2px solid transparent;
  letter-spacing: 0.05em;
}

.cmd-list-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.cmd-list-item.active {
  color: var(--primary-light);
  border-left-color: var(--primary);
  background: rgba(217, 79, 43, 0.06);
}

.cmd-panel {
  padding: 2rem;
}

.cmd-detail {
  display: none;
}

.cmd-detail.active {
  display: block;
}

.cmd-title {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cmd-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
}

.cmd-syntax {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.cmd-syntax-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cmd-example {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
}

.cmd-returns {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ── QUICKSTART ── */
#quickstart {
  background: var(--bg-2);
}

.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.qs-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
}

.qs-num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(217, 79, 43, 0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.qs-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.qs-code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .nav-logo-text {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 220px;
  line-height: 1.5;
}

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

.footer-col-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benchmark-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quickstart-steps {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .commands-layout {
    grid-template-columns: 1fr;
  }

  .cmd-list {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .cmd-list-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
  }

  .cmd-list-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

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

  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .bench-header,
  .bench-row {
    grid-template-columns: 1fr 1fr 1fr 60px;
    font-size: 0.7rem;
  }
}