/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
   ui-ux-pro-max — Trust & Authority
   Colors matched to frames: black bg + electric blue
═══════════════════════════════════════════════════ */
:root {
  --dark:           #0A0A0A;
  --dark-glass:     rgba(10, 10, 10, 0.78);
  --primary:        #2563EB;
  --primary-dark:   #1E40AF;
  --primary-glow:   rgba(37, 99, 235, 0.16);
  --primary-ring:   rgba(37, 99, 235, 0.32);
  --white:          #FFFFFF;
  --white-muted:    rgba(255, 255, 255, 0.72);
  --white-dim:      rgba(255, 255, 255, 0.42);
  --border-glass:   rgba(255, 255, 255, 0.09);
  --border-blue:    rgba(37, 99, 235, 0.28);

  --font-h:  'Poppins', system-ui, sans-serif;
  --font-b:  'Open Sans', system-ui, sans-serif;

  --nav-h:       64px;
  --bottom-h:    52px;   /* height of the bottom CTA bar */
  --r:           12px;
  --r-sm:        8px;
  --panel-w:     clamp(500px, 44vw, 700px);
}

/* ═══════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   SKIP LINK
═══════════════════════════════════════════════════ */
.skip-link {
  position: fixed;
  top: -120px; left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-h);
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.90) 0%,
    rgba(10,10,10,0.50) 65%,
    transparent 100%
  );
}
.navbar__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__logo {
  display: flex; align-items: center;
  color: var(--white);
  font-family: var(--font-h); font-weight: 700; font-size: 19px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.navbar__logo:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════
   SCROLL PROGRESS BAR  (below navbar)
═══════════════════════════════════════════════════ */
.progress-track {
  position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  z-index: 400;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #60A5FA 100%);
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ═══════════════════════════════════════════════════
   CTA BUTTONS  — blue (#2563EB) matching frame branding
═══════════════════════════════════════════════════ */
.cta-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--white);
  color: #090909;
  font-family: var(--font-h); font-weight: 600;
  font-size: 16px; line-height: 1;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 1px solid rgba(255,255,255,0.48);
  min-height: 46px; white-space: nowrap;
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: #EAF1FF;
  color: #07111F;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.34);
}
.cta-btn:active { transform: translateY(0); }
.cta-btn--sm  { font-size: 14px; padding: 10px 18px; min-height: 40px; }
.cta-btn--lg  { font-size: 18px; padding: 18px 42px; min-height: 56px; }

/* ═══════════════════════════════════════════════════
   BOTTOM CTA BAR  (fixed, minimal)
═══════════════════════════════════════════════════ */
.bottom-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--bottom-h);
  background: rgba(8, 8, 8, 0.93);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid rgba(37,99,235,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.bottom-cta--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.bottom-cta__inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
}
.bottom-cta__label {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  font-family: var(--font-b);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.bottom-cta__action {
  display: inline-flex; align-items: center;
  background: var(--white);
  color: #090909;
  font-family: var(--font-h); font-weight: 600; font-size: 13px;
  padding: 7px 18px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  min-height: 34px;
  transition: background 0.2s, color 0.2s;
}
.bottom-cta__action:hover { background: #EAF1FF; color: #07111F; }

/* ═══════════════════════════════════════════════════
   PINNED 3D SCENE
═══════════════════════════════════════════════════ */
.pinned {
  height: 500vh;
  position: relative;
}
.pinned__sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  background: var(--dark);
}
.pinned__sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10,10,10,0.90) 0%,
    rgba(10,10,10,0.12) 58%,
    rgba(10,10,10,0.02) 100%
  );
}

#canvas-animation {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════
   OVERLAY  — base (LEFT side panel)
═══════════════════════════════════════════════════ */
.overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: auto;
  width: var(--panel-w);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border: none;
  border-radius: 0;

  box-shadow: none;

  /* JS drives opacity + transform */
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 2;
  scrollbar-width: none;
}
.overlay::-webkit-scrollbar { display: none; }

