/* ============================================
   ROOT & RESET
   ============================================ */
:root {
  --bg:         #040607;
  --bg-2:       #070a0d;
  --periwinkle: #E3D9FC;
  --magenta:    #BF40FA;
  --blue:       #4928C2;
  --velvet:     #5B2A62;
  --white:      #FFFFFF;
  --muted:      rgba(227, 217, 252, 0.55);
  --border:     rgba(191, 64, 250, 0.14);
  --border-h:   rgba(191, 64, 250, 0.40);
  --card-bg:    rgba(255, 255, 255, 0.028);
  --card-bg-h:  rgba(255, 255, 255, 0.05);
  --grad:       linear-gradient(130deg, #BF40FA 0%, #4928C2 100%);
  --font-h:     'Space Grotesk', sans-serif;
  --font-b:     'DM Sans', sans-serif;
  --radius:     18px;
  --radius-sm:  10px;
  --nav-h:      72px;
  --max-w:      1160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-h);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--muted); line-height: 1.7; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}

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

.section-header h2 { margin: 16px 0 20px; }
.section-sub { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================
   PILL TAG
   ============================================ */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(191, 64, 250, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  background: rgba(191, 64, 250, 0.07);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(191, 64, 250, 0.25);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(191, 64, 250, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-lg {
  font-size: 1rem;
  padding: 15px 32px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(4, 6, 7, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  background: rgba(4, 6, 7, 0.92);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}

.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; }
.nav-broker-name {
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.nav-sep {
  display: block;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.nav-logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}


.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(4, 6, 7, 0.97);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .btn-primary { margin-top: 20px; width: 100%; justify-content: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(4,6,7,0.94) 0%,
      rgba(4,6,7,0.72) 38%,
      rgba(4,6,7,0.45) 65%,
      rgba(4,6,7,0.60) 100%
    ),
    linear-gradient(to top,
      rgba(4,6,7,1)    0%,
      rgba(4,6,7,0.55) 10%,
      rgba(4,6,7,0)    26%
    ),
    linear-gradient(to bottom,
      rgba(4,6,7,0.88) 0%,
      rgba(4,6,7,0)    16%
    );
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.g1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(191,64,250,0.28), transparent 65%);
  top: -120px; left: 50%;
  transform: translateX(-20%);
  animation: glow-drift 8s ease-in-out infinite alternate;
}
.g2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(73,40,194,0.35), transparent 65%);
  bottom: 0; left: -80px;
  animation: glow-drift 10s ease-in-out infinite alternate-reverse;
}
.g3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(191,64,250,0.18), transparent 65%);
  top: 40%; right: -60px;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(30px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 { max-width: 720px; }
.hero-sub { max-width: 520px; font-size: 1.1rem; line-height: 1.65; }

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(191,64,250,0.6), transparent);
  margin: 0 auto;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================
   PROGRAMS
   ============================================ */
.programs { background: var(--bg-2); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.program-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.program-card:hover {
  background: var(--card-bg-h);
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(191, 64, 250, 0.12);
}

.program-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(191, 64, 250, 0.1);
  border: 1px solid rgba(191, 64, 250, 0.2);
  border-radius: 10px;
  color: var(--magenta);
  margin-bottom: 18px;
}

.program-card h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.program-card p { font-size: 0.9rem; }

.program-note {
  font-size: 0.75rem;
  color: rgba(227,217,252,0.38);
  margin-top: 10px;
  font-style: italic;
  line-height: 1.5;
}

.program-card--highlight {
  border-color: rgba(191, 64, 250, 0.3);
  background: linear-gradient(135deg, rgba(91,42,98,0.3) 0%, rgba(73,40,194,0.15) 100%);
}

.program-card--highlight:hover {
  border-color: rgba(191, 64, 250, 0.6);
  box-shadow: 0 12px 48px rgba(191, 64, 250, 0.2);
}

.card-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(191, 64, 250, 0.12);
  border: 1px solid rgba(191, 64, 250, 0.3);
  border-radius: 100px;
  padding: 3px 10px;
}

.disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(227,217,252,0.35);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg); overflow: hidden; }

