/* ================================================
   0x Landing Page — Dark Space Theme
   Inspired by openclaw.ai
   ================================================ */

:root {
  --bg-deep: #050810;
  --bg-surface: #0a0f1a;
  --bg-elevated: #111827;
  --bg-card: #0d1320;

  --cyan: #00e5cc;
  --cyan-dim: #0a9e8e;
  --cyan-glow: rgba(0, 229, 204, 0.4);
  --purple: #7c3aed;
  --purple-dim: #5b21b6;
  --purple-glow: rgba(124, 58, 237, 0.3);

  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6480;

  --border-subtle: rgba(136, 146, 176, 0.12);
  --border-accent: rgba(0, 229, 204, 0.2);

  --font-display: "Clash Display", system-ui, -apple-system, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", "Cascadia Code", monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan);
  color: var(--bg-deep);
}

/* ---- Stars Background ---- */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(0, 229, 204, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(124, 58, 237, 0.4), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 60% 75%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 80% 55%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 5% 50%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 40% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 95% 35%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 55% 90%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 75% 5%, rgba(255, 255, 255, 0.6), transparent);
}

.nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(0, 229, 204, 0.03), transparent),
    radial-gradient(ellipse 800px 500px at 80% 60%, rgba(124, 58, 237, 0.04), transparent),
    radial-gradient(ellipse 500px 300px at 50% 80%, rgba(0, 229, 204, 0.02), transparent);
}

/* ---- Container ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: hidden;
}

/* ---- Nav (Sticky Glassmorphism, full-width) ---- */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  max-width: 1100px;
  margin: 0 auto;
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0px transparent); }
  50% { filter: drop-shadow(0 0 8px var(--cyan-glow)); }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-logo img {
  animation: logo-glow 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-github {
  display: flex;
  align-items: center;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 100px 0 60px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid rgba(0, 229, 204, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-install {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(0, 229, 204, 0.2);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-install::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.4), transparent 40%, transparent 60%, rgba(124, 58, 237, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-install:hover::before {
  opacity: 1;
}

.hero-install:hover {
  border-color: rgba(0, 229, 204, 0.35);
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.1), rgba(124, 58, 237, 0.08));
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 229, 204, 0.12), 0 0 0 1px rgba(0, 229, 204, 0.08);
}

.hero-install:active {
  transform: translateY(0);
}

.hero-install-prompt {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
  opacity: 0.8;
}

.hero-install code {
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex: 1;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.copy-btn:hover {
  color: var(--cyan);
  background: rgba(0, 229, 204, 0.1);
  border-color: rgba(0, 229, 204, 0.2);
}

.copy-btn.copied {
  color: var(--cyan) !important;
  background: rgba(0, 229, 204, 0.15) !important;
  border-color: rgba(0, 229, 204, 0.3) !important;
}

.copy-toast {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 16px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 229, 204, 0.3);
}

.copy-toast::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--cyan);
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
  color: var(--bg-deep);
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

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

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px 0;
  margin-bottom: 80px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.stat:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 204, 0.1), 0 0 0 1px rgba(0, 229, 204, 0.06);
}

.stat:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 229, 204, 0.06);
  margin-bottom: 4px;
}

.stat:nth-child(even) .stat-icon {
  background: rgba(124, 58, 237, 0.08);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  filter: drop-shadow(0 0 16px rgba(0, 229, 204, 0.25));
}

.stat-value-text {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.accent {
  color: var(--cyan);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ---- Demo Section ---- */
.demo-section {
  margin-bottom: 100px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.demo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 120px;
}

.demo-arrow-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Code Panels */
.code-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.code-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.3), transparent 40%, transparent 60%, rgba(124, 58, 237, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.code-panel:hover::before {
  opacity: 1;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.code-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
}

.code-badge {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-0x {
  background: rgba(0, 229, 204, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 204, 0.2);
}

.badge-react {
  background: rgba(97, 218, 251, 0.1);
  color: #61dafb;
  border: 1px solid rgba(97, 218, 251, 0.2);
}

.badge-vue {
  background: rgba(66, 184, 131, 0.1);
  color: #42b883;
  border: 1px solid rgba(66, 184, 131, 0.2);
}

.badge-svelte {
  background: rgba(255, 62, 0, 0.1);
  color: #ff3e00;
  border: 1px solid rgba(255, 62, 0, 0.2);
}

.code-block {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--text-secondary);
}

.code-block-sm {
  font-size: 0.72rem;
  line-height: 1.55;
}

.code-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Syntax Highlighting */
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.type { color: #ffcb6b; }
.num { color: #f78c6c; }
.str { color: #c3e88d; }
.el { color: #89ddff; }
.cm { color: #546e7a; }

/* Target Tabs */
.target-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  background: var(--bg-surface);
  border-radius: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.target-tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.target-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.target-tab:hover:not(.active) {
  color: var(--text-secondary);
}

/* ---- Features ---- */
.features-section {
  margin-bottom: 100px;
}

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

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  margin-bottom: 16px;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover .feature-icon::after {
  opacity: 0.6;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Pipeline ---- */
.pipeline-section {
  margin-bottom: 100px;
}

.pipeline-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 40px 0 20px;
}

/* Horizontal connecting line */
.pipeline-line {
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.3;
  z-index: 0;
}

/* Node */
.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.pipeline-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px rgba(0, 229, 204, 0.4);
  margin-bottom: 16px;
  position: relative;
}

.pipeline-node-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.2);
}

.pipeline-node-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  width: 100%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pipeline-node-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.pipeline-node-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 204, 0.1), 0 0 0 1px rgba(0, 229, 204, 0.06);
}

.pipeline-node-card:hover::before {
  opacity: 1;
}

.pipeline-node-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.4;
}

.pipeline-node-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 229, 204, 0.06);
}

