---
hide:
  - navigation
  - toc
title: " "
---

<style>
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --neo-black: #0d0d0d;
  --neo-white: #ffffff;
  --neo-green: #06c270;
  --neo-red: #ee4d37;
  --neo-yellow: #f08d32;
  --pop-black-400: #121212;
  --pop-black-300: #161616;
  --black-70: #3d3d3d;
  --black-50: #8a8a8a;
  --white-90: #fbfbfb;
  --park-400: #76ffc6;
  --orange-sun: #ff8744;
  --brand: #ea6e25;
  --brand-glow: rgba(234, 110, 37, 0.45);
  --bg: var(--neo-black);
  --bg-card: var(--pop-black-400);
  --text: var(--white-90);
  --text-muted: rgba(255, 255, 255, 0.55);
  --stroke: rgba(255, 255, 255, 0.1);
  --shadow-plunk: 4px 4px 0 #0a0a0a;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.md-main,
.md-main__inner {
  background: var(--bg) !important;
}

/* Grid backdrop */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Brand bloom */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(234, 110, 37, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(6, 194, 112, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.md-content h1:first-of-type {
  display: none;
}

.md-content__inner {
  margin: 0;
  padding: 0;
}

.md-content {
  max-width: 100%;
  background: transparent;
  position: relative;
  z-index: 1;
}

.arrow-container {
  width: min(1280px, 94%);
  margin: 0 auto;
  padding: 20px 0 96px;
  position: relative;
  z-index: 1;
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Hero ============ */
.hero-section {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  padding-right: 24px;
  text-align: left;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 194, 112, 0.12);
  color: var(--park-400);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  text-transform: uppercase;
  border: 1px solid rgba(6, 194, 112, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kicker .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neo-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 194, 112, 0.65); }
  50% { opacity: 0.75; box-shadow: 0 0 0 7px rgba(6, 194, 112, 0); }
}

.hero-content p.hero-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  margin: 0 0 24px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--neo-white);
}

.hero-content p.hero-title .highlight {
  background: linear-gradient(90deg, #ff8744 0%, #ea6e25 40%, #f0b232 70%, #ff8744 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-slide 6s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(234, 110, 37, 0.35));
}

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

.hero-content p.lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 30px;
  line-height: 1.65;
  max-width: 32rem;
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.arrow-container .neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--neo-white);
  color: var(--neo-black);
  background: var(--neo-white);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.85),
    inset -1px -1px 0 rgba(0, 0, 0, 0.06),
    4px 4px 0 var(--black-70);
}

.neo-btn:hover {
  transform: translate(1px, 1px);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.85),
    inset -1px -1px 0 rgba(0, 0, 0, 0.06),
    3px 3px 0 var(--black-70);
}

.arrow-container .neo-btn--brand {
  background: linear-gradient(135deg, #ff8744 0%, var(--brand) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.35),
    4px 4px 0 #5c2c10,
    0 0 28px rgba(234, 110, 37, 0.25);
}

.neo-btn--brand:hover {
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.35),
    3px 3px 0 #5c2c10,
    0 0 36px rgba(234, 110, 37, 0.4);
}

.arrow-container .neo-btn--ghost {
  background: transparent;
  color: var(--neo-white);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.05),
    inset -1px -1px 0 rgba(0, 0, 0, 0.4),
    4px 4px 0 #0a0a0a;
}

.neo-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-lang-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.hero-mini-stats {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.mini-stat .num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--neo-white);
  letter-spacing: -0.01em;
}

.mini-stat .lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black-50);
  font-weight: 700;
  margin-top: 2px;
}

/* ============ Terminal ============ */
.terminal-shell {
  position: relative;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(120deg, rgba(234, 110, 37, 0.55), rgba(255, 255, 255, 0.08) 35%, rgba(6, 194, 112, 0.45) 70%, rgba(234, 110, 37, 0.55));
  background-size: 300% 300%;
  animation: border-flow 8s ease-in-out infinite;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(234, 110, 37, 0.12);
}

