/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B0E14;
  --bg-card: #111622;
  --bg-card-hover: #161D2E;
  --accent-green: #00F5A0;
  --accent-cyan: #00D1FF;
  --accent-yellow: #FFB800;
  --accent-red: #FF4D6D;
  --accent-magenta: #A855F7;
  --text-primary: #F0F2F8;
  --text-secondary: #8892A4;
  --text-muted: #5A6478;
  --border: #1A2235;
  --chart-grid: rgba(255,255,255,0.04);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

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

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

/* === SHARED SECTION STYLES === */
section { padding: 100px 48px; }

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.eyebrow-light {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
}

/* === DEMO SECTION === */
.demo {
  padding-top: 148px;
  padding-bottom: 100px;
  background: var(--bg);
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.demo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.chart-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,245,160,0.05);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 22, 34, 0.8);
}

.chart-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-icon { color: var(--accent-green); font-size: 10px; }

.pair-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.pair-price {
  font-size: 13px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.pair-change.positive { color: var(--accent-green); font-size: 12px; font-weight: 600; }
.pair-change.negative { color: var(--accent-red); font-size: 12px; font-weight: 600; }

.chart-tabs {
  display: flex;
  gap: 4px;
}

.tab {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: rgba(0, 245, 160, 0.12);
  color: var(--accent-green);
  font-weight: 600;
}

.chart-timeframes {
  display: flex;
  gap: 2px;
}

.tf {
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
}

.tf.active {
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-green);
  font-weight: 600;
}

.chart-area {
  position: relative;
  padding: 16px 12px 8px 56px;
  height: 280px;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 16px 12px 8px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.grid-line {
  width: 100%;
  height: 1px;
  background: var(--chart-grid);
}

.y-axis {
  position: absolute;
  left: 12px;
  top: 16px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
}

.y-axis span {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1;
}

.candles {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  padding-bottom: 28px;
}

.candle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.candle .wick { width: 1px; background: inherit; }
.candle .body { width: 8px; border-radius: 1px; }

.candle.bullish .wick { background: rgba(0,245,160,0.5); }
.candle.bullish .body { background: var(--accent-green); }

.candle.bearish .wick { background: rgba(255,77,109,0.4); }
.candle.bearish .body { background: var(--accent-red); }

.signal-candle .entry-marker,
.exit-candle .exit-marker { position: absolute; }

/* Entry marker */
.entry-marker {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 10;
}

.arrow-up { animation: bounce-up 1.5s ease-in-out infinite; }

@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.arrow-down { animation: bounce-down 1.5s ease-in-out infinite; }

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.entry-label, .exit-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.entry-label { color: var(--accent-green); }
.exit-label { color: var(--accent-red); }

/* AI Tooltip */
.ai-tooltip {
  position: absolute;
  bottom: calc(100% + 36px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: #0D1F2D;
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  z-index: 20;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(0,245,160,0.08);
  pointer-events: none;
  animation: tooltip-in 0.3s ease-out;
}

@keyframes tooltip-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
}

.tooltip-icon { color: var(--accent-cyan); font-size: 10px; }

.ai-tooltip p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Exit marker */
.exit-marker {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.x-axis {
  position: absolute;
  bottom: 8px;
  left: 56px;
  right: 12px;
  display: flex;
  justify-content: space-between;
}

.x-axis span {
  font-size: 9px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.volume-area {
  border-top: 1px solid var(--border);
  padding: 8px 12px 12px 56px;
  display: flex;
  gap: 8px;
}

.y-axis-small {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  padding: 4px 0;
}

.y-axis-small span { font-size: 9px; color: var(--text-muted); text-align: right; }

.volume-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
}

.vol-bar {
  flex: 1;
  background: rgba(0, 245, 160, 0.2);
  border-radius: 2px 2px 0 0;
  transition: height 0.3s;
}

.vol-bar.highlight { background: rgba(0, 245, 160, 0.4); }

/* Sidebar */
.demo-sidebar {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.module-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.style-list { display: flex; flex-direction: column; gap: 4px; }

.style-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.style-item:hover, .style-item.active { background: rgba(0,245,160,0.05); }

.style-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.style-dot.green { background: var(--accent-green); box-shadow: 0 0 8px rgba(0,245,160,0.4); }
.style-dot.cyan { background: var(--accent-cyan); box-shadow: 0 0 8px rgba(0,209,255,0.4); }
.style-dot.magenta { background: var(--accent-magenta); box-shadow: 0 0 8px rgba(168,85,247,0.4); }

.style-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.style-tag {
  font-size: 10px;
  color: var(--text-muted);
}

.demo-cta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.cta-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* === HOW IT WORKS === */
.how-it-works { background: var(--bg); }

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 64px;
}

.step {
  flex: 1;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s;
}

.step:hover { border-color: rgba(0,245,160,0.3); }

.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.step-icon { margin-bottom: 20px; }

.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.step-connector {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent-green), var(--border));
  flex-shrink: 0;
}

/* === TRADING STYLES === */
.trading-styles { background: #0D1117; }

.style-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.style-card:hover {
  border-color: rgba(0,245,160,0.2);
  transform: translateY(-2px);
}

.card-chart {
  height: 80px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.mini-candles {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.mini-candle {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 8px;
}

.mini-candle.bullish { background: rgba(0,245,160,0.6); }
.mini-candle.bearish { background: rgba(255,77,109,0.5); }

.mini-algo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.algo-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  width: 100%;
}

.algo-arrows {
  display: flex;
  justify-content: space-around;
  padding: 0 8px;
}

.algo-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
}

.algo-tag.green { background: rgba(0,245,160,0.15); color: var(--accent-green); }
.algo-tag.red { background: rgba(255,77,109,0.15); color: var(--accent-red); }

.card-content { padding: 20px; }

.card-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-meta {
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

/* === INDICATORS === */
.indicators { background: var(--bg); }

.indicators-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.indicator-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.indicator-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-secondary);
}

.indicator-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.indicator-visual {
  display: flex;
  justify-content: center;
}

.indicator-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
}

.ind-chart-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.ind-candles {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 16px;
}

.rsi-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  margin-bottom: 12px;
}

.rsi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.rsi-meter {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green) 30%, var(--text-muted) 30%, var(--text-muted) 70%, var(--accent-red) 70%, var(--accent-red) 100%);
  position: relative;
}

.rsi-needle {
  position: absolute;
  top: -3px;
  left: 42.7%;
  width: 3px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.rsi-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.ind-tooltip {
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0,245,160,0.2);
  border-radius: 8px;
  padding: 10px 14px;
}

.ind-tag {
  font-size: 12px;
  color: var(--accent-green);
}

/* === PHILOSOPHY === */
.philosophy { background: #0D1117; }

.philosophy-content { max-width: 800px; }

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 36px;
  position: relative;
  padding-left: 24px;
}

.philosophy-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent-green);
  border-radius: 2px;
}

.philosophy-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}

.philosophy-body p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--accent-green);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 48px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

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

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .style-cards { grid-template-columns: repeat(3, 1fr); }
  .indicators-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .demo-container { grid-template-columns: 1fr; }
  .demo-sidebar { order: -1; }
  .style-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; gap: 16px; }
  .step-connector { width: 48px; height: 1px; }
  .philosophy-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
