:root {
  --blue: #2f6bff;
  --blue-dark: #1d4fd6;
  --blue-soft: #eaf0ff;
  --ink: #0f1a33;
  --ink-2: #3c4760;
  --muted: #6b7591;
  --line: #e2e7f2;
  --bg-soft: #f5f8ff;
  --white: #ffffff;
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--blue); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--blue); position: relative; flex-shrink: 0; }
.logo-mark::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { padding: 9px 18px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; transition: transform .2s, background .2s, box-shadow .2s; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(47, 107, 255, .7); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--line); }

/* Hero */
.hero { position: relative; padding: 110px 0 120px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, #dfe8ff 0%, rgba(255,255,255,0) 70%);
}
.eyebrow { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin: 16px auto 22px; max-width: 900px; }
.hero h1 span { background: linear-gradient(90deg, var(--blue), #6b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Floating video tiles in hero */
.hero-reel { display: flex; justify-content: center; gap: 18px; margin-top: 70px; perspective: 1200px; }
.reel-tile {
  width: 170px; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -25px rgba(15, 26, 51, .45); background: #dbe3f5;
  transition: transform .2s linear;
}
.reel-tile img { width: 100%; height: 100%; object-fit: cover; }
.reel-tile:nth-child(odd) { margin-top: 40px; }
.reel-tile .stat { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Sections */
section { padding: 110px 0; }
.soft { background: var(--bg-soft); }
.dark { background: var(--ink); color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark .section-head p { color: #a9b3cc; }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.project:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(15, 26, 51, .35); }
.project-thumb { position: relative; aspect-ratio: 4 / 5; background: #e6ebf5; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project-thumb img { transform: scale(1.05); }
.project-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.project-thumb .play::after { content: ""; margin-left: 5px; border-left: 18px solid var(--blue); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.project-thumb .views { position: absolute; left: 12px; bottom: 12px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.project-thumb.no-video { display: grid; place-items: center; background: linear-gradient(145deg, #dfe8ff, #f5f8ff); color: var(--blue); font-weight: 800; font-size: 1.4rem; padding: 20px; text-align: center; }
.project-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-body h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .72rem; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; }
.project-body p { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-body .more { margin-top: auto; font-weight: 600; color: var(--blue); font-size: .9rem; }
.center { text-align: center; margin-top: 44px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filters button {
  font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filters button small { opacity: .7; margin-left: 4px; }

/* Why UGC */
.compare { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: stretch; }
.old-way { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.old-way h3, .new-way h3 { font-size: 1.3rem; margin-bottom: 18px; }
.old-way .item { padding: 16px 0; border-top: 1px solid var(--line); }
.old-way .item:first-of-type { border-top: 0; padding-top: 0; }
.old-way h4 { font-size: 1rem; margin-bottom: 4px; }
.old-way p { color: var(--muted); font-size: .95rem; }
.old-way .note { margin-top: 18px; font-style: italic; }
.new-way { background: var(--blue); color: #fff; border-radius: 24px; padding: 34px; }
.new-way .items { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.new-way .icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 12px; }
.new-way .icon svg { width: 22px; height: 22px; }
.new-way h4 { font-size: 1.05rem; margin-bottom: 4px; }
.new-way p { color: #dbe5ff; font-size: .95rem; }
.cta-band { text-align: center; margin-top: 50px; }
.cta-band p { font-size: 1.2rem; font-weight: 600; margin-bottom: 18px; }

/* About + stats */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 18px; }
.about p { color: #c4cce0; font-size: 1.1rem; }
.stats { display: grid; gap: 18px; }
.stat-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 24px 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.stat-box strong { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-box span { color: #a9b3cc; font-weight: 500; text-align: right; }

/* Process timeline */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 60px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 3px; background: var(--line); border-radius: 3px; }
.timeline-fill { position: absolute; left: 21px; top: 0; width: 3px; height: 0; background: var(--blue); border-radius: 3px; }
.step { position: relative; padding: 0 0 50px; }
.step:last-child { padding-bottom: 0; }
.step .dot {
  position: absolute; left: -60px; top: 0; width: 45px; height: 45px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line); display: grid; place-items: center;
  font-weight: 800; color: var(--muted); transition: all .4s;
}
.step.lit .dot { border-color: var(--blue); background: var(--blue); color: #fff; }
.step h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.step p { color: var(--muted); }

/* Brands marquee */
.brands { padding: 80px 0; overflow: hidden; }
.marquee { display: flex; gap: 18px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.brand-chip {
  height: 76px; min-width: 180px; padding: 0 28px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; font-weight: 800; color: var(--ink-2); letter-spacing: -.01em; white-space: nowrap;
}
.brand-chip img { max-height: 40px; max-width: 140px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 16px; }
.contact p { color: var(--muted); margin-bottom: 26px; }
.contact-info { list-style: none; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact-info .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-info svg { width: 20px; height: 20px; }
form.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 60px -40px rgba(15, 26, 51, .35); }
label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; font-weight: 400; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); background: #fff; }
textarea { min-height: 130px; resize: vertical; }
.hidden { display: none; }

/* Page hero (portfolio, thanks) */
.page-hero { padding: 90px 0 50px; text-align: center; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.035em; line-height: 1.05; margin: 12px 0 14px; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }

/* Project modal */
dialog.modal {
  border: 0; border-radius: 26px; padding: 0; width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 40px);
  margin: auto; color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.4); overflow: hidden;
}
dialog.modal::backdrop { background: rgba(10, 16, 32, .65); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-height: calc(100vh - 40px); }
.modal-video { background: #000; display: grid; place-items: center; min-height: 360px; }
.modal-video iframe { width: 100%; border: 0; aspect-ratio: 9 / 16; max-height: calc(100vh - 40px); }
.modal-video.wide iframe { aspect-ratio: 16 / 9; }
.modal-video .no-video { color: #a9b3cc; padding: 40px; text-align: center; }
.modal-body { padding: 34px; overflow-y: auto; max-height: calc(100vh - 40px); }
.modal-body h2 { font-size: 1.8rem; letter-spacing: -.02em; margin: 10px 0 12px; }
.modal-body > p { color: var(--ink-2); margin-bottom: 22px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.metric { background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; }
.metric strong { display: block; font-size: 1.15rem; letter-spacing: -.01em; }
.metric span { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.metric.wide { grid-column: span 3; background: var(--blue); color: #fff; }
.metric.wide span { color: #dbe5ff; }
.fineprint { font-size: .8rem; color: var(--muted); margin: 8px 0 22px; }
.proof h3 { font-size: 1rem; margin-bottom: 10px; }
.proof-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }
.proof-imgs a { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.proof-imgs a.wide { grid-column: 1 / -1; }
.lightbox {
  position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 16, 32, .92); cursor: zoom-out; animation: fade .2s ease;
}
.lightbox img { max-width: min(100%, 1100px); max-height: 100%; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
@keyframes fade { from { opacity: 0; } }
.modal-close {
  position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.95); font-size: 1.4rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* Footer */
.site-footer { background: var(--ink); color: #a9b3cc; padding: 50px 0 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer .logo { color: #fff; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #a9b3cc; }
.footer-links a:hover { color: #fff; }
.tagline { width: 100%; text-align: center; font-style: italic; color: #7d88a6; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom-in { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reel-tile { transform: none !important; }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .compare, .about, .contact { grid-template-columns: 1fr; }
  .modal-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-video iframe { max-height: 60vh; }
  .modal-body { overflow: visible; max-height: none; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 70px 0 80px; }
  .grid { grid-template-columns: 1fr; }
  .new-way .items { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .hero-reel { gap: 10px; margin-top: 50px; }
  .reel-tile { width: 30%; border-radius: 14px; }
  .reel-tile:nth-child(n+4) { display: none; }
  .reel-tile .stat { font-size: .6rem; padding: 3px 7px; left: 6px; bottom: 6px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric.wide { grid-column: span 2; }
  .modal-body { padding: 24px; }
  form.card { padding: 22px; }
}
