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

:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --border: #27272a;
  --border-subtle: #1e1e21;
  --text: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-subtle: rgba(99, 102, 241, 0.08);
  --accent-border: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Hero Visual / Mockup ── */
.hero-visual {
  position: relative;
  margin-top: 64px;
  z-index: 1;
}

.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

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

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 34px;
}

.mockup-body {
  display: flex;
  min-height: 320px;
}

.mockup-sidebar {
  width: 52px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mockup-nav-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
}

.mockup-nav-item.active {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
}

.mockup-content {
  flex: 1;
  padding: 24px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mockup-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.mockup-stat-label {
  width: 60%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
}

.mockup-stat-label-text {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.mockup-stat-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.mockup-stat-change {
  font-size: 12px;
  font-weight: 600;
}

.mockup-stat-change.positive {
  color: var(--green);
}

.mockup-stat-change.neutral {
  color: var(--text-muted);
}

.mockup-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px 8px;
  margin-bottom: 16px;
  height: 100px;
  display: flex;
  align-items: flex-end;
}

.mockup-chart svg {
  width: 100%;
  height: 80px;
}

.mockup-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.mockup-ticker {
  font-weight: 600;
  width: 56px;
  flex-shrink: 0;
}

.mockup-row-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  flex-shrink: 0;
}

.mockup-pct {
  color: var(--green);
  font-weight: 600;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Features overview ── */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-muted);
  background: var(--bg);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Feature Sections (individual pages) ── */
.feature-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

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

.feature-section-layout.reverse {
  direction: rtl;
}

.feature-section-layout.reverse > * {
  direction: ltr;
}

.section-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.feature-section-text h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.feature-section-text > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

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

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

.integration-list li svg {
  color: var(--green);
  flex-shrink: 0;
}

/* ── Feature mockups ── */
.feature-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.feature-mockup-body {
  padding: 24px;
}

/* Simulator mockup */
.sim-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.sim-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.chat-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-result-row:last-child {
  border-bottom: none;
}

.chat-result-row.highlight {
  color: var(--text);
  font-weight: 600;
}

.chat-result-row.highlight span:last-child {
  color: var(--green);
}

/* Operations mockup */
.ops-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ops-header {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.7fr 0.6fr 0.8fr;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.ops-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.7fr 0.6fr 0.8fr;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.ops-row:last-child {
  border-bottom: none;
}

.ops-ticker {
  font-weight: 600;
  color: var(--text);
}

.ops-type {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.ops-type.buy {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.ops-type.sell {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.ops-type.dividend {
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow);
}

/* Import mockup */
.import-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.import-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  transition: border-color 0.2s;
}

.import-dropzone svg {
  margin: 0 auto 12px;
  opacity: 0.5;
}

.import-dropzone-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.import-dropzone-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.import-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.import-result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.import-result-row:last-child {
  border-bottom: none;
}

.import-count {
  font-weight: 700;
  color: var(--accent-hover);
}

/* ── Terminal / Chat mockup ── */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 34px;
}

.terminal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-msg {
  display: flex;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.user-bubble {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.assistant-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.assistant-bubble p {
  margin-bottom: 12px;
}

/* ── CTA ── */
.cta {
  position: relative;
  text-align: center;
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}

.cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  position: relative;
}

.cta .btn {
  position: relative;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 13px;
}

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

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

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-section-layout,
  .feature-section-layout.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    direction: ltr;
  }

  .nav-links a:not(.btn):not(:last-of-type) {
    display: none;
  }
}

@media (max-width: 768px) {
  nav { padding: 14px 20px; }

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

  .hero {
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

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

  .hero-glow { width: 400px; }

  .mockup-body { min-height: 240px; }
  .mockup-sidebar { display: none; }
  .mockup-stats { grid-template-columns: 1fr; gap: 10px; }
  .mockup-stat-value { font-size: 16px; }

  .features { padding: 80px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }

  .feature-section { padding: 60px 20px; }
  .feature-section-text h2 { font-size: 26px; }

  .ops-header,
  .ops-row {
    grid-template-columns: 1fr 0.8fr 0.8fr;
  }
  .ops-header span:nth-child(4),
  .ops-header span:nth-child(5),
  .ops-row span:nth-child(4),
  .ops-row span:nth-child(5) {
    display: none;
  }

  .cta { padding: 80px 20px; }
  .cta h2 { font-size: 28px; }

  footer { padding: 24px 20px; }
  .footer-content { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { justify-content: center; }
}