@keyframes border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.terminal-card {
  border-radius: 15px;
  background: var(--pop-black-300);
  overflow: hidden;
  height: fit-content;
}

.terminal-header {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--pop-black-300) 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--stroke);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-button.red { background: #FF5F57; }
.terminal-button.yellow { background: #FEBC2E; }
.terminal-button.green { background: #28C840; }

.terminal-tabs {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.terminal-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--black-50);
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-tab:hover {
  color: var(--white-90);
  border-color: rgba(255, 255, 255, 0.25);
}

.terminal-tab.active {
  color: var(--neo-black);
  background: var(--orange-sun);
  border-color: var(--orange-sun);
}

.terminal-body {
  padding: 24px;
  background: var(--neo-black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 400px;
  color: var(--white-90);
}

.terminal-line {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.prompt {
  color: var(--neo-green);
  font-weight: 700;
  user-select: none;
}

.terminal-comment { color: var(--black-50); }
.terminal-success { color: var(--neo-green); }

/* ============ Stats strip ============ */
.stats-section {
  padding: 24px 0 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 110, 37, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 32px rgba(234, 110, 37, 0.08);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--orange-sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-lbl {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* ============ Section intro ============ */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 141, 50, 0.12);
  color: var(--neo-yellow);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(240, 141, 50, 0.35);
}

.section-intro h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--neo-white);
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 500;
}

/* ============ Features ============ */
.features-section {
  padding: 88px 0 24px;
}

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

.feature-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%);
  padding: 26px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 180px at var(--mx, 50%) var(--my, 0%), rgba(234, 110, 37, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 110, 37, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(234, 110, 37, 0.12);
  border: 1px solid rgba(234, 110, 37, 0.3);
  color: var(--orange-sun);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--neo-white);
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.feature-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-sun);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.feature-link:hover {
  gap: 10px;
}

/* ============ Comparison ============ */
.comparison-section {
  padding: 88px 0 24px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
}

.comparison-grid::before {
  content: 'VS';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--neo-black);
  background: var(--neo-white);
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--neo-black);
  box-shadow: 4px 4px 0 var(--black-70);
  z-index: 10;
}

.comparison-item {
  position: relative;
}

.comparison-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--stroke);
}

.comparison-label.slow {
  color: var(--neo-white);
  background: rgba(238, 77, 55, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 3px 3px 0 #5c1f16;
}

.comparison-label.fast {
  color: var(--neo-black);
  background: var(--neo-green);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 3px 3px 0 #045c32;
}

.comparison-terminal {
  border-radius: 12px;
  background: var(--pop-black-300);
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.05),
    inset -1px -1px 0 rgba(0, 0, 0, 0.35),
    var(--shadow-plunk);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-terminal.slow { border-color: rgba(238, 77, 55, 0.35); }
.comparison-terminal.fast {
  border-color: rgba(6, 194, 112, 0.4);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.06),
    inset -1px -1px 0 rgba(0, 0, 0, 0.35),
    var(--shadow-plunk),
    0 0 44px rgba(6, 194, 112, 0.1);
}

.comparison-terminal:hover {
  transform: translate(-2px, -2px);
}

.stream-header {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--pop-black-300) 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--stroke);
}

.stream-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stream-icon {
  width: 8px;
  height: 8px;
  background: var(--neo-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.stream-icon.slow {
  background: var(--neo-red);
  animation: pulse-dot-slow 3s ease-in-out infinite;
}

@keyframes pulse-dot-slow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(238, 77, 55, 0.65); }
  50% { opacity: 0.75; box-shadow: 0 0 0 7px rgba(238, 77, 55, 0); }
}

.stream-title span {
  color: var(--black-50);
  font-size: 13px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.stream-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid transparent;
}

.stream-badge.slow {
  background: rgba(238, 77, 55, 0.18);
  color: #ffb4a8;
  border-color: rgba(238, 77, 55, 0.35);
}

.stream-badge.fast {
  background: rgba(6, 194, 112, 0.15);
  color: var(--park-400);
  border-color: rgba(6, 194, 112, 0.35);
}

