/* ============================================
   TRADEOS Landing — Premium Light FinTech
   ============================================ */

:root {
  /* Colors */
  --bg: #FAFAF8;
  --bg-warm: #F7F5F0;
  --bg-soft: #F0EEE8;
  --surface: #FFFFFF;
  --text: #1A1A18;
  --text-secondary: #5C5A54;
  --text-muted: #8A877C;
  --gold: #C9A227;
  --gold-light: #E8D48B;
  --gold-dark: #A6851A;
  --emerald: #1A7A4C;
  --emerald-soft: #E6F4EC;
  --red: #C23B3B;
  --red-soft: #F8EAEA;
  --border: rgba(26, 26, 24, 0.08);
  --border-strong: rgba(26, 26, 24, 0.14);
  --shadow-sm: 0 2px 8px rgba(26, 26, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 26, 24, 0.06);
  --shadow-lg: 0 20px 48px rgba(26, 26, 24, 0.08);
  --shadow-xl: 0 32px 64px rgba(26, 26, 24, 0.1);

  /* Typography */
  --font: 'Vazirmatn', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1180px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
.mono { font-family: var(--mono); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--text);
  color: var(--bg);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}
.logo-text { letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 999;
  padding: 32px 24px;
  display: none;
}
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu a {
  font-size: 1.15rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu .btn-primary,
.mobile-menu .btn-ghost {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
  background: #2a2a28;
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(26,26,24,0.03);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 11px 16px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); background: rgba(26,26,24,0.04); }

.btn-lg { padding: 14px 26px; font-size: 0.95rem; border-radius: 12px; }
.btn-xl { padding: 18px 36px; font-size: 1.05rem; border-radius: 14px; }

/* Magnetic hover (JS adds transform) */
.magnetic { transition: transform 0.25s var(--ease-out); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,26,24,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,24,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.cursor-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}
.hero:hover .cursor-glow { opacity: 1; }

/* Hero particles */
.hero-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: particleFloat 12s infinite ease-in-out;
}
.p1 { top: 18%; right: 12%; animation-delay: 0s; }
.p2 { top: 35%; left: 8%; width: 6px; height: 6px; animation-delay: 2s; background: var(--emerald); }
.p3 { top: 55%; right: 22%; animation-delay: 4s; }
.p4 { top: 70%; left: 18%; width: 5px; height: 5px; animation-delay: 1s; background: var(--gold-light); }
.p5 { top: 25%; left: 30%; animation-delay: 3s; }
.p6 { top: 60%; right: 8%; width: 3px; height: 3px; animation-delay: 5s; }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-28px) scale(1.3); opacity: 0.55; }
}

/* Hero background chart lines */
.hero-chart-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  opacity: 0.9;
}
.chart-line-1, .chart-line-2 {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawChartLine 3s 0.5s var(--ease-out) forwards;
}
.chart-line-2 { animation-delay: 1s; }
@keyframes drawChartLine {
  to { stroke-dashoffset: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--gold-dark); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-trust .sep { opacity: 0.4; }

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 420px;
  margin: 0 auto;
  perspective: 1200px;
}

