/* ============================================================
   Purpose Passion Media — professional dark / neon
   Black canvas, hot-pink & sky-blue neon accents, clean type.
   ============================================================ */
:root {
  --pink: #ff2fa4;
  --blue: #35c1ff;
  --bg: #08080c;
  --panel: #0f0f15;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f3f7;
  --muted: #a8a4b3;
  --radius: 18px;
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: 1.02rem; }

a { color: inherit; text-decoration: none; }

/* ---------- Accents ---------- */
.grad--pink { background: linear-gradient(100deg, var(--pink), #ff7ac8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--blue { background: linear-gradient(100deg, var(--blue), #8fe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.label--pink { color: var(--pink); }
.label--blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--pink), #b44ee0 55%, var(--blue));
  box-shadow: 0 0 24px rgba(255, 47, 164, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(255, 47, 164, 0.55); }
.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 24px rgba(53, 193, 255, 0.3); color: #fff; }
.btn--small { padding: 0.5rem 1.25rem; font-size: 0.88rem; }
.btn--big { font-size: clamp(1rem, 2.2vw, 1.25rem); padding: 1.05rem 2.3rem; margin-top: 1.6rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}
.nav.is-compact { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
}
.nav__logo-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-weight: 500; font-size: 0.95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color 0.2s ease; }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__toggle { display: none; font-size: 1.4rem; background: none; border: none; cursor: pointer; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5.5rem, 13vw, 10rem) clamp(1rem, 4vw, 3rem) clamp(4.5rem, 10vw, 8rem);
  text-align: center;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero__content { position: relative; max-width: 880px; margin: 0 auto; }
.hero__sub { max-width: 600px; margin: 1.6rem auto 2.4rem; font-size: 1.12rem; color: var(--muted); }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  pointer-events: none;
}
.hero__glow--pink { background: var(--pink); top: -180px; left: -140px; }
.hero__glow--blue { background: var(--blue); bottom: -200px; right: -140px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem); }
.section--alt { background: linear-gradient(rgba(255,255,255,0.015), rgba(255,255,255,0.015)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__inner { max-width: 1080px; margin: 0 auto; }
.section__inner--split {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.section__head { text-align: center; margin-bottom: 3.2rem; }
.section__lede { color: var(--muted); max-width: 640px; margin: 0.9rem auto 0; }
.section h2 { margin-bottom: 0.3rem; }

/* ---------- About ---------- */
.about__media { position: relative; }
.about__logo-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255, 47, 164, 0.25), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(53, 193, 255, 0.12);
}
#about p { color: var(--muted); margin-bottom: 1rem; }
#about h2 { margin-bottom: 1.2rem; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 30px color-mix(in srgb, var(--accent) 22%, transparent);
}
.card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Case study ---------- */
.browser {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #14141c;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: 1.2rem;
}
.browser:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 193, 255, 0.4);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65), 0 0 34px rgba(53, 193, 255, 0.16);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.browser__bar span:first-child { background: #ff5f57; }
.browser__bar span:nth-child(2) { background: #febc2e; }
.browser__bar span:nth-child(3) { background: #28c840; }
.browser__bar em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.7rem;
  font-family: var(--font-display);
}
.browser img { display: block; width: 100%; }
.browser-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.browser-row .browser { margin-bottom: 0; }
.case-link { color: var(--blue); border-bottom: 1px solid rgba(53, 193, 255, 0.4); }
.case-link:hover { color: #fff; }
.case-card { margin: 0; }
.case-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 34px rgba(53, 193, 255, 0.12);
}
.case-card figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.7rem;
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.case-text h3 { margin-bottom: 1.1rem; font-size: 1.3rem; }
.case-list { list-style: none; }
.case-list li {
  color: var(--muted);
  font-size: 0.97rem;
  padding: 0.75rem 0 0.75rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.case-list li:last-child { border-bottom: none; }
.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--pink), var(--blue));
  box-shadow: 0 0 10px rgba(255, 47, 164, 0.6);
}
.case-list li span { color: var(--text); font-weight: 600; }

/* ---------- Results ---------- */
.results { margin-top: 3.2rem; text-align: center; }
.results h3 { font-size: 1.3rem; margin-bottom: 1.6rem; }
.results__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
}
.result__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}
.result__label { color: var(--muted); font-size: 0.88rem; }

/* ---------- Contact ---------- */
.section--contact {
  text-align: center;
  background:
    radial-gradient(560px 300px at 20% 20%, rgba(255, 47, 164, 0.12), transparent 70%),
    radial-gradient(560px 300px at 80% 80%, rgba(53, 193, 255, 0.12), transparent 70%);
  border-top: 1px solid var(--line);
}
.socials { display: flex; gap: 0.9rem; justify-content: center; margin-top: 2rem; color: var(--muted); }
.socials a { font-weight: 600; color: var(--text); border-bottom: 2px solid var(--pink); padding-bottom: 2px; }
.socials a:nth-of-type(2) { border-color: var(--blue); }
.socials a:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1.6rem 1rem 2.2rem;
  font-size: 0.88rem;
}

/* ---------- Logo fly-through intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #050508;
  display: grid;
  place-items: center;
  perspective: 800px;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.intro.is-done { opacity: 0; pointer-events: none; }
.intro__logo {
  width: min(64vw, 400px);
  border-radius: 22px;
  opacity: 0;
  box-shadow: 0 0 70px rgba(255, 47, 164, 0.35), 0 0 130px rgba(53, 193, 255, 0.2);
}
.intro.is-playing .intro__logo {
  animation:
    logoPop 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards,
    logoFly 1.1s cubic-bezier(0.6, 0, 0.9, 0.4) 1.5s forwards;
}
@keyframes logoPop {
  from { opacity: 0; transform: scale(0.55) translateZ(-300px); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1) translateZ(0); filter: blur(0); }
}
@keyframes logoFly {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: scale(30); filter: blur(10px); }
}
.intro__skip {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(244, 243, 247, 0.4);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 12, 0.97);
    padding: 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }
  .section__inner--split { grid-template-columns: 1fr; }
  .about__media { max-width: 320px; margin: 0 auto; }
  .case-grid { grid-template-columns: 1fr; }
  .browser-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .intro { display: none; }
}