.pipeline-node:nth-child(odd) .pipeline-node-icon {
  background: rgba(0, 229, 204, 0.06);
}

.pipeline-node:nth-child(even) .pipeline-node-icon {
  background: rgba(124, 58, 237, 0.08);
}

.pipeline-node-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pipeline-node-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

/* Output targets in final node */
.pipeline-node-targets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pipeline-target {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pipeline-target-react {
  background: rgba(97, 218, 251, 0.1);
  color: #61dafb;
  border: 1px solid rgba(97, 218, 251, 0.2);
}

.pipeline-target-vue {
  background: rgba(66, 184, 131, 0.1);
  color: #42b883;
  border: 1px solid rgba(66, 184, 131, 0.2);
}

.pipeline-target-svelte {
  background: rgba(255, 62, 0, 0.1);
  color: #ff3e00;
  border: 1px solid rgba(255, 62, 0, 0.2);
}

/* ---- Benchmarks ---- */
.benchmarks-section {
  margin-bottom: 100px;
}

/* Hero Ring */
.bench-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.bench-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 229, 204, 0.12), rgba(124, 58, 237, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: bench-glow-pulse 3s ease-in-out infinite;
}

@keyframes bench-glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -60%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); }
}

.bench-hero-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.bench-ring-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(0, 229, 204, 0.3));
}

.bench-ring-progress {
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
}

.bench-hero-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bench-hero-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.bench-hero-pct {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

.bench-hero-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.bench-hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bench-hero-sub strong {
  color: var(--text-secondary);
}

/* Benchmark Table */
.bench-table-wrap {
  overflow-x: auto;
}

.bench-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.bench-table thead th {
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.bench-th-bar {
  width: 30%;
}

.bench-table tbody tr {
  transition: background 0.2s;
}

.bench-table tbody tr:hover {
  background: rgba(0, 229, 204, 0.03);
}

.bench-table tbody td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(136, 146, 176, 0.06);
  vertical-align: middle;
}

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

.bench-file {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
}

.bench-td-0x {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
}

.bench-td-0x span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.bench-td-react {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
}

.bench-td-react span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.bench-td-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.bench-td-bar {
  width: 30%;
}

/* Animated bar */
.bench-bar-track {
  height: 6px;
  background: rgba(136, 146, 176, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.bench-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px rgba(0, 229, 204, 0.4);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

[data-animate].visible .bench-bar-fill {
  width: calc(var(--pct) * 1%);
}

.benchmark-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 24px;
  font-style: italic;
}

/* ---- Quick Start ---- */
.quickstart-section {
  margin-bottom: 100px;
}

.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.qs-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.qs-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.qs-content {
  flex: 1;
}

.qs-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.qs-code {
  padding: 8px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  overflow-x: auto;
}

/* ---- Section Divider ---- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  opacity: 0.2;
  margin: 0 0 100px;
}

/* ---- Framework Logos ---- */
.frameworks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 28px 0;
  margin-bottom: 16px;
}

.framework-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
}

.framework-logo:hover {
  color: var(--text-secondary);
}