.candles {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  opacity: 0.5;
  z-index: 1;
}
.candle {
  width: 14px;
  height: var(--h);
  position: relative;
  animation: candleGrow 1.2s var(--ease-out) both;
}
.candle:nth-child(1) { animation-delay: 0.1s; }
.candle:nth-child(2) { animation-delay: 0.2s; }
.candle:nth-child(3) { animation-delay: 0.3s; }
.candle:nth-child(4) { animation-delay: 0.4s; }
.candle:nth-child(5) { animation-delay: 0.5s; }
.candle:nth-child(6) { animation-delay: 0.6s; }
.candle:nth-child(7) { animation-delay: 0.7s; }
.candle:nth-child(8) { animation-delay: 0.8s; }
.candle:nth-child(9) { animation-delay: 0.9s; }
.candle:nth-child(10) { animation-delay: 1.0s; }
.candle span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
}
.candle.up span { background: var(--emerald); }
.candle.down span { background: var(--red); }
.candle::before {
  content: '';
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20%;
  background: inherit;
}
.candle.up::before { background: var(--emerald); }
.candle.down::before { background: var(--red); }
@keyframes candleGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  width: 180px;
  z-index: 3;
  transition: transform 0.15s linear;
  will-change: transform;
}
.float-card .fc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.float-card .symbol {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
}
.float-card .side {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.side.buy { background: var(--emerald-soft); color: var(--emerald); }
.side.sell { background: var(--red-soft); color: var(--red); }
.fc-body {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.fc-body div { display: flex; justify-content: space-between; }
.fc-body b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.fc-pnl {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
}
.fc-pnl.positive { color: var(--emerald); }
.fc-pnl.negative { color: var(--red); }

.card-1 { top: 20px; right: 0; animation: floatIn 1s 0.3s var(--ease-out) both; }
.card-2 { top: 120px; left: 0; animation: floatIn 1s 0.5s var(--ease-out) both; }
.card-3 { bottom: 30px; right: 40px; animation: floatIn 1s 0.7s var(--ease-out) both; }
.card-4 { top: 60px; left: 160px; animation: floatIn 1s 0.9s var(--ease-out) both; width: 160px; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mini order book graphic */
.orderbook-mini {
  position: absolute;
  bottom: 50px;
  left: 8%;
  width: 130px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  opacity: 0.9;
  animation: floatIn 1s 1s var(--ease-out) both;
}
.ob-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 0.65rem;
}
.ob-row:last-child { margin-bottom: 0; }
.ob-bar {
  height: 8px;
  border-radius: 2px;
  width: var(--w);
  flex-shrink: 0;
}
.ob-row.bid .ob-bar { background: rgba(26,122,76,0.35); }
.ob-row.ask .ob-bar { background: rgba(194,59,59,0.35); }
.ob-price { font-family: var(--mono); color: var(--text-secondary); }

/* Browser mockup */
.browser-mock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-6deg);
  width: 520px;
  max-width: 90%;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.2s linear;
  will-change: transform;
  transform-style: preserve-3d;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dots { display: flex; gap: 5px; }
.browser-bar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D4D2CB;
}
.browser-bar .dots span:nth-child(1) { background: #E8A0A0; }
.browser-bar .dots span:nth-child(2) { background: #E8D48B; }
.browser-bar .dots span:nth-child(3) { background: #A8D4B8; }
.browser-bar .url {
  flex: 1;
  background: var(--surface);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--mono);
  text-align: center;
}
.browser-content {
  display: flex;
  height: 260px;
}
.mock-sidebar {
  width: 48px;
  background: var(--bg-warm);
  border-left: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mock-logo {
  width: 28px;
  height: 28px;
  background: var(--text);
  color: var(--bg);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.mock-nav-item {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(26,26,24,0.06);
}
.mock-nav-item.active { background: rgba(201,162,39,0.2); }
.mock-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-title {
  width: 120px;
  height: 12px;
  background: rgba(26,26,24,0.1);
  border-radius: 4px;
}
.mock-btn {
  width: 64px;
  height: 24px;
  background: var(--text);
  border-radius: 6px;
}
.mock-stats {
  display: flex;
  gap: 10px;
}
.mock-stat {
  flex: 1;
  background: var(--bg-warm);
  border-radius: 8px;
  padding: 10px;
  height: 48px;
}
.mock-stat span {
  display: block;
  width: 40%;
  height: 6px;
  background: rgba(26,26,24,0.08);
  border-radius: 3px;
  margin-bottom: 8px;
}
.mock-stat b {
  display: block;
  width: 60%;
  height: 10px;
  background: rgba(26,26,24,0.12);
  border-radius: 3px;
}
.mock-chart {
  flex: 1;
  background: var(--bg-warm);
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
}
.mock-chart svg { width: 100%; height: 100%; }
.equity-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawPath 2s 0.8s var(--ease-out) forwards;
}
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.mock-table { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
  height: 18px;
  background: rgba(26,26,24,0.04);
  border-radius: 4px;
}
.mock-row:nth-child(1) { width: 100%; }
.mock-row:nth-child(2) { width: 92%; }
.mock-row:nth-child(3) { width: 85%; }

/* ========== SECTIONS COMMON ========== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.text-gold { color: var(--gold-dark); }

/* ========== PROBLEM ========== */
.problem {
  background: var(--bg-warm);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pc-icon {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: var(--mono);
}
.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== PROCESS ========== */
.process-visual {
  margin-bottom: 28px;
  overflow: hidden;
}
.process-line-svg {
  width: 100%;
  height: 40px;
}
.process-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.process-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 20px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.process-step:hover {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}
.ps-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: var(--bg-warm);
  border-radius: 12px;
  color: var(--gold-dark);
}
.ps-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}
.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.process-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.process-arrow {
  display: flex;
  align-items: center;
  padding-top: 36px;
  color: var(--text-muted);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ========== JOURNAL ========== */
.journal-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.journal-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.jm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.jm-symbol {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
}
.jm-pnl {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
}
.jm-pnl.positive { color: var(--emerald); }
.jm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.jm-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.jm-item b {
  font-size: 0.95rem;
  font-weight: 600;
}
.jm-item .mistake { color: var(--emerald); }
.jm-notes {
  margin-bottom: 20px;
}
.jm-notes span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.jm-notes p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--bg-warm);
  padding: 12px 14px;
  border-radius: 10px;
}
.jm-screenshot .ss-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100px;
  background: var(--bg-soft);
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.journal-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.jf-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.jf-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}
.jf-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-warm);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--gold-dark);
}
.jf-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.jf-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== ANALYTICS ========== */
.analytics {
  background: var(--bg-warm);
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline;
}
.metric-value.positive { color: var(--emerald); }
.metric-unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.equity-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.equity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.equity-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.demo-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
}
.equity-chart {
  height: 240px;
  position: relative;
}
.equity-svg {
  width: 100%;
  height: 100%;
}
.equity-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.equity-line.drawn {
  animation: drawEquity 2.2s var(--ease-out) forwards;
}
.equity-area {
  opacity: 0;
}
.equity-area.drawn {
  animation: fadeArea 1.5s 0.6s var(--ease) forwards;
}
@keyframes drawEquity {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeArea {
  to { opacity: 1; }
}

/* ========== PSYCHOLOGY ========== */
.psycho-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.psycho-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.psycho-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.psycho-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--bg-warm);
  color: var(--gold-dark);
}
.psycho-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.psycho-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ========== CALENDAR ========== */
.calendar-section {
  background: var(--bg-warm);
}
.calendar-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-warm);
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.cal-nav:hover {
  background: var(--text);
  color: var(--bg);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  transition: transform 0.2s;
  cursor: default;
}
.cal-day.empty { visibility: hidden; }
.cal-day.win {
  background: var(--emerald-soft);
  color: var(--emerald);
}
.cal-day.loss {
  background: var(--red-soft);
  color: var(--red);
}
.cal-day.flat {
  background: var(--bg-soft);
  color: var(--text-muted);
}
.cal-day:hover { transform: scale(1.08); }
.cal-day .pnl {
  font-size: 0.55rem;
  font-family: var(--mono);
  margin-top: 1px;
  opacity: 0.85;
}
.cal-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.cal-legend .leg {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.leg.win i { background: var(--emerald); }
.leg.loss i { background: var(--red); }
.leg.flat i { background: #D4D2CB; }

/* ========== INTEGRATIONS ========== */
.integ-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.integ-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.integ-card:hover { box-shadow: var(--shadow-md); }
.integ-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-warm);
  border-radius: 12px;
}
.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.flow-node.tradeos {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.flow-line {
  width: 24px;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}
.flow-line span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(100%);
  animation: flowPulse 2.5s infinite;
}
@keyframes flowPulse {
  0% { transform: translateX(100%); }
  50% { transform: translateX(-100%); }
  100% { transform: translateX(-100%); }
}
.integ-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.integ-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== DATA SAFETY ========== */
.data-safety {
  background: var(--bg-warm);
}
.safety-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sf-step {
  text-align: center;
  min-width: 140px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.sf-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--gold-dark);
}
.sf-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.sf-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sf-arrow {
  display: flex;
  align-items: center;
  padding-top: 40px;
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 1.2rem;
}