.about-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(73,40,194,0.22), transparent 65%);
  filter: blur(70px);
  top: 50%; left: -200px;
  transform: translateY(-50%);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-photo-col { display: flex; flex-direction: column; gap: 16px; }

.photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(191, 64, 250, 0.25);
  box-shadow: 0 0 60px rgba(191, 64, 250, 0.15);
  background: linear-gradient(160deg, var(--velvet) 0%, var(--blue) 100%);
}

.brett-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.photo-initials {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  letter-spacing: -0.03em;
}

.photo-frame.no-photo .brett-photo { display: none; }
.photo-frame.no-photo .photo-initials { display: flex; }

.photo-nameplate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.nameplate-name {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.nameplate-nmls {
  font-size: 0.78rem;
  color: var(--muted);
}

.about-text-col { display: flex; flex-direction: column; gap: 20px; }
.about-text-col .pill-tag { align-self: flex-start; }

.about-text-col h2 { margin: 0; }

.about-text-col p { font-size: 1rem; }

.about-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
}

.stat-item { flex: 1; text-align: center; }
.stat-value {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   PROCESS
   ============================================ */
.process { background: var(--bg-2); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.process-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 32px rgba(191, 64, 250, 0.1);
  transform: translateY(-2px);
}

.process-num {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
  user-select: none;
}

.process-card h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.process-card p { font-size: 0.9rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg); overflow: hidden; }

.contact-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(191,64,250,0.18), transparent 65%);
  filter: blur(80px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.contact-inner h2 { margin: 0; }
.contact-inner .section-sub { margin: -16px 0 0; }

.contact-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 240px;
}

.contact-card:hover {
  background: var(--card-bg-h);
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.contact-card svg { color: var(--magenta); flex-shrink: 0; }

.contact-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 3px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-value {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #020405;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo { height: 24px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.7; }

.footer-id-block {
  margin-bottom: 10px;
}
.footer-id-block p {
  font-size: 0.82rem;
  color: rgba(227,217,252,0.5);
  line-height: 1.6;
}
.footer-id-block p strong { color: rgba(227,217,252,0.8); }

.footer-col-heading {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.footer-col p {
  font-size: 0.82rem;
  color: rgba(227,217,252,0.5);
  line-height: 1.8;
}

.footer-col a {
  color: rgba(227,217,252,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-eho-col { display: flex; flex-direction: column; gap: 10px; }

.eho-logo {
  width: 48px; height: auto;
  opacity: 0.7;
  filter: invert(1);
}

.eho-bold {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(227,217,252,0.7);
}

.eho-text {
  font-size: 0.78rem;
  color: rgba(227,217,252,0.42);
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(227,217,252,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--magenta); }

.footer-disclosure {
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-disclosure p {
  font-size: 0.74rem;
  color: rgba(227,217,252,0.3);
  line-height: 1.6;
}

.footer-disclosure a {
  color: rgba(227,217,252,0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================
   ANIMATIONS
   ============================================ */

/* Hero entrance (on load) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.7s ease forwards;
}
.d0 { animation-delay: 0.1s; }
.d1 { animation-delay: 0.25s; }
.d2 { animation-delay: 0.45s; }
.d3 { animation-delay: 0.65s; }
.d4 { animation-delay: 0.9s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Stagger reveal in grids */
.programs-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.programs-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.programs-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.programs-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.programs-grid .reveal:nth-child(5) { transition-delay: 0.05s; }
.programs-grid .reveal:nth-child(6) { transition-delay: 0.12s; }
.programs-grid .reveal:nth-child(7) { transition-delay: 0.19s; }
.programs-grid .reveal:nth-child(8) { transition-delay: 0.26s; }

.process-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.process-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.process-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.process-grid .reveal:nth-child(4) { transition-delay: 0.35s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 300px 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-eho-col { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 20px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-col { max-width: 300px; margin: 0 auto; }

  .process-grid { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-eho-col { flex-direction: row; }

  .about-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 60px; height: 1px; }
}

@media (max-width: 540px) {
  .programs-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-cards { flex-direction: column; }
  .contact-card { min-width: 0; width: 100%; }
  .modal-box { padding: 32px 20px; }
  .footer-eho-col { flex-direction: column; }
}
