/* ============================================
   Momentum Robotics Advisors - Brand System
   ============================================ */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #102a52;
  --navy-700: #1a3a6b;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --accent: #00b8a9;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;

  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(10,31,61,0.08);
  --shadow-md: 0 4px 16px rgba(10,31,61,0.10);
  --shadow-lg: 0 12px 40px rgba(10,31,61,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand-logo-dark {
  height: 44px;
  width: auto;
  display: inline-block;
  background: white;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy-900);
}
.nav-cta {
  background: var(--navy-900);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--navy-700); color: white !important; }

/* Hamburger button — only visible on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 1px;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
  position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { content: ''; position: absolute; top:  6px; left: 0; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,184,169,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-block;
  background: rgba(0,184,169,0.15);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { color: white; margin-bottom: 1.5rem; }
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero-stat-item .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-stat-item .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.hero-stat-item .arrow-up { color: var(--accent); }
.hero-stat-item .arrow-down { color: #fbbf24; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: var(--navy-900) !important;
}
.btn-primary:hover { background: #00d4c3; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: white !important;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: white; }
.btn-dark {
  background: var(--navy-900);
  color: white !important;
}
.btn-dark:hover { background: var(--navy-700); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
section { padding: 5rem 0; scroll-margin-top: 80px; }
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header .eyebrow { background: var(--gray-100); color: var(--blue-500); }
.section-header p { font-size: 1.1rem; color: var(--gray-500); }

.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.bg-navy h2, .bg-navy h3 { color: white; }

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--gray-100);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  color: var(--blue-500);
}
.card-icon.accent { background: rgba(0,184,169,0.12); color: var(--accent); }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.95rem; color: var(--gray-500); margin: 0; }

/* ============ BENEFITS GRID ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.benefit-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.benefit-item .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(0,184,169,0.12);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
}
.benefit-item strong { display: block; color: var(--navy-900); font-size: 0.95rem; margin-bottom: 0.15rem; }
.benefit-item span { font-size: 0.85rem; color: var(--gray-500); }

/* ============ PYRAMID (ISA-95) ============ */
.pyramid-svg {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 2rem auto;
  filter: drop-shadow(0 8px 24px rgba(10,31,61,0.12));
}

/* ============ JOURNEY STEPS ============ */
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}
.journey::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--gray-200), var(--accent), var(--gray-200));
  z-index: 0;
}
.journey-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.journey-step .num {
  width: 60px; height: 60px;
  background: white;
  border: 2px solid var(--blue-500);
  color: var(--blue-500);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}
.journey-step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.journey-step p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* ============ TIMELINE ============ */
.timeline {
  display: grid;
  gap: 1.5rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background: white;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.timeline-phase {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timeline-item h4 { margin-bottom: 0.4rem; }
.timeline-item p { margin: 0; font-size: 0.95rem; }

/* ============ TABLE ============ */
.benefits-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.benefits-table th {
  background: var(--navy-900);
  color: white;
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.benefits-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.benefits-table tr:last-child td { border-bottom: none; }
.benefits-table tr:nth-child(even) { background: var(--gray-50); }
.benefits-table td:first-child { font-weight: 600; color: var(--navy-900); }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: white;
  border-radius: 16px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,184,169,0.2), transparent 70%);
}
.cta h2 { color: white; }
.cta p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ============ FORM ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
}
.form-field input, .form-field textarea, .form-field select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: white;
  transition: border .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ============ TWO-COL ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  bottom: -100px; left: -50px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,184,169,0.12), transparent 70%);
}
.page-header h1 { color: white; max-width: 800px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 650px; margin-top: 1rem; }

/* Two-column variant — text left, stats card or image right */
.page-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.page-header-grid .hero-stats { margin-top: 0; }
.page-hero-image {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px;
  display: block;
  margin-left: auto;
  margin-right: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .page-header-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============ PROFILE ============ */
.profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  align-items: start;
}
.profile-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  display: grid; place-items: center;
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
}
.profile h3 { margin-bottom: 0.25rem; }
.profile .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

/* ============ DIFFERENTIATORS ============ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.diff-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.diff-card .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid, .two-col, .profile { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-avatar { width: 140px; height: 140px; font-size: 2.5rem; }

  /* Mobile nav — hamburger reveals a dropdown drawer */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(10,31,61,0.08);
    padding: 0.5rem 1.5rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    pointer-events: none;
  }
  .nav.is-open .nav-links {
    max-height: 500px;
    padding: 0.75rem 1.5rem 1.25rem;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta {
    display: block;
    margin-top: 0.6rem;
    text-align: center;
    padding: 0.85rem 1.2rem;
  }
  .nav-inner { position: relative; }

  .journey { grid-template-columns: 1fr 1fr; }
  .journey::before { display: none; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cta { padding: 3rem 1.5rem; }
}
@media (max-width: 560px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .journey { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