/* ========== FINAL CTA ========== */
.final-cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  background: var(--text);
  color: var(--bg);
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}
.cta-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  position: relative;
}
.cta-title .text-gold { color: var(--gold-light); }
.cta-sub {
  font-size: 1.15rem;
  color: rgba(250,250,248,0.7);
  margin-bottom: 36px;
  position: relative;
}
.final-cta .btn-primary {
  background: var(--gold);
  color: var(--text);
  position: relative;
}
.final-cta .btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(201,162,39,0.35);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-warm);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-note { opacity: 0.8; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .card-4 { display: none; }
  .orderbook-mini { display: none; }
}

@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: 1fr; max-width: 480px; }
  .process-track { flex-direction: column; align-items: stretch; gap: 12px; }
  .process-arrow { display: none; }
  .process-visual { display: none; }
  .journal-showcase { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .psycho-grid { grid-template-columns: repeat(2, 1fr); }
  .integ-grid { grid-template-columns: 1fr; }
  .safety-flow { flex-direction: column; align-items: center; gap: 8px; }
  .sf-arrow { transform: rotate(-90deg); padding-top: 0; }
  .hero-visual { height: 380px; }
  .browser-mock { width: 440px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero {
    padding: calc(var(--nav-h) + 28px) 16px 48px;
    min-height: auto;
  }
  .hero-content { margin-bottom: 32px; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-ctas { gap: 10px; margin-bottom: 28px; }
  .hero-trust { font-size: 0.75rem; gap: 6px 10px; }
  .hero-visual { height: 300px; }
  .browser-mock {
    width: min(340px, 92vw);
    transform: translate(-50%, -50%) rotateX(4deg) rotateY(-3deg) !important;
  }
  .browser-content { height: 190px; }
  .float-card { display: none; }
  .candles { opacity: 0.25; height: 100px; bottom: 20px; gap: 6px; }
  .candle { width: 10px; }
  .orderbook-mini { display: none; }
  .hero-particles { opacity: 0.5; }
  .section { padding: 64px 0; }
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .section-desc { font-size: 0.95rem; margin-bottom: 32px; }
  .container { padding: 0 16px; }
  .analytics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-card { padding: 18px 14px; }
  .metric-value { font-size: 1.5rem; }
  .psycho-grid { grid-template-columns: 1fr; gap: 12px; }
  .equity-chart { height: 180px; }
  .calendar-wrap { padding: 20px 14px; }
  .integ-flow { gap: 4px; padding: 12px 8px; }
  .flow-node { padding: 6px 10px; font-size: 0.72rem; }
  .flow-line { width: 16px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px; }
  .btn-lg { padding: 13px 22px; min-height: 48px; }
  .btn-xl { padding: 16px 28px; min-height: 52px; }
  .mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; line-height: 1.3; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    justify-content: center;
    width: 100%;
    min-height: 50px;
  }
  .browser-mock { width: min(290px, 88vw); }
  .mock-sidebar { width: 34px; padding: 10px 6px; }
  .mock-logo { width: 24px; height: 24px; font-size: 0.65rem; }
  .browser-content { height: 170px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .metric-value { font-size: 1.75rem; }
  .jm-grid { grid-template-columns: 1fr; }
  .journal-mock { padding: 20px 16px; }
  .problem-card, .psycho-card, .integ-card { padding: 22px 18px; }
  .final-cta { padding: 80px 0; }
  .cta-title { font-size: 1.55rem; }
  .cal-day { font-size: 0.8rem; border-radius: 8px; }
  .cal-day .pnl { font-size: 0.5rem; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.55rem; }
  .browser-mock { width: 260px; }
  .hero-badge { font-size: 0.75rem; }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
  .btn-primary, .btn-secondary, .btn-ghost, .cal-nav {
    min-height: 44px;
  }
  .nav-links a::after { display: none; }
  .problem-card:hover,
  .psycho-card:hover,
  .process-step:hover {
    transform: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .cursor-glow,
  .hero-particles,
  .hero-chart-bg { display: none; }
}
