/* =========================================================
   COLORS & FONTS — change them here and the whole site updates
   ========================================================= */
:root {
  --bg: #0b020d;          /* page background */
  --surface: #160a19;     /* card background */
  --line: #2c1a31;        /* lines & borders */
  --text: #f7eefa;        /* main text */
  --muted: #b7a3bd;       /* secondary text */
  --accent: #d42cf5;      /* main accent (buttons, highlights) */
  --accent-soft: #f2dcf8; /* light accent */
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.03em; }
p { margin: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.accent { color: var(--accent); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-soft); opacity: .8; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; font-family: inherit;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-soft); border-color: var(--accent-soft); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }
.link-arrow { font-weight: 700; color: var(--accent-soft); display: inline-block; margin-top: auto; padding-top: 28px; transition: transform .2s; }
.link-arrow:hover { transform: translateX(6px); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 2, 13, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px 8px; }
.nav__burger span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(212, 44, 245, .35), transparent 62%);
  filter: blur(40px); pointer-events: none;
}
.hero .container { position: relative; }
.hero__title {
  font-size: clamp(44px, 9vw, 132px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.045em; line-height: .95;
}
.hero__lead { max-width: 560px; margin-top: 36px; font-size: 19px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }



/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section--tight { padding: 70px 0 130px; }
.section__title { font-size: clamp(36px, 5.6vw, 76px); font-weight: 800; max-width: 18ch; text-wrap: balance; }

/* Brands / creators */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.duo__card {
  display: flex; flex-direction: column;
  padding: 44px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.duo__card--brand { background: linear-gradient(160deg, #2a0a33 0%, var(--surface) 70%); }
.duo__card h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; margin: 22px 0 26px; }
.tag {
  align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent-soft); font-size: 13px; font-weight: 600;
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 28px 0 0; border-right: 1px solid var(--line); margin-right: 28px; }
.service:last-child { border-right: 0; margin-right: 0; }
.service__num { font-size: 14px; color: var(--accent); font-weight: 700; }
.service h3 { font-size: 24px; font-weight: 700; margin: 14px 0 12px; }
.service p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.step:hover { border-color: var(--accent); background: var(--surface); }
.step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
}
.step h3 { font-size: 26px; font-weight: 800; margin: 28px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 56px; }
.platform {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  min-height: 200px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s, border-color .3s;
}
.platform:hover { transform: translateY(-6px); border-color: var(--accent); }
.platform h3 { font-size: 24px; font-weight: 800; }
.platform p { color: var(--muted); font-size: 15px; }


/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about__text p { font-size: 20px; color: var(--muted); }
.values { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.values li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.values strong { color: var(--text); }

/* ---------- Contacts ---------- */
.contacts { background: var(--accent-soft); color: var(--bg); border-radius: 36px 36px 0 0; }
.contacts .eyebrow { color: var(--bg); margin-bottom: 12px; }
.contacts__title {
  font-size: clamp(56px, 11vw, 170px); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -0.05em;
}
.contacts__title .accent { color: var(--accent); }
.contacts__lead { margin-top: 20px; max-width: 520px; font-size: 19px; color: #4a3550; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }

.contact-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid rgba(11, 2, 13, .18); }
.contact {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 16px 24px 0;
  border-bottom: 1px solid rgba(11, 2, 13, .18); transition: color .2s;
}
a.contact:hover .contact__value { color: var(--accent); }
.contact__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.contact__value { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; word-break: break-word; transition: color .2s; }

.form { background: var(--bg); color: var(--text); padding: 36px; border-radius: var(--radius); display: grid; gap: 16px; }
.form__switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); }
.form__switch input { position: absolute; opacity: 0; pointer-events: none; }
.form__switch span {
  display: block; text-align: center; padding: 10px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--muted); transition: background .2s, color .2s;
}
.form__switch input:checked + span { background: var(--accent); color: #fff; }
.form__switch input:focus-visible + span { outline: 2px solid var(--accent-soft); }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; resize: vertical; transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #7d6a83; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--accent-soft); color: var(--bg); padding: 0 0 40px; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(11, 2, 13, .18); padding-top: 32px; font-size: 14px;
}
.footer__up { font-weight: 700; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .service:nth-child(2n) { border-right: 0; margin-right: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-120%); transition: transform .35s ease; font-size: 20px; color: var(--text);
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__burger { display: block; }
  .nav .btn--small { margin-left: auto; }

  .hero { padding: 70px 0 60px; }
  .hero__title { font-size: 11.5vw; }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { width: 100%; }

  .section { padding: 90px 0; }
  .section--tight { padding: 40px 0 90px; }
  .duo, .about { grid-template-columns: 1fr; }
  .about { gap: 24px; }
  .duo__card { padding: 30px 24px; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; margin-right: 0; padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .platform { min-height: 160px; }
  .contact-list { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .contacts { border-radius: 24px 24px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line__inner, .load-in, .split-words .w { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .scroll-hint span, .hero__glow { animation: none; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

/* Hero: lines slide up from a mask on page load */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line__inner { display: inline-block; transform: translateY(105%); }
.is-loaded .hero .line__inner { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 100ms); }
.load-in { opacity: 0; transform: translateY(20px); }
.is-loaded .load-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 200ms); }

/* Contacts title: same line effect, triggered on scroll (observer watches the <h2>, not the clipped lines) */
.reveal-lines .line__inner { transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.reveal-lines.is-visible .line__inner { transform: none; }

/* Rotating word in hero */
.rotator { display: inline-grid; vertical-align: top; }
.rotator__word {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(60%) rotateX(-40deg); filter: blur(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-60%) rotateX(40deg); filter: blur(8px); }

/* Hero glow slowly breathing */
.hero__glow { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15) translate(-4%, 4%); opacity: .75; } }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; pointer-events: none; }

/* Scroll hint */
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Cursor glow */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 44, 245, .16), transparent 65%);
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
}
.cursor-glow.is-on { opacity: 1; }
main, .footer { position: relative; z-index: 2; }
.nav { position: sticky; z-index: 100; } /* header always above content, so its links stay clickable */
section[id] { scroll-margin-top: 72px; }

