/* ============================================
   ALPHAFABRIQ — CORPORATE WEBSITE STYLES
   ============================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Brand decorative accent (serif/italic text only) */
  --gold: #c9a870;

  /* Fixed semantic colors */
  --red:   #e05a4e;
  --green: #4caf7d;
  --blue:  #4a7ab5;

  /* Nav is ALWAYS deep navy regardless of theme */
  --nav-bg:           #0A192F;
  --nav-text:         #F1F5F9;
  --nav-text-muted:   #94A3B8;
  --nav-border:       rgba(255, 255, 255, 0.07);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-height: 80px;
  --max-w:      1140px;
  --radius:     4px;
  --radius-lg:  8px;
}

/* ── DARK THEME (Default — "Quant Hub") ── */
[data-theme="dark"] {
  --bg:        #020617;   /* Deepest Navy */
  --bg-card:   #0F172A;   /* Dark Slate */
  --bg-card-2: #0F172A;
  --bg-ai:     #0F172A;

  --text:       #F1F5F9;  /* Off-White */
  --text-muted: #94A3B8;  /* Steel Blue */
  --text-dim:   #475569;

  --border:        #334155;  /* Charcoal Border */
  --border-subtle: #1E293B;

  --accent:       #06B6D4;   /* Institutional Cyan */
  --accent-dim:   rgba(6, 182, 212, 0.15);
  --accent-text:  #020617;   /* text on accent button */

  --step-c1: #4a7ab5;
  --step-c2: #06B6D4;
  --step-c3: #c9a870;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ── LIGHT THEME (Institutional View) ── */
[data-theme="light"] {
  --bg:        #F8FAFC;   /* Soft Institutional White */
  --bg-card:   #FFFFFF;   /* Pure White Cards */
  --bg-card-2: #F0F4F8;
  --bg-ai:     #0F172A;   /* AI panel stays dark */

  --text:       #1E293B;  /* Midnight Charcoal */
  --text-muted: #64748B;  /* Cool Grey */
  --text-dim:   #94A3B8;

  --border:        #E2E8F0;  /* Light Platinum */
  --border-subtle: #E2E8F0;

  --accent:       #0891B2;   /* Deep Institutional Teal */
  --accent-dim:   rgba(8, 145, 178, 0.12);
  --accent-text:  #FFFFFF;   /* text on accent button */

  --step-c1: #2a5a95;
  --step-c2: #0891B2;
  --step-c3: #c9a870;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── UTILITIES ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--border);
}

.section-sub {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 17px;
  text-align: center;
  margin-top: 12px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  color: var(--text);
  line-height: 1.15;
  margin-top: 8px;
}

h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

/* Gold only for decorative serif italic text */
em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
}

.accent-teal { color: var(--accent); }
.accent-gold { color: var(--gold); }
.accent-red  { color: var(--gold); font-style: italic; text-decoration: underline; text-underline-offset: 3px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 12px 24px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  border-radius: var(--radius);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary.large { padding: 18px 42px; font-size: 13px; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 12px 24px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  border-radius: var(--radius);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.large  { padding: 18px 42px; font-size: 13px; }

/* ── NAVBAR ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.2s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

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

/* ── NAV LOGO: always show light logo (nav is always dark navy) ── */
.nav .logo-icon          { height: 28px; width: auto; }
.nav .logo-dark-icon     { display: none !important; }
.nav .logo-light-icon    { display: block !important; }

/* Wordmark: icon sits left, name + subtext stacked to its right */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.logo-name {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #CBD5E1;
}
.logo-name strong { font-weight: 700; color: #CBD5E1; }

.logo-sub {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 36px;
  justify-self: center;
}
.nav-links a {
  color: var(--nav-text-muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--nav-text); }
.nav-links a:hover::after { transform: scaleX(1); }

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

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nav-border);
  color: var(--nav-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--nav-text);
}
.theme-icon { font-size: 13px; }

.btn-login {
  color: var(--nav-text-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-login:hover { border-color: rgba(255,255,255,0.25); color: var(--nav-text); }

/* Nav CTA — brighter presence with subtle glow */
.nav .nav-cta {
  padding: 10px 22px;
  font-size: 12px;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}
.nav .nav-cta:hover {
  opacity: 1;
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.55);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  grid-column: 3;
  justify-self: end;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--nav-border);
  background: var(--nav-bg);
}
.mobile-menu a { color: var(--nav-text); text-decoration: none; font-size: 15px; }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  position: relative;
}

