/* ─── Fonts ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

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

body {
  background: linear-gradient(180deg, #070B14 0%, #0A1628 50%, #070B14 100%);
  color: #E2E8F0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; }
ul { list-style: none; }

/* ─── Utility ─────────────────────────────────────────────────── */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 896px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 576px; margin: 0 auto; padding: 0 24px; }
.font-heading { font-family: 'Outfit', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-primary { color: #00E5CC; }
.text-secondary { color: #94A3B8; }
.text-white { color: #fff; }
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #00E5CC, transparent);
  opacity: 0.25;
  max-width: 1152px;
  margin: 0 auto;
}

/* ─── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: #1B2D45;
}
.nav-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-logo .fe {
  background: linear-gradient(135deg, #00E5CC, #fff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: #CBD5E1; font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.btn-primary { color: #020806; font-weight: 800; }
.nav-links a.btn-primary:hover { color: #020806; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px; background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }
.nav-mobile {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: rgba(7, 11, 20, 0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid #1B2D45; padding: 16px 24px;
  flex-direction: column; gap: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: #94A3B8; font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: #fff; }

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

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #00E5CC, #00C4B0); color: #020806; font-weight: 800;
  padding: 12px 28px; border-radius: 8px; font-size: 0.9375rem;
  transition: box-shadow 0.3s, transform 0.15s;
  box-shadow: 0 0 20px rgba(0, 229, 204, 0.3);
  text-shadow: 0 1px 0 rgba(0, 229, 204, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(0, 229, 204, 0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(0, 229, 204, 0.4); color: #00E5CC;
  font-weight: 600; padding: 12px 28px; border-radius: 8px; font-size: 0.9375rem;
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover {
  border-color: #00E5CC; background: rgba(0, 229, 204, 0.08);
}

/* ─── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid #1B2D45; border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 229, 204, 0.1);
  border-color: rgba(0, 229, 204, 0.3);
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 896px; margin: 0 auto; padding: 96px 24px 48px;
  text-align: center;
}
.hero-pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #00E5CC; margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
  line-height: 1.08; color: #fff; margin-bottom: 24px;
}
.hero h1 > span { display: block; }
.hero-sub {
  color: #94A3B8; font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 640px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-bottom: 40px;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 32px;
}
.hero-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: rgba(0, 229, 204, 0.8);
  border: 1px solid rgba(0, 229, 204, 0.2); border-radius: 999px;
  padding: 6px 16px; background: rgba(0, 229, 204, 0.05);
}
.hero-powered {
  color: rgba(148, 163, 184, 0.5); font-size: 0.875rem;
}
.hero-powered a {
  color: rgba(148, 163, 184, 0.7); text-decoration: underline;
  text-underline-offset: 2px; transition: color 0.2s;
}
.hero-powered a:hover { color: #00E5CC; }

/* ─── Section ─────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
  color: #fff; margin-bottom: 16px;
}
.section-accent { width: 48px; height: 2px; background: #00E5CC; margin-bottom: 24px; }
.section-sub { color: #94A3B8; max-width: 480px; margin-bottom: 56px; }

/* ─── Products Grid ───────────────────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 768px) { .products-grid { grid-template-columns: 1fr; } }

.product-card { overflow: hidden; }
.product-accent { height: 3px; }
.product-accent-perps { background: linear-gradient(90deg, #00E5CC, rgba(0, 229, 204, 0.4)); }
.product-accent-options { background: linear-gradient(90deg, #a855f7, #00E5CC); }
.product-accent-events { background: linear-gradient(90deg, #F59E0B, #00E5CC); }
.product-inner { padding: 24px 32px 32px; }
.product-icon { font-size: 1.5rem; margin-bottom: 16px; }
.product-name {
  font-family: 'Outfit', sans-serif; font-size: 1.125rem;
  font-weight: 700; color: #fff; margin-bottom: 4px;
}
.product-tagline { color: #94A3B8; font-size: 0.875rem; margin-bottom: 20px; }
.product-features li {
  color: rgba(148, 163, 184, 0.8); font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 8px;
}
.product-features li::before {
  content: '\25B9'; color: #00E5CC; font-size: 0.75rem; margin-top: 2px;
}

/* Product visuals */
.candle-chart { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-bottom: 16px; }
.candle { display: flex; flex-direction: column; align-items: center; }
.candle-wick { width: 1px; }
.candle-body { width: 6px; border-radius: 1px; }
.candle-green .candle-wick { background: rgba(16, 185, 129, 0.4); }
.candle-green .candle-body { background: #10B981; }
.candle-red .candle-wick { background: rgba(239, 68, 68, 0.4); }
.candle-red .candle-body { background: #EF4444; }

.greeks-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: rgba(148, 163, 184, 0.7);
  display: flex; gap: 12px; margin-bottom: 12px;
}
.greeks-display .symbol { color: #00E5CC; }
.badge-0dte {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  font-weight: 700; color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 4px;
  padding: 2px 8px; background: rgba(245, 158, 11, 0.05);
  animation: pulse-glow 2s ease-in-out infinite;
  margin-bottom: 16px;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.1); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.3); }
}

.prob-labels {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  display: flex; justify-content: space-between; margin-bottom: 6px;
}
.prob-yes { color: #10B981; }
.prob-no { color: #EF4444; }
.prob-bar {
  width: 100%; height: 8px; border-radius: 999px;
  overflow: hidden; display: flex; background: #1B2D45; margin-bottom: 16px;
}
.prob-bar-yes { background: #10B981; }
.prob-bar-no { background: #EF4444; }

/* ─── Differentiators Grid ────────────────────────────────────── */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card { padding: 24px 32px; }
.diff-symbol {
  font-family: 'JetBrains Mono', monospace;
  color: #00E5CC; font-size: 1.125rem; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.diff-title {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.diff-desc { color: #94A3B8; font-size: 0.875rem; line-height: 1.6; }

/* ─── Architecture ────────────────────────────────────────────── */
.arch-stack { display: flex; flex-direction: column; }
.arch-connector {
  display: flex; justify-content: center; margin: -1px 0;
}
.arch-connector-line {
  width: 1px; height: 24px;
  background: linear-gradient(to bottom, rgba(0, 229, 204, 0.3), rgba(0, 229, 204, 0.1));
}
.arch-layer {
  display: flex; border-radius: 12px; overflow: hidden;
}
.arch-layer-top {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.arch-layer-mid {
  background: rgba(0, 229, 204, 0.06);
  border: 1px solid rgba(0, 229, 204, 0.3);
  animation: breathe-glow 4s ease-in-out infinite;
}
.arch-layer-bottom {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid #1B2D45;
}
@keyframes breathe-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 204, 0.1), inset 0 0 20px rgba(0, 229, 204, 0.03); }
  50% { box-shadow: 0 0 40px rgba(0, 229, 204, 0.2), inset 0 0 40px rgba(0, 229, 204, 0.06); }
}
.arch-content { flex: 1; padding: 24px 32px; }
.arch-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(0, 229, 204, 0.7); margin-bottom: 8px;
}
.arch-items { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-item {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: #94A3B8; background: rgba(255, 255, 255, 0.05);
  border-radius: 4px; padding: 4px 10px;
}
.arch-label {
  width: 160px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05); padding: 0 16px;
}
.arch-label span {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.5); text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 640px) {
  .arch-layer { flex-direction: column; }
  .arch-label {
    width: 100%; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
  }
}

/* ─── Composable Grid ────────────────────────────────────────── */
.compose-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .compose-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .compose-grid { grid-template-columns: 1fr; } }

.compose-card { padding: 28px 28px 24px; display: flex; flex-direction: column; }
.compose-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.compose-icon {
  font-size: 1.25rem; color: #00E5CC;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid rgba(0, 229, 204, 0.15);
  border-radius: 8px; flex-shrink: 0;
}
.compose-title {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  color: #fff; font-size: 1rem;
}
.compose-code {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid rgba(27, 45, 69, 0.6);
  border-radius: 8px; padding: 14px 16px;
  font-size: 0.75rem; line-height: 1.7;
  color: #94A3B8; margin-bottom: 16px;
  overflow-x: auto;
}
.compose-code .code-kw { color: #a855f7; }
.compose-code .code-val { color: #00E5CC; }
.compose-code .code-str { color: #F59E0B; }
.compose-code .code-comment { color: rgba(148, 163, 184, 0.35); }
.compose-desc { color: #94A3B8; font-size: 0.8125rem; line-height: 1.65; flex: 1; }

/* ─── Stats ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700;
  color: #00E5CC; margin-bottom: 8px;
}
.stat-label { color: #94A3B8; font-size: 0.875rem; font-weight: 500; }
.stat-sub { color: rgba(148, 163, 184, 0.4); font-size: 0.75rem; margin-top: 4px; }

/* ─── Waitlist ────────────────────────────────────────────────── */
.waitlist { position: relative; text-align: center; }
.waitlist-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.waitlist-input {
  flex: 1; background: #0D1B2A; border: 1px solid #1B2D45;
  border-radius: 8px; padding: 12px 16px; font-size: 0.875rem;
  color: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-input::placeholder { color: rgba(148, 163, 184, 0.4); }
.waitlist-input:focus {
  border-color: #00E5CC; box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.15);
}
.waitlist-success {
  background: rgba(13, 27, 42, 0.7); border: 1px solid #1B2D45;
  border-radius: 12px; padding: 24px; backdrop-filter: blur(16px);
  max-width: 480px; margin: 0 auto;
}
.waitlist-note { color: rgba(148, 163, 184, 0.3); font-size: 0.75rem; margin-top: 16px; }
@media (max-width: 640px) {
  .waitlist-form { flex-direction: column; }
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-col-title {
  font-family: 'Outfit', sans-serif; font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(148, 163, 184, 0.6); font-size: 0.875rem;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1B2D45; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { color: rgba(148, 163, 184, 0.4); font-size: 0.75rem; }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: #00E5CC; }

/* ─── Scroll Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero stagger */
.hero-stagger { opacity: 0; transform: translateY(32px); animation: fade-up 0.6s ease forwards; }
.hero-stagger:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger:nth-child(3) { animation-delay: 0.4s; }
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
.hero-fade { opacity: 0; animation: fade-up 0.6s ease forwards; }
.hero-fade-1 { animation-delay: 0.55s; }
.hero-fade-2 { animation-delay: 0.7s; }
.hero-fade-3 { animation-delay: 0.85s; }
.hero-fade-4 { animation-delay: 1.0s; }

/* ─── AI Strategy Section ─────────────────────────────────────── */
@media (max-width: 768px) {
  .ai-strategy-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Card Shine Overlay ──────────────────────────────────────── */
.card-shine {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1;
  transition: background 0.3s ease;
}
.glass-card { position: relative; overflow: hidden; }
.glass-card:hover { transform: none; } /* 3D tilt handles transform via JS */

/* ─── Hero Chart Canvas ──────────────────────────────────────── */
.hero-chart-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ─── Candlestick Draw Animation ─────────────────────────────── */
.candle {
  transform: scaleY(0);
  transform-origin: bottom center;
}
@keyframes candle-grow {
  0% { transform: scaleY(0); opacity: 0; }
  60% { transform: scaleY(1.1); }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ─── AI Typing Animation ────────────────────────────────────── */
.ai-thesis-text { opacity: 0; }
.typing-cursor {
  color: #00E5CC; font-weight: 300;
  animation: cursor-blink 0.6s ease-in-out infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.ai-analyzing {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.strategy-leg {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.strategy-summary {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ─── Morphing Gradient Blobs ────────────────────────────────── */
.blob-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
}

/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #070B14; }
::-webkit-scrollbar-thumb { background: #1B2D45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2D4A6F; }