/* Marquee — two rows, moved by JS (speed follows scroll velocity) */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--surface); display: grid; gap: 6px; }
.marquee__row { overflow: hidden; }
.marquee__track {
  display: flex; gap: 40px; width: max-content; white-space: nowrap; will-change: transform;
  font-size: clamp(28px, 4vw, 54px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1;
}
.marquee__track i { font-style: normal; color: var(--accent); }
.marquee__row--outline .marquee__track span { color: #6e5876; }

/* Big line that moves sideways while you scroll */
.bigline { overflow: hidden; padding: 20px 0 40px; }
.bigline__track {
  white-space: nowrap; will-change: transform;
  font-size: clamp(64px, 12vw, 190px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1;
  display: inline-block; color: #4a1f55; /* EDIT: color of the big moving line */
}

/* Section titles: words rise one by one */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split-words.is-visible .w > span { transform: none; }

/* Arrow nudges on hover */
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { transform: none; }
.link-arrow:hover span { transform: translateX(8px); }

/* Tilt cards (JS sets --rx / --ry) */
.tilt { transform-style: preserve-3d; }
.tilt.is-visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease); }
.platform.tilt.is-visible:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.platform__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--accent-soft); margin-bottom: 18px;
  transition: background .3s, color .3s, border-color .3s;
}
.platform:hover .platform__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.platform h3 { margin-top: auto; }
.platform p { margin-top: 10px; }

/* Steps: progress line fills as you scroll */
.steps__progress { height: 2px; background: var(--line); margin-top: 28px; border-radius: 2px; overflow: hidden; }
.steps__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Magnetic buttons (JS sets --mx / --my) */
.magnetic { transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s; }
.magnetic:hover { transform: translate(var(--mx, 0), var(--my, 0)) scale(1.03); }

/* Logo */
.logo__dot { color: var(--accent); }

.showreel { width: 100%; border-radius: var(--radius); margin-top: 80px; }

@media (max-width: 760px) {
  .scroll-hint { display: none; }
  .cursor-glow { display: none; }
  .bigline { padding: 0 0 10px; }
}

/* Form states */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field em { font-style: normal; opacity: .6; font-weight: 500; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #ff5c7a; }
.form__note a { color: var(--accent-soft); text-decoration: underline; }
.form__note.is-success { color: #7dffb2; font-weight: 600; font-size: 15px; }
.form__note.is-error { color: #ff8fa3; font-weight: 600; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Footer legal links */
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover, .footer__up:hover { color: var(--accent); }

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal { padding: 90px 0 120px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; }
.legal__date { color: var(--muted); margin: 18px 0 50px; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 44px 0 14px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0 0; }
.legal a { color: var(--accent-soft); text-decoration: underline; }
.legal strong { color: var(--text); }
.legal-page .footer { background: var(--surface); color: var(--text); padding-top: 0; }
.legal-page .footer__inner { border-color: var(--line); }
.legal ul + p { margin-top: 16px; }