/* Radial glow */
[data-theme="dark"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 35% at 50% 25%, rgba(6, 182, 212, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 35% at 50% 25%, rgba(8, 145, 178, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle technical grid — dark mode only */
[data-theme="dark"] .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content sits above pseudo-elements */
.hero-logo,
.hero-heading,
.hero-sub,
.hero-ctas {
  position: relative;
  z-index: 1;
}

/* Hero logo: SWAPPED — dark mode shows light logo, light mode shows dark logo */
.hero-logo {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo img { height: 128px; width: auto; }

[data-theme="dark"]  .hero-logo-dark  { display: none; }
[data-theme="dark"]  .hero-logo-light { display: block; }
[data-theme="light"] .hero-logo-dark  { display: block; }
[data-theme="light"] .hero-logo-light { display: none; }

/* Hero wordmark */
.hero-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  gap: 4px;
}
.hero-logo-name {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(52px, 14vw, 96px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
[data-theme="dark"]  .hero-logo-name         { color: #CBD5E1; }
[data-theme="dark"]  .hero-logo-name strong  { color: #CBD5E1; font-weight: 700; }
[data-theme="light"] .hero-logo-name         { color: #121F3D; }
[data-theme="light"] .hero-logo-name strong  { color: #121F3D; font-weight: 700; }

.hero-logo-sub {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-theme="dark"]  .hero-logo-sub { color: #94A3B8; }
[data-theme="light"] .hero-logo-sub { color: #1A1A1A; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 40px;
}
.badge-diamond { color: var(--accent); font-size: 8px; }

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 820px;
}
.hero-heading em { display: block; font-weight: 600; font-size: 0.85em; }

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 60px;
  line-height: 1.88;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero CTA glow */
.hero-ctas .btn-primary {
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.28);
}
.hero-ctas .btn-primary:hover {
  box-shadow: 0 6px 36px rgba(6, 182, 212, 0.48);
  opacity: 0.95;
}
.hero-ctas .btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
}
.hero-ctas .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* ── MISSION PILLARS ── */
.mission-pillars {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mission-pillars li {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-style: normal;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mission-pillars li::before {
  content: '◆';
  color: var(--accent);
  font-size: 6px;
  flex-shrink: 0;
}

/* ── MISSION ── */
.mission { padding: 60px 0 80px; }
.mission-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mission-block p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.8;
  color: var(--text);
}
.mission-tagline {
  font-size: 14px !important;
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  letter-spacing: 0.08em;
  color: var(--text-dim) !important;
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-bottom: -8px;
}
.mission-statement {
  font-size: 21px !important;
}

/* ── PLATFORM PREVIEW ── */
.app-frame-wrap {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 24px;
}

.app-frame {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(6, 182, 212, 0.07);
}

/* Titlebar */
.app-titlebar {
  background: #0A192F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}
.app-dots { display: flex; gap: 6px; align-items: center; }
.app-dots span { display: block; width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }

.app-title-text {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(241, 245, 249, 0.35);
  letter-spacing: 0.08em;
}
.app-titlebar-right { display: flex; align-items: center; }
.app-status { font-size: 10px; color: #4caf7d; letter-spacing: 0.1em; }

/* App body */
.app-body {
  display: grid;
  grid-template-columns: 178px 1fr 218px;
  height: 440px;
}

/* Sidebar */
.app-sidebar {
  background: #0A192F;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.app-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}
.sidebar-logo-mark { color: #06B6D4; font-size: 9px; }
.sidebar-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #CBD5E1;
}
.sidebar-logo-text strong { font-weight: 700; }

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
  flex: 1;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #64748B;
  cursor: default;
  text-decoration: none;
}
.sidebar-item.active { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.sidebar-icon { font-size: 9px; width: 12px; text-align: center; }

.app-sidebar-bottom {
  padding: 14px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #06B6D4;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 11px; color: #94A3B8; }
.sidebar-user-role { font-size: 9px; color: #475569; letter-spacing: 0.08em; text-transform: uppercase; }

/* Main content */
.app-main {
  background: #020617;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.app-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-main-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
}
.app-main-period {
  font-size: 10px;
  color: #475569;
  letter-spacing: 0.1em;
  margin-left: 8px;
}
.app-main-tabs { display: flex; gap: 4px; }
.app-tab {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  color: #475569;
  cursor: default;
  letter-spacing: 0.04em;
}
.app-tab.active { background: rgba(6, 182, 212, 0.12); color: #06B6D4; }

.app-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.app-metric-card {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.app-metric-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.08);
}
.app-metric-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #475569;
  margin-bottom: 6px;
}
.app-metric-value {
  font-size: 22px;
  font-weight: 300;
  color: #F1F5F9;
  line-height: 1.1;
  margin-bottom: 5px;
}
.app-metric-delta        { font-size: 10px; font-weight: 500; }
.app-metric-delta.green  { color: #4caf7d; }
.app-metric-delta.teal   { color: #06B6D4; }
.app-metric-delta.gold   { color: #c9a870; }

.app-chart-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.app-chart-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #475569;
}
.app-factor-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  justify-content: center;
}
.app-factor-row {
  display: grid;
  grid-template-columns: 68px 1fr 34px;
  align-items: center;
  gap: 10px;
}
.app-factor-name { font-size: 10px; color: #64748B; text-align: right; }
.app-factor-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
.app-factor-bar        { height: 100%; border-radius: 2px; }
.app-factor-bar.teal   { background: #06B6D4; }
.app-factor-bar.green  { background: #4caf7d; }
.app-factor-bar.red    { background: #e05a4e; }
.app-factor-val        { font-size: 10px; font-weight: 600; text-align: right; }
.app-factor-val.teal   { color: #06B6D4; }
.app-factor-val.green  { color: #4caf7d; }
.app-factor-val.red    { color: #e05a4e; }

/* AI column */
.app-ai-col {
  background: #0A192F;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.app-ai-header {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-ai-period {
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.06em;
}
.app-ai-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 10px 12px;
}
.app-ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.app-ai-card-header strong { font-size: 11px; color: #F1F5F9; }
.app-ai-bull    { font-size: 9px; color: #4caf7d; font-weight: 600; }
.app-ai-neutral { font-size: 9px; color: #94A3B8; font-weight: 600; }
.app-ai-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 10px;
  color: rgba(241, 245, 249, 0.4);
  line-height: 1.55;
}
.app-ai-input-row { display: flex; margin-top: auto; }
.app-ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: rgba(241, 245, 249, 0.4);
  font-size: 10px;
  padding: 7px 10px;
  outline: none;
  font-family: var(--font-sans);
  cursor: default;
}
.app-ai-send {
  background: #06B6D4;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #020617;
  width: 32px;
  font-size: 13px;
  cursor: default;
}

@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; height: auto; }
  .app-sidebar { display: none; }
  .app-ai-col { display: none; }
  .app-metrics { grid-template-columns: repeat(2, 1fr); }
  .app-main { padding: 16px; }
}

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  background: var(--bg);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.step-card:last-child { border-right: none; }
.step-card:nth-child(1) { border-top: 3px solid var(--step-c1); }
.step-card:nth-child(2) { border-top: 3px solid var(--step-c2); }
.step-card:nth-child(3) { border-top: 3px solid var(--step-c3); }

.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.step-label  { font-size: 11px; letter-spacing: 0.15em; color: var(--text-dim); }
.step-icon   { font-size: 14px; }
.step-icon-blue { color: var(--blue); }
.step-icon-teal { color: var(--accent); }
.step-icon-gold { color: var(--gold); }

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

/* ── FEATURES ── */
.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.features-left h2,
.features-left .section-label { text-align: left; justify-content: flex-start; }
.features-left .section-label::before { display: none; }
.features-left .section-sub { text-align: left; }

.feature-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}
.feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: padding-left 0.2s ease;
}
.feature-list li:hover { padding-left: 6px; }
.feature-list li:hover .feature-bar { background: var(--gold); }
.feature-list li:first-child { border-top: 1px solid var(--border-subtle); }

.feature-bar {
  display: block;
  width: 3px;
  min-height: 40px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 2px;
  transition: background 0.2s;
}
.feature-list strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.feature-list p      { font-size: 14px; color: var(--text-muted); }

/* Portfolio card */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portfolio-label { font-size: 10px; letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: -4px; }
.metric-name     { font-size: 10px; letter-spacing: 0.18em; color: var(--text-dim); margin-bottom: 6px; }

.metric-value { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.metric-number { font-size: 24px; font-weight: 300; color: var(--text); }
.metric-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.metric-tag.green { background: rgba(76,175,125,0.15); color: var(--green); }
.metric-tag.teal  { background: var(--accent-dim); color: var(--accent); }
.metric-tag.gold  { background: rgba(201,168,112,0.15); color: var(--gold); }

.metric-bar { height: 3px; background: var(--border-subtle); border-radius: 2px; overflow: hidden; }
.metric-fill { height: 100%; border-radius: 2px; }
.metric-fill.green { background: var(--green); }
.metric-fill.teal  { background: var(--accent); }
.metric-fill.gold  { background: var(--gold); }

.factor-signals-label { font-size: 10px; letter-spacing: 0.18em; color: var(--text-dim); margin-bottom: 10px; }
.factor-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.factor-tag { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 100px; border: 1px solid; }
.factor-tag.red     { border-color: rgba(224,90,78,0.4);   color: var(--red);    background: rgba(224,90,78,0.08); }
.factor-tag.green   { border-color: rgba(76,175,125,0.4);  color: var(--green);  background: rgba(76,175,125,0.08); }
.factor-tag.teal    { border-color: var(--accent-dim);     color: var(--accent); background: var(--accent-dim); }
.factor-tag.neutral { border-color: var(--border);         color: var(--text-muted); background: transparent; }

/* ── DEEP DIVES ── */
.deep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.deep-card {
  background: var(--bg-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s, transform 0.25s;
}
.deep-card:hover {
  background: var(--bg);
  transform: translateY(-2px);
}
.deep-card-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: var(--radius);
  margin-bottom: 20px;
  width: fit-content;
}
.deep-card-badge.blue { border-color: var(--blue);   color: var(--blue); }
.deep-card-badge.teal { border-color: var(--accent);  color: var(--accent); }
.deep-card-badge.gold { border-color: var(--border);  color: var(--text-dim); }
.deep-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 8px; }

/* ── AI CO-PILOT ── */
.ai-copilot {
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ai-left h2,
.ai-left .section-label { text-align: left; justify-content: flex-start; }
.ai-left .section-label::before { display: none; }
.ai-left .section-sub { text-align: left; }

.ai-checklist { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.ai-checklist li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}

/* AI panel is always dark navy regardless of theme */
.ai-panel {
  background: #0F172A;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-panel-label { font-size: 10px; letter-spacing: 0.2em; color: #475569; margin-bottom: 4px; }
.ai-narrative-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 16px;
}
.ai-narrative-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ai-narrative-header strong { font-size: 14px; color: #F1F5F9; }
.narrative-bull { font-size: 11px; color: var(--green); font-weight: 600; }
.ai-narrative-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(241, 245, 249, 0.55);
  line-height: 1.6;
}
.ai-input-row { display: flex; margin-top: 4px; }
.ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: rgba(241, 245, 249, 0.7);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  font-family: var(--font-sans);
}
.ai-input::placeholder { color: rgba(241, 245, 249, 0.3); }
.ai-send {
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-text);
  font-size: 16px;
  width: 44px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ai-send:hover { opacity: 0.85; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 200px;
}
.cta-line { width: 1px; height: 60px; background: var(--border); }
.cta-heading { font-size: clamp(32px, 5vw, 58px); }
.cta-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin: 24px auto;
  max-width: 540px;
  line-height: 1.7;
}
.cta-btn { margin-bottom: 20px; }
.cta-micro {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.cta-email {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.cta-email:hover { color: var(--accent); }

/* ── EARLY ACCESS FORM ── */
.access-form {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.access-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .access-form-row { grid-template-columns: 1fr; }
}
.access-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.access-form-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.access-form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 9px;
  color: var(--text-dim);
}
.access-form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.access-form-input::placeholder { color: var(--text-dim); }
.access-form-input:focus { border-color: var(--accent); }
.access-form-input.invalid { border-color: #EF4444; }
.access-form-error {
  font-size: 11px;
  color: #EF4444;
  min-height: 14px;
  display: block;
}
.access-form-textarea { resize: vertical; min-height: 80px; }
.access-form-submit { width: 100%; margin-top: 4px; }
.access-form-feedback {
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 4px;
  text-align: center;
}
.access-form-feedback.success {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.access-form-feedback.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid #EF4444;
  color: #EF4444;
}
.access-form-feedback.error a { color: #EF4444; }
.af-check { font-size: 15px; margin-right: 6px; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-top { padding: 52px 24px 40px; }
.footer-top-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
}

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

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 56px; width: auto; }

/* Footer logo: SWAPPED — dark mode shows light logo, light mode shows dark logo */
[data-theme="dark"]  .footer-logo-dark  { display: none; }
[data-theme="dark"]  .footer-logo-light { display: block; }
[data-theme="light"] .footer-logo-dark  { display: block; }
[data-theme="light"] .footer-logo-light { display: none; }

/* Footer wordmark */
.footer-wordmark { display: flex; flex-direction: column; gap: 2px; }

.footer-brand {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
[data-theme="dark"]  .footer-brand         { color: #CBD5E1; }
[data-theme="dark"]  .footer-brand strong  { color: #CBD5E1; font-weight: 700; }
[data-theme="light"] .footer-brand         { color: #121F3D; }
[data-theme="light"] .footer-brand strong  { color: #121F3D; font-weight: 700; }

.footer-tagline {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}
[data-theme="dark"]  .footer-tagline { color: #94A3B8; }
[data-theme="light"] .footer-tagline { color: #1A1A1A; }

.footer-statement {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.6;
}

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

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-heading {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ── LEGAL PAGES ── */
.legal-header {
  padding: calc(var(--nav-height) + 64px) 0 52px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.legal-header .section-label { margin-bottom: 12px; }
.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-top: 8px;
}
.legal-date {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.legal-content { padding: 64px 0 100px; }
.legal-body {
  max-width: 720px;
  margin: 0 auto;
}
.legal-section { margin-bottom: 44px; }
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  margin-bottom: 14px;
  margin-top: 0;
}
.legal-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 12px;
}
.legal-section ul {
  margin: 10px 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-section li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 44px 0;
}
.legal-disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 44px;
}
.legal-disclaimer p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .steps-grid, .deep-grid { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1px solid var(--border); }
  .deep-grid { gap: 0; }

  .features-inner, .ai-inner { grid-template-columns: 1fr; gap: 48px; }
  .features-left h2, .features-left .section-label,
  .ai-left h2,       .ai-left .section-label {
    text-align: center;
    justify-content: center;
  }
  .features-left .section-label::before,
  .ai-left .section-label::before { display: block; }
  .features-left .section-sub, .ai-left .section-sub { text-align: center; }

  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }

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

  .footer-top-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-statement { max-width: 100%; }
  .footer-bottom-inner { justify-content: center; }
}

@media (max-width: 600px) {
  .mission-block { padding: 32px 24px; }
  .section { padding: 56px 0; }
  .hero { padding-top: calc(var(--nav-height) + 40px); }
  .nav .logo-icon { height: 44px; }
  .mission-pillars { gap: 12px; }
}