.stream-body {
  padding: 24px;
  background: var(--neo-black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 380px;
  color: var(--white-90);
  position: relative;
  overflow: hidden;
}

.stream-line {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  padding: 4px 0;
  align-items: center;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.timestamp {
  color: var(--black-50);
  font-size: 11px;
  min-width: 70px;
}

.price {
  color: var(--white-90);
  font-weight: 600;
  min-width: 90px;
}

.latency {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.latency.slow {
  background: rgba(238, 77, 55, 0.22);
  color: #ffc9c0;
}

.latency.fast {
  background: rgba(6, 194, 112, 0.18);
  color: var(--park-400);
}

/* ============ Pricing ============ */
.pricing-section {
  padding: 88px 0 24px;
}

.pricing-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.pricing-shell {
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(120deg, rgba(240, 141, 50, 0.6), rgba(255, 255, 255, 0.08) 40%, rgba(234, 110, 37, 0.55));
  background-size: 250% 250%;
  animation: border-flow 9s ease-in-out infinite;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(240, 141, 50, 0.1);
}

.pricing-card {
  border-radius: 17px;
  background: linear-gradient(180deg, #141414 0%, var(--pop-black-400) 100%);
  padding: 34px 30px;
}

.pricing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neo-black);
  background: var(--neo-yellow);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pricing-title {
  margin-top: 16px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--neo-white);
}

.pricing-subtitle {
  margin-top: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.price-block {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 20px;
  background: rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.price-block:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 141, 50, 0.4);
}

.price-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black-50);
  font-weight: 700;
  margin-bottom: 8px;
}

.price-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--neo-white);
}

.price-note {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============ Final CTA ============ */
.final-cta {
  padding: 96px 0 8px;
  text-align: center;
}

.final-cta h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--neo-white);
  margin: 0 auto 16px;
  max-width: 720px;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 30px;
  font-weight: 500;
}