.framework-logo svg {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.framework-logo:hover svg {
  opacity: 0.9;
}

/* ---- Floating Particles ---- */
@keyframes float-up {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  animation: float-up linear infinite;
  opacity: 0;
}

.particle:nth-child(1) { left: 10%; background: var(--cyan); animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; background: var(--purple); animation-duration: 22s; animation-delay: 3s; }
.particle:nth-child(3) { left: 40%; background: var(--cyan); animation-duration: 20s; animation-delay: 7s; width: 3px; height: 3px; }
.particle:nth-child(4) { left: 55%; background: rgba(255,255,255,0.4); animation-duration: 24s; animation-delay: 2s; }
.particle:nth-child(5) { left: 70%; background: var(--purple); animation-duration: 19s; animation-delay: 5s; }
.particle:nth-child(6) { left: 85%; background: var(--cyan); animation-duration: 21s; animation-delay: 9s; }
.particle:nth-child(7) { left: 15%; background: rgba(255,255,255,0.3); animation-duration: 25s; animation-delay: 12s; }
.particle:nth-child(8) { left: 60%; background: var(--purple); animation-duration: 17s; animation-delay: 4s; width: 3px; height: 3px; }

/* ---- CTA ---- */
.cta-section {
  text-align: center;
  padding: 80px 0;
  margin-bottom: 40px;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(0, 229, 204, 0.08), rgba(124, 58, 237, 0.05), transparent 70%);
  pointer-events: none;
  animation: cta-glow-pulse 4s ease-in-out infinite;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* ---- Footer (full-width) ---- */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 32px 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-sep {
  color: var(--text-muted);
  margin: 0 4px;
}

.footer-tagline {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Scroll Animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="slide-left"] {
  transform: translateX(-40px);
}
[data-animate="slide-left"].visible {
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(40px);
}
[data-animate="slide-right"].visible {
  transform: translateX(0);
}

/* Stagger children */
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Hero loads immediately with CSS animation */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: hero-in 0.6s ease-out both; }
.hero-title { animation: hero-in 0.6s ease-out 0.1s both; }
.hero-subtitle { animation: hero-in 0.6s ease-out 0.2s both; }
.hero-actions { animation: hero-in 0.6s ease-out 0.3s both; }

/* Benchmark bar animation — bars start at 0, animate to --pct on visible */

/* ---- Ticker / Marquee ---- */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-section {
  padding: 32px 0;
  margin-bottom: 80px;
  overflow: hidden;
  position: relative;
}

.ticker-section::before,
.ticker-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-deep), transparent);
}

.ticker-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-deep), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.ticker-item:hover {
  color: var(--text-secondary);
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.ticker-item .ticker-highlight {
  color: var(--cyan);
}

/* ---- Comparison Section ---- */
.comparison-section {
  margin-bottom: 100px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.comparison-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.comparison-card-highlight {
  border-color: var(--cyan);
  background: rgba(0, 229, 204, 0.03);
  box-shadow: 0 0 40px rgba(0, 229, 204, 0.08);
}

.comparison-header {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
}

.comparison-header-old {
  background: rgba(248, 81, 73, 0.1);
  color: #f85149;
}

.comparison-header-new {
  background: rgba(0, 229, 204, 0.1);
  color: var(--cyan);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.comparison-card:not(.comparison-card-highlight) .comparison-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #f85149;
  font-weight: 700;
  font-size: 0.8rem;
}

.comparison-card-highlight .comparison-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- Reviews / Social Proof ---- */
.reviews-section {
  margin-bottom: 100px;
}

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

.review-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s;
}

.review-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.review-quote {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--border-subtle);
  line-height: 1;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--bg-deep);
  flex-shrink: 0;
}

.review-avatar-cyan { background: var(--cyan); }
.review-avatar-purple { background: var(--purple); }

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.review-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .demo-arrow {
    padding-top: 0;
    flex-direction: row;
    justify-content: center;
  }

  .demo-arrow svg {
    transform: rotate(90deg);
  }

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

  .bench-table thead th:last-child,
  .bench-table tbody td.bench-td-bar {
    display: none;
  }

  .pipeline-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pipeline-line {
    display: none;
  }

  .pipeline-node-dot {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .nav-links a:not(.nav-github) {
    display: none;
  }

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

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

  .ticker-track {
    animation-duration: 20s;
  }

  .frameworks-row {
    gap: 24px;
    flex-wrap: wrap;
  }

  .nav-wrapper {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-install {
    font-size: 0.82rem;
    padding: 12px 16px;
    gap: 8px;
  }

  .code-block {
    font-size: 0.72rem;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-badge, .hero-title, .hero-subtitle, .hero-actions {
    animation: none;
  }

  .ticker-track {
    animation: none;
  }

  .bar {
    transition: none;
  }

  .particle {
    animation: none !important;
    display: none;
  }

  .nav-logo img {
    animation: none;
  }

  .cta-glow {
    animation: none;
  }

  .gradient-text {
    animation: none;
  }
}
