/* ===========================
   ApexWealth — Theme CSS
   =========================== */

:root {
  --midnight: #0B1520;
  --dark-navy: #0D1B2A;
  --teal: #0A6E6E;
  --teal-bright: #0ECEC0;
  --teal-dim: #073F3F;
  --gold: #C9A84C;
  --gold-light: #E8CC8A;
  --slate: #8B9EB3;
  --slate-light: #B8CAD9;
  --white: #F5F8FB;
  --surface: #111D2B;
  --surface-2: #152232;
  --surface-3: #1A2D40;
}

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

body {
  background: var(--midnight);
  color: var(--white);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 20px;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 21, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 110, 110, 0.2);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.navbar-name {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.navbar-tagline {
  font-size: 12px;
  color: var(--slate);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.navbar-dash-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(10, 110, 110, 0.3);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.navbar-dash-link:hover {
  background: rgba(14, 206, 192, 0.1);
  color: var(--white);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 110, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 110, 110, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 110, 110, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-geo-left {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(10, 110, 110, 0.15);
  border-radius: 50%;
}

.hero-geo-right {
  position: absolute;
  top: 100px;
  right: 50%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 50%;
  transform: rotate(45deg);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--slate-light);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal-bright);
}

.hero-headline {
  font-size: clamp(40px, 5vw, 68px);
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.1;
}

.hero-headline em {
  font-style: italic;
  color: var(--teal-bright);
}

.hero-sub {
  font-size: 18px;
  color: var(--slate-light);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(10, 110, 110, 0.3);
}

/* Dashboard Preview */
.hero-dashboard-preview {
  position: relative;
}

.dashboard-frame {
  background: var(--surface);
  border: 1px solid rgba(10, 110, 110, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 40px rgba(10, 110, 110, 0.08);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(10, 110, 110, 0.15);
  background: var(--surface-2);
}

.dash-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--teal-bright);
  font-family: 'JetBrains Mono', monospace;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--teal-bright);
  animation: pulse 2s infinite;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 16px;
}

.dash-card {
  background: var(--surface-2);
  border: 1px solid rgba(10, 110, 110, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}

.dash-card-main {
  grid-column: 1 / -1;
}

.dash-card-label {
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 6px;
}

.dash-card-value {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.dash-card-value.gold { color: var(--gold); }
.dash-card-value.green { color: var(--teal-bright); }

.dash-card-change {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}
.dash-card-change.positive { color: #3DD68C; }

.dash-card-sub {
  font-size: 11px;
  color: var(--slate);
}

.dash-sparkline {
  margin-top: 10px;
}

.dash-sparkline svg {
  width: 100%;
  height: 32px;
}

.dash-agent-panel {
  grid-column: 1 / -1;
  background: var(--surface-2);
  border: 1px solid rgba(10, 110, 110, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
}

.agent-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.agent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(10, 110, 110, 0.08);
}
.agent-row:last-child { border-bottom: none; }

.agent-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-indicator.active {
  background: var(--teal-bright);
  box-shadow: 0 0 6px var(--teal-bright);
}

.agent-name {
  font-size: 12px;
  color: var(--white);
  font-weight: 500;
  width: 130px;
  flex-shrink: 0;
}

.agent-status {
  font-size: 11px;
  color: var(--slate);
  font-family: 'JetBrains Mono', monospace;
}

/* ===========================
   The Gap
   =========================== */
.the-gap {
  background: var(--surface);
  border-top: 1px solid rgba(10, 110, 110, 0.12);
  border-bottom: 1px solid rgba(10, 110, 110, 0.12);
  padding: 100px 32px;
}

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

.gap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-top: 56px;
}

.gap-item h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 10px;
}

.gap-item p {
  color: var(--slate-light);
  font-size: 15px;
  line-height: 1.7;
}

.gap-icon {
  color: var(--teal-bright);
  margin-bottom: 16px;
}

/* ===========================
   Agents Section
   =========================== */
.agents {
  padding: 100px 32px;
  background: var(--midnight);
}

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

.agents-intro {
  color: var(--slate-light);
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 64px;
  line-height: 1.7;
}

.agent-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid rgba(10, 110, 110, 0.2);
  border-radius: 14px;
  padding: 28px 32px;
  transition: border-color 0.2s;
}