.final-cta .hero-cta-row {
  justify-content: center;
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .hero-grid { gap: 40px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { padding-right: 0; text-align: center; }
  .hero-content p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .hero-mini-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .comparison-grid::before { width: 48px; height: 48px; font-size: 13px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
</style>

<div class="arrow-container">

  <!-- Hero -->
  <section class="hero-section">
    <div class="hero-grid">
      <div class="hero-content reveal">
        <div class="kicker"><span class="pulse"></span>India-first retail trading API · Ultra low-latency</div>
        <p class="hero-title">
          India's <span class="highlight">fastest</span> retail broker APIs.
        </p>
        <p class="lead">
          Built for serious traders and builders. No fluff, no delays. Arrow delivers order execution up to 10x faster than traditional brokers and market data up to 20x faster.
        </p>
        <div class="hero-cta-row">
          <a class="neo-btn neo-btn--brand" href="python-sdk/getting-started/">
            <img class="btn-lang-logo" src="assets/python.svg" alt="" width="20" height="20">
            Python SDK
          </a>
          <a class="neo-btn neo-btn--ghost" href="go-sdk/getting-started/">
            <img class="btn-lang-logo" src="assets/go.svg" alt="" width="20" height="20">
            Go SDK
          </a>
          <a class="neo-btn neo-btn--ghost" href="rest-api/authentication/">REST API docs</a>
        </div>
        <div class="hero-mini-stats">
          <div class="mini-stat"><div class="num">~50ms</div><div class="lbl">Stream latency</div></div>
          <div class="mini-stat"><div class="num">REST + WS</div><div class="lbl">Full stack</div></div>
          <div class="mini-stat"><div class="num">Python · Go</div><div class="lbl">Native SDKs</div></div>
        </div>
      </div>

      <aside class="terminal-shell reveal">
        <div class="terminal-card">
          <div class="terminal-header">
            <div class="terminal-buttons">
              <span class="terminal-button red"></span>
              <span class="terminal-button yellow"></span>
              <span class="terminal-button green"></span>
            </div>
            <div class="terminal-tabs">
              <button class="terminal-tab active" data-lang="py" type="button">arrow-trade-demo.py</button>
              <button class="terminal-tab" data-lang="go" type="button">main.go</button>
            </div>
          </div>
          <div class="terminal-body">
            <div id="terminal-content"></div>
          </div>
        </div>
      </aside>
    </div>
  </section>

  <!-- Stats -->
  <section class="stats-section">
    <div class="stats-grid">
      <div class="stat-card reveal">
        <div class="stat-num"><span class="counter" data-target="10">0</span>x</div>
        <div class="stat-lbl">Faster order execution</div>
      </div>
      <div class="stat-card reveal">
        <div class="stat-num"><span class="counter" data-target="20">0</span>x</div>
        <div class="stat-lbl">Faster market data</div>
      </div>
      <div class="stat-card reveal">
        <div class="stat-num">~<span class="counter" data-target="50">0</span>ms</div>
        <div class="stat-lbl">HFT-grade stream latency</div>
      </div>
      <div class="stat-card reveal">
        <div class="stat-num">₹<span class="counter" data-target="20">0</span></div>
        <div class="stat-lbl">Flat per executed order</div>
      </div>
    </div>
  </section>

  <!-- Features -->
  <section class="features-section">
    <div class="section-intro reveal">
      <div class="section-badge">⚡ EVERYTHING YOU NEED TO BUILD</div>
      <h2>One API. Every trading primitive.</h2>
      <p>From authentication to HFT-grade streams — the full trading stack, documented end to end and wrapped in native Python and Go SDKs.</p>
    </div>

    <div class="features-grid">
      <div class="feature-card reveal">
        <div class="feature-icon">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
        </div>
        <h3>Order Execution</h3>
        <p>Place, modify and cancel orders across exchanges with a single REST call — engineered for up to 10x faster execution.</p>
        <a class="feature-link" href="rest-api/orders/">Orders API →</a>
      </div>

      <div class="feature-card reveal">
        <div class="feature-icon">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>
        </div>
        <h3>HFT-Grade Market Data</h3>
        <p>Ultra low-latency tick streams built for high-frequency strategies — market data up to 20x faster than traditional feeds.</p>
        <a class="feature-link" href="rest-api/hft-stream/">HFT stream docs →</a>
      </div>

      <div class="feature-card reveal">
        <div class="feature-icon">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 17l6-6-6-6M12 19h8"/></svg>
        </div>
        <h3>WebSocket Streaming</h3>
        <p>Live quotes and order updates pushed over resilient WebSocket connections, with first-class support in both SDKs.</p>
        <a class="feature-link" href="python-sdk/websocket-streaming/">Streaming guide →</a>
      </div>

      <div class="feature-card reveal">
        <div class="feature-icon">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>
        </div>
        <h3>Portfolio &amp; Funds</h3>
        <p>Positions, holdings, funds and margin calculation — everything you need to manage capital programmatically.</p>
        <a class="feature-link" href="rest-api/positions/">Portfolio APIs →</a>
      </div>

      <div class="feature-card reveal">
        <div class="feature-icon">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3v18h18"/><path d="M7 14l4-4 4 4 5-5"/></svg>
        </div>
        <h3>Historical Candles</h3>
        <p>Deep historical candle data for backtesting and research, served through the same authenticated API surface.</p>
        <a class="feature-link" href="rest-api/historical-candle-data/">Historical data →</a>
      </div>

      <div class="feature-card reveal">
        <div class="feature-icon">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 18l6-6-6-6M8 6l-6 6 6 6"/></svg>
        </div>
        <h3>Python &amp; Go SDKs</h3>
        <p>Idiomatic, type-safe clients with auto-login, TOTP flows and streaming built in — or talk to the REST API directly.</p>
        <a class="feature-link" href="python-sdk/getting-started/">Explore SDKs →</a>
      </div>
    </div>
  </section>

  <!-- Comparison -->
  <section class="comparison-section">
    <div class="section-intro reveal">
      <div class="section-badge">⚡ INDIA'S FIRST SPEED-FIRST RETAIL API</div>
      <h2>Built To Outrun</h2>
      <p>Watch the difference live: the same market stream, delivered through a traditional broker versus Arrow's execution fabric.</p>
    </div>

    <div class="comparison-grid">
      <div class="comparison-item reveal">
        <div class="comparison-label slow">Traditional Broker</div>
        <div class="comparison-terminal slow">
          <div class="stream-header">
            <div class="stream-title">
              <span class="stream-icon slow"></span>
              <span>market.stream()</span>
            </div>
            <div class="stream-badge slow">~1000ms</div>
          </div>
          <div class="stream-body">
            <div id="slow-stream"></div>
          </div>
        </div>
      </div>

      <div class="comparison-item reveal">
        <div class="comparison-label fast">Arrow Trade (Early Bird)</div>
        <div class="comparison-terminal fast">
          <div class="stream-header">
            <div class="stream-title">
              <span class="stream-icon"></span>
              <span>market.stream()</span>
            </div>
            <div class="stream-badge fast">~50ms</div>
          </div>
          <div class="stream-body">
            <div id="fast-stream"></div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- Pricing -->
  <section class="pricing-section">
    <div class="pricing-wrap reveal">
      <div class="pricing-shell">
        <div class="pricing-card">
          <div class="pricing-kicker">Early Bird Offer</div>
          <h2 class="pricing-title">Simple pricing. Premium execution.</h2>
          <p class="pricing-subtitle">First time in India for a speed-first retail API stack with transparent brokerage.</p>
          <div class="pricing-grid">
            <div class="price-block">
              <div class="price-label">Offer Period</div>
              <div class="price-value">2 Months Free</div>
              <div class="price-note">Full API access for all users during the launch window.</div>
            </div>
            <div class="price-block">
              <div class="price-label">Post Offer Pricing</div>
              <div class="price-value">₹20 / Order</div>
              <div class="price-note">Flat brokerage per executed order after the free period.</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- Final CTA -->
  <section class="final-cta reveal">
    <h2>Ship your first strategy <span class="highlight" style="background: linear-gradient(90deg, #ff8744, #ea6e25, #f0b232, #ff8744); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient-slide 6s ease-in-out infinite;">today.</span></h2>
    <p>Pick your weapon — Python, Go, or raw REST — and place your first order in minutes.</p>
    <div class="hero-cta-row">
      <a class="neo-btn neo-btn--brand" href="python-sdk/getting-started/">Start building</a>
      <a class="neo-btn neo-btn--ghost" href="rest-api/authentication/">Read the API reference</a>
    </div>
  </section>

</div>

<script>
(function() {
  'use strict';

  /* ============ Typing terminal with tabs ============ */
  const terminalContent = document.getElementById('terminal-content');
  const tabs = document.querySelectorAll('.terminal-tab');

  const codeLinesPython = [
    { text: '# Python SDK', type: 'comment', delay: 0 },
    { text: '$ pip install pyarrow-client', type: 'command', delay: 300 },
    { text: '', type: 'blank', delay: 200 },
    { text: '# Quick start example', type: 'comment', delay: 300 },
    { text: 'from pyarrow_client import ArrowClient', type: 'code', delay: 300 },
    { text: '', type: 'blank', delay: 200 },
    { text: 'client = ArrowClient(', type: 'code', delay: 300 },
    { text: '    app_id="YOUR_APP_ID",', type: 'code', delay: 300 },
    { text: ')', type: 'code', delay: 300 },
    { text: '', type: 'blank', delay: 300 },
    { text: '# Get live market data', type: 'comment', delay: 300 },
    { text: 'quote = client.get_quote(QuoteMode.LTP, "RELIANCE-EQ", Exchange.NSE)', type: 'code', delay: 300 },
    { text: 'print(f"Price: ₹{quote.ltp}")', type: 'code', delay: 300 },
    { text: '', type: 'blank', delay: 300 },
    { text: '# Output:', type: 'comment', delay: 300 },
    { text: 'Price: ₹1,498.50', type: 'success', delay: 300 },
    { text: 'Latency: 48ms', type: 'success', delay: 300 },
    { text: 'Status: stream stable, execution ready', type: 'success', delay: 300 },
  ];

  const codeLinesGo = [
    { text: '// Go SDK', type: 'comment', delay: 0 },
    { text: '$ go get github.com/arrow-trade/go-arrow', type: 'command', delay: 300 },
    { text: '', type: 'blank', delay: 200 },
    { text: 'import (', type: 'code', delay: 300 },
    { text: '    "fmt"', type: 'code', delay: 300 },
    { text: '    "github.com/arrow-trade/go-arrow/arrow"', type: 'code', delay: 300 },
    { text: ')', type: 'code', delay: 300 },
    { text: '', type: 'blank', delay: 200 },
    { text: 'client := arrow.NewClient("YOUR_APP_ID", "YOUR_APP_SECRET")', type: 'code', delay: 300 },
    { text: '_ = client.AutoLogin("USER_ID", "PASSWORD", "TOTP_SECRET")', type: 'code', delay: 300 },
    { text: '', type: 'blank', delay: 300 },
    { text: 'user, err := client.GetUserDetails()', type: 'code', delay: 300 },
    { text: 'if err != nil { panic(err) }', type: 'code', delay: 300 },
    { text: 'fmt.Println("Logged in user:", user.Data.Name)', type: 'code', delay: 300 },
    { text: '', type: 'blank', delay: 300 },
    { text: '// Output:', type: 'comment', delay: 300 },
    { text: 'Logged in user: Your Name', type: 'success', delay: 300 },
  ];

  let activeLang = 'py';
  let typeToken = 0; // incremented to cancel an in-flight typing loop

  function createLineElement(type) {
    const line = document.createElement('div');
    line.className = 'terminal-line';

    if (type === 'command') {
      const prompt = document.createElement('span');
      prompt.className = 'prompt';
      prompt.textContent = '$';
      line.appendChild(prompt);
    }

    const textSpan = document.createElement('span');
    if (type === 'comment') textSpan.className = 'terminal-comment';
    if (type === 'success') textSpan.className = 'terminal-success';

    line.appendChild(textSpan);
    return line;
  }

  function runTerminal(lang) {
    activeLang = lang;
    const myToken = ++typeToken;
    const lines = lang === 'go' ? codeLinesGo : codeLinesPython;
    terminalContent.innerHTML = '';
    let currentLine = 0;

    function typeLine() {
      if (myToken !== typeToken) return; // a newer run took over
      if (currentLine >= lines.length) {
        setTimeout(() => {
          if (myToken !== typeToken) return;
          // Auto-swap to the other language and replay
          const next = activeLang === 'py' ? 'go' : 'py';
          setActiveTab(next);
          runTerminal(next);
        }, 5000);
        return;
      }

      const lineData = lines[currentLine];
      setTimeout(() => {
        if (myToken !== typeToken) return;
        const lineElement = createLineElement(lineData.type);
        terminalContent.appendChild(lineElement);

        if (lineData.type === 'blank') {
          currentLine++;
          typeLine();
          return;
        }

        const textSpan = lineElement.querySelector('span:last-child');
        let currentChar = 0;
        const speed = lineData.type === 'command' ? 80 : 50;

        (function typeChar() {
          if (myToken !== typeToken) return;
          if (currentChar < lineData.text.length) {
            textSpan.textContent += lineData.text[currentChar];
            currentChar++;
            setTimeout(typeChar, speed);
          } else {
            currentLine++;
            typeLine();
          }
        })();
      }, lineData.delay);
    }

    typeLine();
  }

  function setActiveTab(lang) {
    tabs.forEach(t => t.classList.toggle('active', t.dataset.lang === lang));
  }

  tabs.forEach(tab => {
    tab.addEventListener('click', () => {
      if (tab.dataset.lang === activeLang) return;
      setActiveTab(tab.dataset.lang);
      runTerminal(tab.dataset.lang);
    });
  });

  setTimeout(() => runTerminal('py'), 800);

  /* ============ Comparison streams ============ */
  function initStreams() {
    const slowStream = document.getElementById('slow-stream');
    const fastStream = document.getElementById('fast-stream');
    if (!slowStream || !fastStream) return;

    const basePrices = [1496.50, 1497.80, 1499.20, 1498.40, 1500.10, 1499.75, 1501.30, 1500.60];
    let slowIndex = 0;
    let fastIndex = 0;

    function updateSlowStream() {
      const price = basePrices[slowIndex % basePrices.length];
      const time = new Date().toLocaleTimeString('en-US', { hour12: false });

      const line = document.createElement('div');
      line.className = 'stream-line';
      line.innerHTML = `
        <span class="timestamp">${time}</span>
        <span class="price">₹${price.toFixed(2)}</span>
        <span class="latency slow">1000ms</span>
      `;

      slowStream.appendChild(line);
      const lines = slowStream.querySelectorAll('.stream-line');
      if (lines.length > 10) lines[0].remove();
      slowIndex++;
    }

    function updateFastStream() {
      const basePrice = basePrices[Math.floor(fastIndex / 20) % basePrices.length];
      const price = basePrice + (Math.random() - 0.5) * 0.8;
      const time = new Date().toLocaleTimeString('en-US', { hour12: false });
      const latency = 45 + Math.floor(Math.random() * 10);

      const line = document.createElement('div');
      line.className = 'stream-line';
      line.innerHTML = `
        <span class="timestamp">${time}</span>
        <span class="price">₹${price.toFixed(2)}</span>
        <span class="latency fast">${latency}ms</span>
      `;

      fastStream.appendChild(line);
      const lines = fastStream.querySelectorAll('.stream-line');
      if (lines.length > 10) lines[0].remove();
      fastIndex++;
    }

    setTimeout(() => {
      updateSlowStream();
      setInterval(updateSlowStream, 1000);
    }, 500);

    setTimeout(() => {
      updateFastStream();
      setInterval(updateFastStream, 50);
    }, 300);
  }
  setTimeout(initStreams, 800);

  /* ============ Scroll reveal + counters ============ */
  const revealObserver = new IntersectionObserver((entries) => {
    entries.forEach(entry => {
      if (!entry.isIntersecting) return;
      entry.target.classList.add('in-view');
      revealObserver.unobserve(entry.target);
    });
  }, { threshold: 0.15 });

  // Stagger siblings slightly for a cascade effect
  const groups = new Map();
  document.querySelectorAll('.reveal').forEach(el => {
    const parent = el.parentElement;
    const idx = (groups.get(parent) || 0);
    groups.set(parent, idx + 1);
    el.style.transitionDelay = Math.min(idx * 90, 450) + 'ms';
    revealObserver.observe(el);
  });

  const counterObserver = new IntersectionObserver((entries) => {
    entries.forEach(entry => {
      if (!entry.isIntersecting) return;
      const el = entry.target;
      const target = parseInt(el.dataset.target, 10);
      const duration = 1200;
      const start = performance.now();

      (function tick(now) {
        const p = Math.min((now - start) / duration, 1);
        const eased = 1 - Math.pow(1 - p, 3);
        el.textContent = Math.round(target * eased);
        if (p < 1) requestAnimationFrame(tick);
      })(start);

      counterObserver.unobserve(el);
    });
  }, { threshold: 0.5 });

  document.querySelectorAll('.counter').forEach(el => counterObserver.observe(el));

  /* ============ Feature card cursor glow ============ */
  document.querySelectorAll('.feature-card').forEach(card => {
    card.addEventListener('mousemove', (e) => {
      const rect = card.getBoundingClientRect();
      card.style.setProperty('--mx', ((e.clientX - rect.left) / rect.width * 100) + '%');
      card.style.setProperty('--my', ((e.clientY - rect.top) / rect.height * 100) + '%');
    });
  });
})();
</script>