/* ── RIGHT side variant ── */
.overlay--right {
  left: 0;
  right: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ── FULL-SCREEN hero overlay ── */
.overlay--fullscreen {
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; max-height: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none; border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  padding: var(--nav-h) 24px var(--bottom-h) 7vw;
}

/* ── Hero floating card ── */
.hero-text-block {
  text-align: left;
  max-width: 640px;
  width: min(640px, calc(100vw - 48px));
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ── INNER PADDING (left/right panels) ── */
.overlay__inner {
  padding: 36px 42px;
}

/* ═══════════════════════════════════════════════════
   OVERLAY TYPOGRAPHY
═══════════════════════════════════════════════════ */
.overlay__h1 {
  font-family: var(--font-h); font-weight: 700;
  font-size: 72px;
  line-height: 1.04; letter-spacing: 0;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.overlay__h2 {
  font-family: var(--font-h); font-weight: 700;
  font-size: 36px;
  line-height: 1.14; letter-spacing: 0;
  color: var(--white);
  margin-bottom: 12px;
}
.overlay__lead {
  font-size: 19px;
  color: var(--white-muted);
  line-height: 1.70;
  margin-bottom: 8px;
}
.overlay__sub {
  font-size: 16px;
  color: var(--white-dim);
  line-height: 1.65;
  margin-top: 5px;
}
.hero-text-block .overlay__lead {
  font-size: 22px;
  max-width: 600px;
  margin: 0 0 32px;
}
.hero-text-block .cta-btn {
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════
   MINI CARDS inside overlays
═══════════════════════════════════════════════════ */
.overlay__cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
}
.overlay__card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 0;
  transition: color 0.2s;
}
.overlay__card:hover { color: var(--white); }
.overlay__h3 {
  font-family: var(--font-h); font-weight: 600; font-size: 17px;
  color: var(--white); margin-bottom: 5px; line-height: 1.3;
}
.overlay__card p { font-size: 15px; color: var(--white-dim); line-height: 1.62; }

/* ═══════════════════════════════════════════════════
   SCROLL HINT  (hero only)
═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════ */
.contact-section {
  position: relative; overflow: hidden;
  background: var(--dark);
  padding: 120px 24px 144px; /* extra bottom padding for bottom bar */
  text-align: left;
}
.contact-section__glow {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.contact-section__inner {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto 0 7vw;
}
.contact-badge {
  display: inline-flex;
  background: transparent; color: #93C5FD;
  border: none; border-radius: 0;
  font-family: var(--font-h); font-size: 12px; font-weight: 600;
  padding: 0; letter-spacing: 0; text-transform: uppercase;
  margin-bottom: 18px;
}
.contact-section__title {
  font-family: var(--font-h); font-weight: 700;
  font-size: 50px;
  color: var(--white); line-height: 1.14;
  letter-spacing: 0; margin-bottom: 14px;
}
.contact-section__sub {
  font-size: 18px; color: var(--white-muted);
  line-height: 1.70; margin-bottom: 34px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: #060A14;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 18px 24px calc(18px + var(--bottom-h)); /* room for bottom bar */
}
.footer__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer p { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ═══════════════════════════════════════════════════
   MOBILE  (< 768px)
   All panels slide up from bottom, above the bottom bar
═══════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Full-screen hero: stay full, no changes needed */
  .overlay--fullscreen {
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--nav-h) 20px calc(var(--bottom-h) + 22px);
  }
  .hero-text-block {
    padding: 0;
    border-radius: 0;
    max-width: none;
    width: 100%;
  }
  .overlay__h1 { font-size: 42px; }

  /* Left and right panels → bottom drawer */
  .overlay,
  .overlay--right {
    top: auto;
    bottom: var(--bottom-h); /* sit directly above the bottom bar */
    left: 0; right: 0;
    width: 100%;
    max-height: 50vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .overlay__inner { padding: 24px 20px 22px; }
  .overlay__cards { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .overlay__card  { flex: none; min-width: 0; }
  .overlay__h2    { font-size: 26px; }
  .overlay__lead  { font-size: 17px; }
  .overlay__sub   { font-size: 14px; }
  .overlay__h3    { font-size: 15px; }
  .overlay__card p { font-size: 13px; }
  .contact-section__inner { margin: 0; }
  .contact-section__title { font-size: 36px; }
  .bottom-cta__label { display: none; }
  .bottom-cta__inner { justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-btn, .bottom-cta__action { transition: none; }
}