.agent-card:hover {
  border-color: rgba(10, 110, 110, 0.5);
}

.agent-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.agent-card-icon {
  width: 44px;
  height: 44px;
  background: var(--surface-3);
  border: 1px solid rgba(10, 110, 110, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-card-header h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 6px;
}

.agent-status-badge {
  display: inline-block;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.agent-status-badge.active {
  background: rgba(14, 206, 192, 0.12);
  color: var(--teal-bright);
  border: 1px solid rgba(14, 206, 192, 0.2);
}

.agent-card p {
  color: var(--slate-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.agent-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--teal-bright);
  background: rgba(14, 206, 192, 0.08);
  border: 1px solid rgba(14, 206, 192, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ===========================
   How It Works
   =========================== */
.how-it-works {
  background: var(--surface);
  border-top: 1px solid rgba(10, 110, 110, 0.12);
  border-bottom: 1px solid rgba(10, 110, 110, 0.12);
  padding: 100px 32px;
}

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

.hiw-intro {
  color: var(--slate-light);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 64px;
  line-height: 1.7;
}

.integration-flow {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 64px;
}

.flow-step {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid rgba(10, 110, 110, 0.2);
  border-radius: 12px;
  padding: 28px;
}

.flow-number {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  color: var(--teal);
  opacity: 0.5;
  margin-bottom: 16px;
  line-height: 1;
}

.flow-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}

.flow-content p {
  font-size: 14px;
  color: var(--slate-light);
  line-height: 1.65;
}

.flow-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(10, 110, 110, 0.4), rgba(201, 168, 76, 0.4));
  flex-shrink: 0;
  margin-top: 40px;
}

.integrations {
  border-top: 1px solid rgba(10, 110, 110, 0.12);
  padding-top: 40px;
}

.integrations-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.integration-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.int-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--slate-light);
  background: var(--surface-2);
  border: 1px solid rgba(10, 110, 110, 0.15);
  padding: 8px 16px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* ===========================
   Vision
   =========================== */
.vision {
  background: var(--midnight);
  padding: 100px 32px 0;
}

.vision-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.vision-headline {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--white);
  line-height: 1.3;
}

.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.vision-pillar {
  display: flex;
  gap: 20px;
}

.pillar-marker {
  width: 3px;
  background: linear-gradient(180deg, var(--teal-bright), var(--gold));
  border-radius: 2px;
  flex-shrink: 0;
  min-height: 60px;
}

.vision-pillar h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}

.vision-pillar p {
  font-size: 14px;
  color: var(--slate-light);
  line-height: 1.7;
}

.vision-closing {
  margin-top: 80px;
  border-top: 1px solid rgba(10, 110, 110, 0.15);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
}

.closing-statement {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--slate-light);
  max-width: 800px;
  line-height: 1.5;
  font-style: italic;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(10, 110, 110, 0.15);
  padding: 48px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--white);
}

.footer-tagline {
  font-size: 13px;
  color: var(--slate);
}

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate);
  opacity: 0.5;
  letter-spacing: 0.08em;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 48px;
  }
  .hero-dashboard-preview {
    order: -1;
  }
  .hero-headline { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .gap-grid { grid-template-columns: 1fr; gap: 40px; }
  .agent-cards { grid-template-columns: 1fr; }
  .vision-inner { grid-template-columns: 1fr; gap: 48px; }
  .integration-flow { flex-direction: column; }
  .flow-connector { width: 2px; height: 32px; margin: 0 auto; }
  .navbar-tagline { display: none; }
}
