/* Home page: dark hero with a live sample Short, and the "Made with Shortloom" gallery. */
.hx { position: relative; overflow: hidden; background: #0d0d22; color: #fff; isolation: isolate; }
.hx::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 45% at 78% 35%, rgba(61, 43, 245, .55), transparent 70%),
    radial-gradient(30% 35% at 15% 15%, rgba(255, 225, 77, .14), transparent 70%),
    radial-gradient(35% 40% at 50% 100%, rgba(255, 92, 168, .18), transparent 70%); }
.hx::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.hx-in { max-width: 72rem; margin: 0 auto; padding: 56px 16px 80px; display: grid; gap: 56px; align-items: center; }
@media (min-width: 768px) { .hx-in { grid-template-columns: 1.15fr 1fr; padding: 88px 24px 104px; } }
.hx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.hx-pill b { background: var(--color-caption); color: var(--color-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 800; }
.hx h1 { margin-top: 22px; font-size: clamp(44px, 6.3vw, 84px); line-height: .95; letter-spacing: -.035em; font-weight: 900; font-stretch: 112%; }
.hx h1 mark { background: none; color: var(--color-caption); position: relative; white-space: nowrap; }
.hx h1 mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .12em; border-radius: 99px;
  background: var(--color-cobalt); z-index: -1; transform-origin: left; animation: hx-line 1s .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hx-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hx-sub { margin-top: 24px; max-width: 36ch; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: rgba(255,255,255,.72); }
.hx-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hx-go { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 16px;
  background: var(--color-caption); color: var(--color-ink); box-shadow: 0 10px 40px -8px rgba(255,225,77,.55); transition: transform .2s, box-shadow .2s; }
.hx-go:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(255,225,77,.7); }
.hx-ghost { display: inline-flex; align-items: center; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  color: #fff; border: 1px solid rgba(255,255,255,.22); transition: background .2s; }
.hx-ghost:hover { background: rgba(255,255,255,.08); }
.hx-trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255,255,255,.6); }
.hx-trust span::before { content: "✓"; color: var(--color-caption); font-weight: 900; margin-right: 6px; }

/* Phone with a real Short playing */
.ph-wrap { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
@media (min-width: 640px) { .ph-wrap { max-width: 340px; } }
.ph-idea { position: relative; z-index: 3; margin: 0 14px -22px; border-radius: 18px; background: #fff; color: var(--color-ink);
  padding: 11px 16px 13px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.55); }
.ph-idea small { font-size: 12px; font-weight: 700; color: var(--color-slate); }
.ph-idea p { margin-top: 2px; min-height: 2.9em; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ph-idea .cur { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--color-cobalt); animation: ph-blink 1s steps(1) infinite; }
@keyframes ph-blink { 50% { opacity: 0; } }
.ph { position: relative; border-radius: 46px; padding: 10px; background: #050510;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.12), 0 50px 100px -30px rgba(61,43,245,.75), 0 30px 60px -30px rgba(0,0,0,.8); }
.ph-screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 37px; background: #111; }
.ph-screen video, .ph-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-snd { position: absolute; z-index: 2; left: 12px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; }
.ph-snd svg { width: 16px; height: 16px; }
.ph-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px;
  background: rgba(20,20,43,.85); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); animation: ph-float 5s ease-in-out infinite; }
.ph-chip i { width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; background: var(--color-caption); color: var(--color-ink); font-style: normal; font-size: 12px; font-weight: 900; }
.ph-chip.a { left: -34px; top: 34%; }
.ph-chip.b { right: -30px; top: 58%; animation-delay: -2.5s; }
@media (max-width: 420px) { .ph-chip.a { left: -8px; } .ph-chip.b { right: -8px; } }
@keyframes ph-float { 50% { transform: translateY(-8px); } }

/* Gallery */
.gx { background: #0d0d22; color: #fff; padding: 8px 0 88px; border-top: 1px solid rgba(255,255,255,.06); }
.gx-head { max-width: 72rem; margin: 0 auto; padding: 56px 16px 28px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
@media (min-width: 640px) { .gx-head { padding: 64px 24px 32px; } }
.gx h2 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-stretch: 110%; }
.gx-head p { max-width: 38ch; color: rgba(255,255,255,.65); font-size: 16px; line-height: 1.55; }
.gx-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 18px; scrollbar-width: none; }
.gx-row::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .gx-row { justify-content: center; } }
.gx-card { flex: 0 0 auto; width: 214px; scroll-snap-align: center; }
@media (min-width: 640px) { .gx-card { width: 232px; } }
.gx-vid { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #1a1a33; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 50px -24px rgba(0,0,0,.9); transition: transform .25s, box-shadow .25s; }
.gx-vid:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--color-cobalt), 0 30px 60px -24px rgba(61,43,245,.6); }
.gx-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx-vid .tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px); }
.gx-vid .snd { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff; }
.gx-vid .snd svg { width: 16px; height: 16px; }
.gx-card p { margin-top: 12px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.75); }
.gx-card p::before { content: "Idea: "; color: var(--color-caption); font-weight: 800; }
.gx-foot { text-align: center; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { .ph-chip, .hx h1 mark::after { animation: none; } }

/* Dark header on the home page so it blends into the hero */
body[data-route="index"] > #root > header { background: rgba(13,13,34,.82) !important; border-color: rgba(255,255,255,.08) !important; }
body[data-route="index"] > #root > header a[aria-label="Shortloom home"] { color: #fff !important; }
body[data-route="index"] > #root > header nav a { color: rgba(255,255,255,.72) !important; }
body[data-route="index"] > #root > header nav a:hover { color: #fff !important; }
body[data-route="index"] > #root > header nav a.btn-ink { background: var(--color-caption) !important; color: var(--color-ink) !important; }

/* Full screen: show the whole vertical video instead of cropping it to fill a wide screen */
video:fullscreen, video:-webkit-full-screen { object-fit: contain !important; background: #000; }
