/* ─────────────────────────────────────────────────────────────────────────────
   style.css — Clipmotion
───────────────────────────────────────────────────────────────────────────── */

:root {
  --ink:       #0d0b1e;
  --bg:        #0d0b1e;
  --card-bg:   #13112a;
  --muted:     #9999b3;
  --line:      rgba(255,255,255,0.08);
  --accent-1:  #6ee7d6;
  --accent-2:  #f6a6c1;
  --accent-3:  #ffd27d;
  --lavender:  #f0e6ff;
  --pink-card: #fce8f6;
  --white:     #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PLACEHOLDER FIX
   <video> elements with no src render as a black/transparent block that covers
   the card's background. Hiding them lets the card's dark gradient show through.
   Once a real src is set by app.js, the video becomes visible again.

   NOTE: use visibility:hidden (NOT display:none). display:none removes the
   element's layout box, so its size becomes 0 and the IntersectionObserver that
   lazy-loads the video never fires — the src is never set and the video stays
   hidden forever. visibility:hidden keeps the layout box so the observer works.
───────────────────────────────────────────────────────────────────────────── */
video:not([src]),
video[src=""],
video[data-src]:not([src]) {
  visibility: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1300px;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,11,30,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 28px;
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--white);
  font-style: italic;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-apply {
  background: var(--white);
  color: var(--ink);
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.nav-apply:hover { background: #e8e8e8; transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 0;
}
.grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 40%, black 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 65% 65% at 50% 40%, black 40%, transparent 85%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.character { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
  margin-top: 80px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); }
.hero-content h1 {
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero-content h1 .highlight {
  display: block;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.qualify-btn {
  margin-top: 36px;
  display: inline-block;
  padding: 16px 44px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(240,230,255,0.35), 0 0 80px rgba(240,230,255,0.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.qualify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(240,230,255,0.5), 0 0 100px rgba(240,230,255,0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REEL STRIP
───────────────────────────────────────────────────────────────────────────── */
.reel-section { padding: 20px 0 40px; overflow: hidden; }

.reel-row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  margin-bottom: 16px;
}
@keyframes scroll-left  { 0%   { transform: translateX(0);    } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0%   { transform: translateX(-50%); } 100% { transform: translateX(0);    } }

.reel-card {
  width: 160px;
  height: 260px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a1030, #2d1560); /* visible dark placeholder */
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.reel-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-play-btn {
  position: relative;
  z-index: 2;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: white;
  pointer-events: none;
  transition: opacity .2s;
}
.reel-card.playing .reel-play-btn { opacity: 0; }
.reel-card:hover .reel-play-btn   { background: rgba(255,255,255,0.3); }

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURES / BENTO
───────────────────────────────────────────────────────────────────────────── */
.features-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.features-headline {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.features-sub { text-align: center; color: var(--muted); font-size: 1rem; margin-bottom: 60px; }
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento-card {
  background: var(--pink-card);
  border-radius: 24px;
  padding: 36px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}
.bento-card:hover  { transform: translateY(-4px); }
.bento-card.tall   { grid-row: span 2; }
.bento-card .bento-icon {
  width: 44px; height: 44px;
  background: rgba(155,89,182,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.bento-card h3 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.01em; }
.bento-card p  { font-size: 0.95rem; color: #444; line-height: 1.6; }
.bento-stat    { font-size: 2rem; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.bento-media {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  height: 200px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.bento-phone     { width: 90px; height: 160px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.bento-phone.alt { width: 70px; height: 120px; background: #222; }

/* ─────────────────────────────────────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────────────────────────────────────── */
.services-section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.section-eyebrow-wrap { text-align: center; }
.services-headline {
  font-size: 3.4rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--white);
}
.services-headline .italic-purple { font-style: italic; color: #a78bfa; font-weight: 700; }
.services-sub { text-align: center; color: var(--muted); font-size: 1rem; max-width: 540px; margin: 0 auto 70px; line-height: 1.6; }

.svc-card {
  background: #12101f;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px 56px 0;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 340px; height: 240px;
  background: radial-gradient(ellipse at top right, rgba(120,80,220,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.svc-card-header { text-align: center; margin-bottom: 32px; }
.svc-card-header h3 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.svc-card-header p  { color: var(--muted); font-size: 0.96rem; max-width: 420px; margin: 0 auto 24px; line-height: 1.6; }
.explore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  background: #7c3aed;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.explore-btn:hover { background: #6d28d9; transform: translateY(-1px); }

/* shared video thumbnail */
.thumb-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-play {
  position: relative;
  z-index: 2;
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: white;
  transition: background .2s, opacity .2s;
  pointer-events: none;
}
.yt-thumb.playing .thumb-play,
.sf-thumb.playing .thumb-play { opacity: 0; }

/* Long Form 2×2 landscape grid */
.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
.yt-thumb {
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, #1a1560, #2d1fa0); /* visible dark placeholder */
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s;
}
.yt-thumb:nth-child(2) { background: linear-gradient(135deg, #0f2040, #1a4080); }
.yt-thumb:nth-child(3) { background: linear-gradient(135deg, #301060, #5020a0); }
.yt-thumb:nth-child(4) { background: linear-gradient(135deg, #201040, #401080); }
.yt-thumb:hover            { transform: scale(1.02); }
.yt-thumb:hover .thumb-play { background: rgba(0,0,0,0.75); }

/* Short Form 3-col portrait grid */
.sf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.sf-thumb {
  border-radius: 14px 14px 0 0;
  aspect-ratio: 9/16;
  background: linear-gradient(160deg, #1a1030, #2d1560); /* visible dark placeholder */
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s;
}
.sf-thumb:nth-child(2) { background: linear-gradient(160deg, #0f1a30, #1a3060); }
.sf-thumb:nth-child(3) { background: linear-gradient(160deg, #1a1020, #301040); }
.sf-thumb:hover            { transform: scale(1.02); }
.sf-thumb:hover .thumb-play { background: rgba(0,0,0,0.75); }

/* ─────────────────────────────────────────────────────────────────────────────
   COMPARISON
───────────────────────────────────────────────────────────────────────────── */
.comparison-section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.comp-headline { font-size: 3.2rem; font-weight: 700; text-align: center; line-height: 1.2; margin-bottom: 60px; color: var(--white); }
.comp-headline .italic-purple { font-style: italic; color: #a78bfa; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.comp-col-label { text-align: center; font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.comp-col-label.us { color: var(--white); font-size: 1.1rem; }
.comp-col-label.us strong { font-style: italic; }
.comp-card { border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; background: #0f0d20; }
.comp-card.highlight { background: linear-gradient(145deg, #1a1050 0%, #2d1a80 100%); border-color: rgba(167,139,250,0.3); }
.comp-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.comp-item:last-child           { border-bottom: none; }
.comp-card.highlight .comp-item { color: var(--white); }
.comp-icon       { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }
.comp-icon.x     { color: #666; }
.comp-icon.check { color: #a78bfa; }

/* ─────────────────────────────────────────────────────────────────────────────
   FINAL CTA
───────────────────────────────────────────────────────────────────────────── */
.cta-section { padding: 60px 48px 100px; max-width: 1200px; margin: 0 auto; }
.cta-card { background: var(--lavender); border-radius: 28px; padding: 80px 48px; text-align: center; color: var(--ink); }
.cta-card h2 { font-size: 3rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; max-width: 640px; margin: 0 auto 18px; }
.cta-card p  { color: #555; font-size: 1rem; max-width: 480px; margin: 0 auto 36px; line-height: 1.6; }
.cta-apply {
  display: inline-block;
  padding: 16px 52px;
  background: var(--ink);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 40px rgba(13,11,30,0.25);
  transition: transform .2s, box-shadow .2s;
}
.cta-apply:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(13,11,30,0.35); }

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────────────── */
footer { background: white; color: var(--ink); padding: 64px 72px 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 52px; border-bottom: 1px solid #eee; margin-bottom: 32px; }
.footer-brand .foot-logo { font-weight: 900; font-size: 1.4rem; font-style: italic; color: var(--ink); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: #666; line-height: 1.6; max-width: 260px; margin-bottom: 22px; }
.social-icons   { display: flex; gap: 10px; }
.social-icon    { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.social-icon:hover { border-color: #aaa; background: #f5f5f5; }
.footer-col h4  { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa; margin-bottom: 18px; }
.footer-col ul  { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { text-decoration: none; font-size: 0.9rem; color: #444; transition: color .2s; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--ink); }
.apply-badge { background: var(--ink); color: white; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #aaa; }
.footer-bottom span { color: #e74c3c; }

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────────────────────────────────────── */
.reveal            { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .features-headline { font-size: 2.8rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.tall { grid-row: span 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-wrap    { width: calc(100% - 24px); }
  nav          { padding: 12px 18px; }
  .hero-content h1  { font-size: 2.4rem; }
  .features-section, .services-section, .comparison-section, .cta-section { padding: 70px 24px; }
  .cta-card    { padding: 50px 24px; }
  .cta-card h2 { font-size: 2rem; }
  footer       { padding: 48px 24px 32px; }
  .footer-top  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .comp-grid   { grid-template-columns: 1fr; }
  .sf-grid     { grid-template-columns: 1fr 1fr; }
  .yt-grid     { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-row { animation: none; }
  .reveal   { transition: none; opacity: 1; transform: none; }
}
