/* ==========================================================================
   Public homepage — video hero + bento ads grid + stats + liquid-glass footer
   ========================================================================== */

@font-face {
  font-family: "Helvetica Regular";
  src: url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.woff") format("woff");
  font-display: swap;
}

* { box-sizing: border-box; }

.home-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Helvetica Regular", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #050608;
  color: rgba(255, 255, 255, 0.92);
}
.home-shell ::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }

.home-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(105%) brightness(0.78);
}
.home-bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.7) 80%),
    linear-gradient(180deg, rgba(5,6,8,0.55) 0%, rgba(5,6,8,0.85) 60%, rgba(5,6,8,1) 100%);
  z-index: 1;
}

.home-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  padding: 0 28px;
  margin: 0 auto;
}

/* ── Top bar ─────────────────────────────── */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.home-topbar__brand {
  display: inline-flex; gap: 10px; align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.home-topbar__brand svg { width: 22px; height: 22px; }
.home-topbar__nav { display: flex; gap: 22px; align-items: center; }
.home-topbar__nav a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: -0.1px;
  transition: color 160ms ease;
}
.home-topbar__nav a:hover { color: #fff; }
.home-topbar__sign-in {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  text-decoration: none;
}
.home-topbar__sign-in:hover { background: rgba(255,255,255,0.16); }

/* ── Hero ────────────────────────────────── */
.home-hero {
  padding: 80px 0 60px 0;
  text-align: left;
  max-width: 920px;
}
.home-hero__eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.home-hero__title {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 26px 0 22px 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, #66b0ff 0%, #2997ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero__lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 32px 0;
}
.home-hero__cta {
  display: inline-flex; gap: 12px; align-items: center;
}

.home-pill-primary,
.home-pill-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 80ms ease-out, background 160ms ease;
}
.home-pill-primary { background: #fff; color: #0a0a0a; }
.home-pill-primary:hover { background: rgba(255,255,255,0.9); }
.home-pill-secondary { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }
.home-pill-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.home-pill-primary:active, .home-pill-secondary:active { transform: scale(0.96); }

/* ── Auto-rotating gallery (replaces scroll-morph) ─ */
.gallery-stage {
  position: relative;
  width: 100%;
  height: 520px;
  margin: 60px 0 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.gallery-stage__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
  text-align: center;
}
.gallery-stage__caption h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.gallery-stage__caption p {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255,255,255,0.55);
}

.gallery-orbit {
  position: relative;
  width: 100%;
  max-width: 880px;
  height: 100%;
  transform-style: preserve-3d;
  animation: gallerySpin 36s linear infinite;
}
@keyframes gallerySpin { to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .gallery-orbit { animation-duration: 0s; } }

.gallery-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 184px;
  margin: -92px 0 0 -65px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
}

@media (max-width: 833px) {
  .gallery-stage { height: 380px; margin: 24px 0 60px 0; }
  .gallery-card { width: 96px; height: 140px; margin: -70px 0 0 -48px; }
}

/* ── Bento grid of featured ads ─────────── */
.home-section { padding: 60px 0; }
.home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.home-section__head h2 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 6px 0;
}
.home-section__head p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 540px;
}
.home-section__head a {
  align-self: center;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  text-decoration: none;
}
.home-section__head a:hover { color: #fff; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.bento__tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0c0d10;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.bento__tile img,
.bento__tile video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.bento__tile:hover img,
.bento__tile:hover video { transform: scale(1.05); }
.bento__tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.bento__tile-body {
  position: relative;
  z-index: 2;
  padding: 18px;
  width: 100%;
  display: flex; flex-direction: column; gap: 6px;
}
.bento__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
}
.bento__tag.green { background: rgba(76, 196, 106, 0.22); color: #99edb1; border-color: rgba(76, 196, 106, 0.30); }
.bento__tag.blue  { background: rgba(41, 151, 255, 0.22); color: #a8d5ff;  border-color: rgba(41, 151, 255, 0.30); }
.bento__tile h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.25;
  color: #fff;
}
.bento__tile span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* Bento sizing — every other variation */
.bento__tile--2x2 { grid-column: span 2; grid-row: span 2; }
.bento__tile--3x1 { grid-column: span 3; }
.bento__tile--2x1 { grid-column: span 2; }
.bento__tile--1x2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
  .bento__tile--3x1 { grid-column: span 4; }
  .bento__tile--2x2 { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .bento__tile,
  .bento__tile--2x2,
  .bento__tile--2x1,
  .bento__tile--3x1,
  .bento__tile--1x2 { grid-column: span 2; grid-row: auto; }
}

/* ── Stats strip ─────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 60px 0;
}
.stats-strip > div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 24px;
}
.stats-strip strong {
  display: block;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-strip span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 833px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

/* ── Capabilities row (icons + copy) ─── */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 60px 0 40px 0;
}
.caps__card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px;
}
.caps__card svg { width: 28px; height: 28px; color: #66b0ff; margin-bottom: 14px; }
.caps__card h3 { margin: 0 0 8px 0; font-size: 18px; letter-spacing: -0.2px; font-weight: 600; }
.caps__card p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.55; }
@media (max-width: 833px) { .caps { grid-template-columns: 1fr; } }

/* ── Liquid-glass footer ──────────────── */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.home-footer {
  width: 100%;
  border-radius: 28px;
  padding: 40px;
  color: rgba(255, 255, 255, 0.7);
  margin: 80px 0 48px 0;
}
.home-footer__top {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 833px) {
  .home-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .home-footer { padding: 28px; }
}
.home-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.home-footer__brand .row { display: flex; gap: 10px; align-items: center; color: #fff; }
.home-footer__brand .row svg { width: 22px; height: 22px; }
.home-footer__brand .row span { font-size: 21px; font-weight: 500; letter-spacing: -0.2px; }
.home-footer__brand p {
  font-size: 14px; line-height: 1.55; max-width: 380px; margin: 0;
  color: rgba(255, 255, 255, 0.65);
}
.home-footer__links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
@media (max-width: 640px) { .home-footer__links { grid-template-columns: 1fr 1fr; } }
.home-footer__col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: #fff; font-weight: 500; margin: 0 0 14px 0;
}
.home-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.home-footer__col a {
  font-size: 12px; color: rgba(255, 255, 255, 0.65);
  transition: color 160ms ease; text-decoration: none;
}
.home-footer__col a:hover { color: #fff; }
.home-footer__bottom {
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
@media (max-width: 640px) { .home-footer__bottom { flex-direction: column; gap: 24px; } }
.home-footer__bottom .micro {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  opacity: 0.5; color: rgba(255, 255, 255, 0.92);
}
.home-footer__social { display: flex; gap: 14px; align-items: center; }
.home-footer__social a {
  opacity: 0.7; transition: opacity 160ms ease, color 160ms ease;
  color: rgba(255, 255, 255, 0.85);
}
.home-footer__social a:hover { opacity: 1; color: #fff; }
.home-footer__social svg { width: 16px; height: 16px; }
