/* =============================================
   VestMind Landing Page — Custom Styles
   ============================================= */

:root {
  --bg: #0D0F1A;
  --bg-alt: #12141F;
  --bg-card: #151826;
  --fg: #E8E4DC;
  --fg-muted: #7A7A8C;
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --cyan: #00E5FF;
  --cyan-dim: rgba(0, 229, 255, 0.1);
  --border: rgba(255,255,255,0.06);
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(13,15,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--fg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}
.hero-lede {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 440px;
}

/* Market Display */
.market-display {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.market-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.market-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4ade80;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}
.candlestick-chart {
  padding: 20px 20px 0;
}
.chart-svg {
  width: 100%;
  height: 140px;
  display: block;
}
.candle { transition: opacity 0.2s; }
.candle:hover { opacity: 0.7; }

/* Signal Feed */
.signal-feed {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signal-row {
  display: grid;
  grid-template-columns: 48px 64px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12px;
}
.signal-row--alert { background: rgba(212,175,55,0.08); border-radius: 6px; padding: 8px 10px; }
.signal-time { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.signal-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gold-dim);
  color: var(--gold);
  text-align: center;
}
.signal-tag--macro { background: rgba(0,229,255,0.08); color: var(--cyan); }
.signal-tag--sentiment { background: rgba(160,80,220,0.12); color: #c084fc; }
.signal-tag--earnings { background: rgba(34,197,94,0.1); color: #4ade80; }
.signal-text { color: var(--fg-muted); line-height: 1.4; }

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  animation: scroll-hint-fade 3s ease-in-out infinite;
}
@keyframes scroll-hint-fade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(4px); }
}

/* ── Sections ── */
.section {
  padding: 100px 40px;
  position: relative;
}
.section--lens { background: var(--bg-alt); }
.section--brief { background: var(--bg); }
.section--philosophy { background: var(--bg-alt); }
.section--signal { background: var(--bg); }

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

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.section-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.section-name {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 600px;
}
.section-desc--centered { max-width: 580px; }
.section-body--centered { text-align: center; }

/* Signal Hunter Grid */
.monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.monitor-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  background: var(--bg-card);
  transition: background 0.2s ease;
}
.monitor-item:hover { background: #1a1e2e; }
.monitor-icon { flex-shrink: 0; margin-top: 2px; }
.monitor-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.monitor-text strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.monitor-text span {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Market Lens */
.lens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lens-list { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.lens-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.lens-marker {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 8px;
}
.lens-item strong { font-size: 15px; font-weight: 600; margin-bottom: 4px; display: block; }
.lens-item p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* Analysis Card */
.analysis-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.analysis-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.ticker {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.analysis-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 10px;
  border-radius: 4px;
}
.analysis-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.analysis-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: start;
}
.analysis-key {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 2px;
}
.analysis-val { font-size: 14px; color: var(--fg); line-height: 1.5; }
.analysis-val--warn { color: var(--gold); }
.analysis-verdict {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.analysis-verdict span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.analysis-verdict p { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* Brief Engine */
.brief-preview {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.brief-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brief-date {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}
.brief-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
}
.brief-reading-time {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-alt);
  font-size: 11px;
}
.brief-sections { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.brief-section { display: flex; flex-direction: column; gap: 8px; }
.brief-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.brief-section p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.brief-section strong { color: var(--fg); }
.brief-section--thesis { padding: 16px; background: rgba(212,175,55,0.06); border-radius: 8px; }

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}
.philosophy-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s ease;
}
.philosophy-card:hover { background: #1a1e2e; }
.philosophy-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.philosophy-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}
.philosophy-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* Closing */
.closing-section {
  padding: 120px 40px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(212,175,55,0.04) 0%, transparent 70%);
}
.closing-inner { position: relative; max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 56px;
}
.closing-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.closing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 48px;
}
.closing-stat-value {
  font-family: var(--font-serif);
  font-size: 52px;
  color: var(--gold);
  line-height: 1;
}
.closing-stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.closing-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}
.closing-note {
  font-size: 14px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Footer */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}
.footer-built {
  font-size: 12px;
  color: var(--fg-muted);
}
.footer-built a {
  color: var(--gold);
  text-decoration: none;
}
.footer-built a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 100px; }
  .hero-visual { display: none; }
  .lens-grid { grid-template-columns: 1fr; gap: 48px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .monitor-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 72px 20px; }
  .closing-stat { padding: 0 24px; }
  .closing-stat-value { font-size: 40px; }
  .closing-stat-row { gap: 0; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 40px; }
  .section-headline { font-size: 28px; }
  .brief-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .analysis-row { grid-template-columns: 1fr; gap: 4px; }
  .closing-stat-row { flex-direction: column; gap: 24px; }
  .closing-divider { display: none; }
}