:root {
  --bg: #050506;
  --bg-2: #0a0a0c;
  --elev: #111114;
  --text: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #2997ff;
  --accent-2: #64d2ff;
  --glow: rgba(41, 151, 255, 0.28);
  --radius: 28px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-on {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #64d2ff, #2997ff 55%, #0a84ff);
  box-shadow: 0 0 24px var(--glow);
}

.nav-links {
  display: flex;
  gap: 28px;
  color: #d2d2d7;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 980px;
  padding: 10px 18px;
  background: #f5f5f7;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s;
}

.btn:hover { transform: scale(1.03); background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-auth-in-menu,
.btn-google-menu {
  display: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 72px) 0 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: breathe 10s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}

.hero-copy {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin: 0 auto 48px;
}

.kicker {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7.2vw, 84px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  background: linear-gradient(180deg, #fff 20%, #b4b4bc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 400;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stage {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 56px auto 0;
  perspective: 1400px;
}

.hero-frame {
  position: relative;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #0c0c10;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  transform: rotateX(12deg);
  transform-origin: center bottom;
  animation: rise 1.4s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: rotateX(18deg) translateY(48px); }
  to { opacity: 1; transform: rotateX(12deg) translateY(0); }
}

.hero-chrome {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #16161a;
  border-bottom: 1px solid var(--line);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3a40; }
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }

.media {
  position: relative;
  aspect-ratio: 16 / 9.4;
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(41,151,255,0.12), transparent 55%),
    linear-gradient(180deg, #141418, #09090b);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 8s linear;
}

.media img.is-on { opacity: 1; }
.hero-frame:hover .media img.is-on { transform: scale(1.04); }

.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #3d3d46;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* TICKER */
.ticker {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 36s linear infinite;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker i { color: var(--accent); margin-right: 10px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
section { padding: 120px 0; }

.sec-head {
  max-width: 760px;
  margin-bottom: 64px;
}

.sec-head h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.sec-head p {
  color: var(--muted);
  font-size: 19px;
  margin: 16px 0 0;
}

.film {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: end start;
  padding: 80px 0;
  overflow: hidden;
}

.film-bg {
  position: absolute;
  inset: 0;
  background: #0b0b0e;
}

.film-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.55) saturate(0.85);
  transform: scale(1.08);
  transition: opacity 0.8s var(--ease);
}

.film-bg img.is-on { opacity: 1; animation: ken 22s ease-out forwards; }

@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.film-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,6,0.15) 0%, rgba(5,5,6,0.82) 100%);
}

.film .wrap { position: relative; z-index: 1; }

.film h2 {
  max-width: 780px;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.film p {
  max-width: 520px;
  color: #d2d2d7;
  font-size: 18px;
}

/* BENTO */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--elev);
  border: 1px solid var(--line);
  min-height: 340px;
  isolation: isolate;
}

.card.tall { grid-row: span 2; min-height: 700px; }

.card .shot {
  position: absolute;
  inset: 0;
}

.card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s, transform 0.8s var(--ease);
}

.card .shot img.is-on { opacity: 0.72; }
.card:hover .shot img.is-on { transform: scale(1.05); opacity: 0.9; }

.card .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(5,5,6,0.92) 100%);
}

.card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
}

.card-body .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(41,151,255,0.12);
  color: var(--accent-2);
  margin-bottom: 14px;
}

.card-body h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.list { list-style: none; padding: 0; margin: 28px 0 0; }

.list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: #d2d2d7;
}

.list i { color: var(--accent); margin-top: 4px; }

.arch {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  background:
    radial-gradient(600px 280px at 70% 20%, rgba(41,151,255,0.18), transparent 60%),
    var(--elev);
  position: relative;
}

.arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.arch img.is-on { opacity: 1; }

/* CTA */
.cta {
  text-align: center;
  padding: 140px 0 120px;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.045em;
  margin: 0;
}

.cta p { color: var(--muted); font-size: 20px; }

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.seo-blurb {
  max-width: 72ch;
  margin: 0 0 28px;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.55;
}

.seo-blurb strong { color: #a1a1aa; font-weight: 500; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

.bento-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.card-sm { min-height: 280px; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 20px; padding: 8px; }

@media (max-width: 860px) {
  .wrap,
  .nav-inner {
    width: min(1180px, calc(100% - 28px));
  }

  .nav {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-h) + env(safe-area-inset-top));
  }

  .nav-links { display: none; }
  .nav-toggle { display: block; order: 3; }
  .nav-cta { order: 2; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    background: #0a0a0c;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    font-size: 16px;
  }

  .nav.open .nav-auth-in-menu { display: block; }
  .nav.open .btn-in-menu,
  .nav.open .btn-google-menu {
    display: inline-flex;
    align-self: flex-start;
  }

  .nav .btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-inner { gap: 10px; }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + env(safe-area-inset-top) + 36px) 0 0;
  }

  .hero-copy { margin: 0 4px 28px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .lede { font-size: 16px; padding-inline: 4px; }

  .hero-frame {
    transform: none;
    border-radius: 16px 16px 0 0;
    animation: none;
  }

  .hero-stage { margin-top: 28px; }
  .fade-bottom { height: 72px; }

  .bento,
  .bento-3,
  .split {
    grid-template-columns: 1fr;
  }

  .card.tall,
  .card-sm {
    min-height: 320px;
  }

  .film {
    min-height: 58vh;
    padding: 48px 0 36px;
  }

  .film h2 { font-size: clamp(28px, 8vw, 40px); }
  .film p { font-size: 16px; }

  section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head p { font-size: 16px; }

  .cta { padding: 72px 0 64px; }
  .cta p { font-size: 16px; }

  .arch { min-height: 280px; }
  .split { gap: 28px; }

  .foot { flex-direction: column; }
}

.btn-in-menu { display: none; }

@media (max-width: 420px) {
  .nav .nav-cta .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
