/* LetsReach — Shared Website Styles
   Blue · Black · White · bold + sleek
   Unbounded is self-hosted (assets/fonts/). Inter + JetBrains Mono via Google Fonts. */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('assets/fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand blues */
  --lr-blue:        #1B4BFF;
  --lr-blue-deep:   #0C2AC4;
  --lr-blue-dark:   #081F8F;
  --lr-blue-ink:    #040B3B;
  --lr-blue-soft:   #5B7CFF;
  --lr-blue-glow:   rgba(27, 75, 255, 0.35);

  /* Core neutrals */
  --lr-black:       #050507;
  --lr-black-2:     #0B0C10;
  --lr-black-3:     #14161C;
  --lr-line:        #1E2230;
  --lr-line-soft:   rgba(255,255,255,0.08);
  --lr-white:       #FFFFFF;
  --lr-fog:         rgba(255,255,255,0.62);
  --lr-mist:        rgba(255,255,255,0.38);

  /* Gradient */
  --lr-gradient: linear-gradient(135deg, #5B7CFF 0%, #1B4BFF 40%, #0C2AC4 100%);
  --lr-gradient-text: linear-gradient(135deg, #7C95FF 0%, #1B4BFF 60%);

  /* Semantic */
  --lr-fg-1: #FFFFFF;
  --lr-fg-2: rgba(255,255,255,0.62);
  --lr-fg-3: rgba(255,255,255,0.38);
  --lr-bg:   #050507;
  --lr-accent: #1B4BFF;

  /* Fonts */
  --lr-font-display: 'Unbounded', 'Archivo Black', ui-sans-serif, system-ui, sans-serif;
  --lr-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --lr-font-text:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Type scale */
  --lr-hero:        clamp(48px, 9vw, 144px);
  --lr-display-xl:  clamp(40px, 6vw, 88px);
  --lr-display-lg:  clamp(32px, 4.2vw, 64px);
  --lr-display-md:  clamp(24px, 2.8vw, 40px);
  --lr-display-sm:  22px;
  --lr-lead:  19px;
  --lr-body:  16px;
  --lr-small: 14px;
  --lr-mono-md: 12px;
  --lr-mono-sm: 11px;
  --lr-numeric-xl: clamp(56px, 8vw, 120px);
  --lr-lh-display: 0.94;
  --lr-lh-heading: 1.05;
  --lr-lh-body: 1.6;

  /* Spacing */
  --lr-gutter: clamp(20px, 4vw, 56px);
  --lr-max: 1440px;
  --lr-section-y: clamp(80px, 10vw, 160px);

  /* Radii */
  --lr-r-sm: 4px; --lr-r-md: 10px; --lr-r-lg: 16px; --lr-r-xl: 24px; --lr-r-pill: 9999px;

  /* Motion */
  --lr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lr-dur: 240ms;
}

/* Type classes — ALL with explicit color to survive any stale cascade */
.lr-hero { font-family: var(--lr-font-display); font-weight:700; font-size: var(--lr-hero); line-height: var(--lr-lh-display); letter-spacing:-0.035em; text-wrap:balance; color: #FFFFFF; }
.lr-h1   { font-family: var(--lr-font-display); font-weight:700; font-size: var(--lr-display-xl); line-height: var(--lr-lh-display); letter-spacing:-0.03em; text-wrap:balance; color: #FFFFFF; }
.lr-h2   { font-family: var(--lr-font-display); font-weight:700; font-size: var(--lr-display-lg); line-height: var(--lr-lh-heading); letter-spacing:-0.025em; text-wrap:balance; color: #FFFFFF; }
.lr-h3   { font-family: var(--lr-font-display); font-weight:600; font-size: var(--lr-display-md); line-height: var(--lr-lh-heading); letter-spacing:-0.02em; color: #FFFFFF; }
.lr-h4   { font-family: var(--lr-font-display); font-weight:600; font-size: var(--lr-display-sm); line-height:1.15; letter-spacing:-0.015em; color: #FFFFFF; }
.lr-lead { font-family: var(--lr-font-text); font-size: var(--lr-lead); line-height:1.55; color: rgba(255,255,255,0.62); max-width:60ch; font-weight:400; }
.lr-body { font-family: var(--lr-font-text); font-size: var(--lr-body); line-height: var(--lr-lh-body); color: rgba(255,255,255,0.62); }
.lr-eyebrow { font-family: var(--lr-font-mono); font-size: var(--lr-mono-sm); letter-spacing:0.16em; text-transform:uppercase; color: rgba(255,255,255,0.62); font-weight:500; }
.lr-label { font-family: var(--lr-font-mono); font-size: var(--lr-mono-md); letter-spacing:0.12em; text-transform:uppercase; font-weight:600; color: #FFFFFF; }
.lr-index { font-family: var(--lr-font-mono); font-size: var(--lr-mono-md); letter-spacing:0.08em; color: rgba(255,255,255,0.38); font-feature-settings:'tnum'; }
.lr-gradient-text { background: var(--lr-gradient-text); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* Reset */
html, body { margin:0; background: #050507; color: #FFFFFF; font-family: var(--lr-font-text); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
* { box-sizing: border-box; }
::selection { background: #1B4BFF; color: white; }
a { color: inherit; text-decoration: none; }
button { font:inherit; cursor:pointer; border:none; background:none; color:inherit; padding:0; }
img, svg, video { display:block; max-width:100%; }
html { scroll-behavior: smooth; }

/* ─── Layout primitives ─── */
.wrap { max-width: var(--lr-max); margin: 0 auto; padding: 0 var(--lr-gutter); }
.section { padding: var(--lr-section-y) 0; position: relative; }
.grid { display: grid; gap: 24px; }
.rule { height: 1px; background: var(--lr-line); border: 0; margin: 0; }
.rule-soft { height: 1px; background: var(--lr-line-soft); border: 0; margin: 0; }

/* ─── Header / Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(5,5,7,0.72);
  border-bottom: 1px solid var(--lr-line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--lr-gutter);
  max-width: var(--lr-max);
  margin: 0 auto;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; height: 56px; }
.nav-brand img { height: 52px; width: auto; }
.nav-center {
  display: flex; align-items: center; gap: 6px;
  justify-self: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-r-pill);
  padding: 4px;
}
.nav-link {
  font-family: var(--lr-font-text);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.62);
  padding: 8px 16px;
  border-radius: var(--lr-r-pill);
  transition: color var(--lr-dur) var(--lr-ease), background var(--lr-dur) var(--lr-ease);
  white-space: nowrap;
}
.nav-link:hover { color: #FFFFFF; background: rgba(255,255,255,0.04); }
.nav-link.active { color: #FFFFFF; background: rgba(27,75,255,0.16); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--lr-r-md);
  border: 1px solid var(--lr-line);
  align-items: center; justify-content: center;
}
.nav-mobile-toggle svg { width: 18px; height: 18px; }

/* Mobile menu hidden by default at all sizes */
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .nav-right .btn { display: none; }
  .nav-mobile-toggle { display: flex; }
  .mobile-menu.open {
    display: block;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    border-top: 1px solid var(--lr-line);
    background: #050507;
    padding: 24px var(--lr-gutter) 32px;
    overflow-y: auto;
    z-index: 49;
  }
  .mobile-menu.open a {
    display: block;
    padding: 14px 0;
    font-family: var(--lr-font-display);
    font-size: 22px; font-weight: 600;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    border-bottom: 1px solid var(--lr-line-soft);
  }
  .mobile-menu.open a:last-of-type { border-bottom: 0; }
  .mobile-menu.open .btn { margin-top: 20px; width: 100%; justify-content: center; }
  /* Lock page scroll when the menu is open (modern browsers) */
  html:has(.mobile-menu.open) { overflow: hidden; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--lr-font-text);
  font-size: 14px; font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--lr-r-pill);
  border: 1px solid transparent;
  transition: transform var(--lr-dur) var(--lr-ease), background var(--lr-dur) var(--lr-ease), color var(--lr-dur) var(--lr-ease), border-color var(--lr-dur) var(--lr-ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: #1B4BFF; color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 30px -10px var(--lr-blue-glow); }
.btn-primary:hover { background: #0C2AC4; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: var(--lr-line); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.25); }
.btn-invert { background: #FFFFFF; color: #050507; }
.btn-invert:hover { background: #e8eaf3; transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-arrow { width: 14px; height: 14px; transition: transform var(--lr-dur) var(--lr-ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─── Pills / chips ─── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--lr-r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--lr-line);
  font-family: var(--lr-font-mono);
  font-size: var(--lr-mono-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  font-weight: 500;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #1B4BFF; box-shadow: 0 0 10px #1B4BFF; }

/* ─── Footer ─── */
.footer-cta {
  border-top: 1px solid var(--lr-line);
  background: linear-gradient(180deg, transparent 0%, rgba(27,75,255,0.06) 100%);
}
.footer-cta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--lr-line);
  border-bottom: 1px solid var(--lr-line);
}
.footer-cta-cell {
  padding: 56px var(--lr-gutter);
  border-right: 1px solid var(--lr-line);
  display: flex; flex-direction: column; gap: 20px;
  transition: background var(--lr-dur) var(--lr-ease);
}
.footer-cta-cell:last-child { border-right: 0; }
.footer-cta-cell:hover { background: rgba(27,75,255,0.04); }
.footer-cta-cell .lr-eyebrow { color: var(--lr-blue-soft); }
.footer-cta-cell h3 { font-family: var(--lr-font-display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.05; color: #FFFFFF; }
.footer-cta-cell h3 em { font-style: normal; font-weight: 700; color: var(--lr-blue); }
.footer-cta-cell .btn { align-self: flex-start; }

@media (max-width: 720px) {
  .footer-cta-grid { grid-template-columns: 1fr; }
  .footer-cta-cell { border-right: 0; border-bottom: 1px solid var(--lr-line); padding: 40px var(--lr-gutter); }
  .footer-cta-cell:last-child { border-bottom: 0; }
}

.footer {
  padding: 48px var(--lr-gutter) 40px;
  max-width: var(--lr-max); margin: 0 auto;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.62); transition: color var(--lr-dur) var(--lr-ease); }
.footer-nav a:hover { color: #FFFFFF; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--lr-line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--lr-font-mono); font-size: var(--lr-mono-sm); color: rgba(255,255,255,0.38); letter-spacing: 0.04em; }
.footer-bottom .copy-symbol { font-size: 1.5em; line-height: 0.9; vertical-align: -2px; margin-right: 2px; }

/* ─── Page hero ─── */
.page-hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--lr-line);
  position: relative;
  overflow: hidden;
}
.page-hero .page-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(27,75,255,0.24), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(12,42,196,0.18), transparent 50%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lr-eyebrow { color: var(--lr-blue-soft); margin-bottom: 24px; display: block; }
.page-hero h1 { margin: 0 0 24px; max-width: 16ch; }
.page-hero .lr-lead { max-width: 56ch; }

/* ─── Utility ─── */
.stack > * + * { margin-top: var(--gap, 16px); }
.hidden { display: none !important; }
.text-fog { color: rgba(255,255,255,0.62); }
.text-mist { color: rgba(255,255,255,0.38); }

/* ─── Section titles ─── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lr-h2 { margin: 0; max-width: 18ch; }
.section-head .lr-lead { max-width: 46ch; margin: 0; }

/* ─── Cards ─── */
.card {
  background: var(--lr-black-2);
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-r-lg);
  padding: 32px;
  position: relative;
  transition: transform var(--lr-dur) var(--lr-ease), border-color var(--lr-dur) var(--lr-ease), background var(--lr-dur) var(--lr-ease);
}
.card:hover { border-color: rgba(27,75,255,0.45); background: #0d1024; }
.card .card-index { position: absolute; top: 20px; right: 24px; color: rgba(255,255,255,0.38); }


/* ─── Video Spacers — inline autoplay chips ─── */
.video-spacer {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
  background: var(--lr-black);
  border-top: 1px solid var(--lr-line);
  border-bottom: 1px solid var(--lr-line);
}
.video-spacer-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.video-spacer-word {
  font-family: var(--lr-font-display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 120px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
}
.video-spacer-word.blue { color: var(--lr-blue); }
.video-chip {
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--lr-black-2);
  border: 1px solid var(--lr-line);
  box-shadow: 0 20px 60px -20px rgba(27,75,255,0.3), 0 10px 30px -10px rgba(0,0,0,0.8);
  transform-origin: center;
}
.video-chip-sm { width: clamp(140px, 14vw, 220px); aspect-ratio: 16/10; }
.video-chip-md { width: clamp(180px, 18vw, 280px); aspect-ratio: 16/10; }
.video-chip-lg { width: clamp(220px, 24vw, 360px); aspect-ratio: 16/9; }
.video-chip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-chip.tilt-l { transform: rotate(-3deg); }
.video-chip.tilt-r { transform: rotate(3deg); }

/* ─── Monumental hero (inline video chips) ─── */
.hero-mono {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 7vw, 100px);
  background: var(--lr-black);
  border-bottom: 1px solid var(--lr-line);
  overflow: hidden;
}
.hero-mono::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}
.hero-mono-inner { position: relative; z-index: 1; }

.hero-mono h1 {
  font-family: var(--lr-font-display);
  font-weight: 800;
  font-size: clamp(44px, 8.5vw, 132px);
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 40px;
  color: #fff;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-mono h1 .hero-chip-inline {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.15em;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lr-black-2);
  border: 1px solid var(--lr-line);
  box-shadow: 0 16px 40px -12px rgba(27,75,255,0.35), 0 10px 24px -8px rgba(0,0,0,0.7);
  position: relative;
  top: -0.1em; /* optical align to cap-height baseline */
}
.hero-mono h1 .hero-chip-inline video {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-mono h1 .hero-chip-inline.size-1 { width: clamp(110px, 11vw, 180px); aspect-ratio: 16/10; }
.hero-mono h1 .hero-chip-inline.size-2 { width: clamp(100px, 10vw, 160px); aspect-ratio: 1/1; }
.hero-mono h1 .hero-chip-inline.size-3 { width: clamp(130px, 13vw, 210px); aspect-ratio: 16/9; }
.hero-mono h1 .hero-chip-inline.tilt-l { transform: rotate(-4deg); }
.hero-mono h1 .hero-chip-inline.tilt-r { transform: rotate(3deg); }
.hero-mono h1 .blue { color: var(--lr-blue); }
.hero-mono-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--lr-fog); max-width: 58ch; margin: 0 0 40px; line-height: 1.55; }
.hero-mono-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Real-logo marquee */
.marquee-logos .marquee-item {
  height: 36px;
  display: inline-flex;
  align-items: center;
}
.marquee-logos .marquee-item img {
  height: 100%;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1) brightness(2);
  transition: opacity var(--lr-dur) var(--lr-ease);
}
.marquee-logos .marquee-item img[src*="plarium"],
.marquee-logos .marquee-item img[src*="hungry-minds"] {
  height: 63px;
  max-width: 320px;
  transform: translateY(-6px);
}
.marquee-logos .marquee-item:hover img { opacity: 1; }

/* ─── A11y baseline ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--lr-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
a.btn:focus-visible, button:focus-visible { outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--lr-blue);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font: 600 14px/1 var(--lr-font-mono, ui-monospace, monospace);
  text-decoration: none;
  transition: top 180ms ease;
}
.skip-link:focus { top: 16px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
