/* =========================================================
   ZORAX AGENCY — single page
   Colors pulled from the brand deck:
   --band   = exact purple of the mockup images (#7E408D)
   --purple = heading purple
   ========================================================= */
:root {
  --black: #000;
  --ink: #0b0710;
  --panel: #120b18;
  --band: #7e408d;
  --purple: #9446c0;
  --purple-hi: #b36ae0;
  --purple-deep: #4a1f5a;
  --white: #fff;
  --muted: #bfb4c8;
  --line: rgba(255, 255, 255, .12);
  --radius: 14px;
  --maxw: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.purple { color: var(--purple); }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--purple-hi);
  margin-bottom: 14px;
}
.script { font-family: var(--script); font-weight: 400; color: var(--white); }
.h2 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 900; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-top: 22px; }
.lead strong { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--band);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border: 2px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--white);
  font: 700 .95rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
  box-shadow: 0 10px 30px -10px rgba(148, 70, 192, .7);
}
.btn:hover { transform: translateY(-2px); background: var(--purple); border-color: var(--purple); box-shadow: 0 16px 40px -10px rgba(179, 106, 224, .8); }
.btn:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 3px; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); box-shadow: none; }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--dark { --bg: var(--black); box-shadow: none; }
.btn--dark:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: .78rem; }
.btn--block { width: 100%; padding: 17px; font-size: 1rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0, 0, 0, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 0 10px rgba(179,106,224,.55)); }
.brand b { color: var(--purple-hi); font-weight: 900; margin-left: 6px; }
.nav__links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: .92rem; }
.nav__links a:not(.btn) { position: relative; opacity: .85; transition: opacity .2s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--purple-hi); transform: scaleX(0); transition: transform .25s;
}
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--white); transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (tape cover from the deck) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(120% 90% at 75% 40%, #8a4a9c 0%, var(--band) 40%, #5a2a68 100%);
  padding: 110px 0 70px;
}
.tapes { position: absolute; inset: 0; }
.tape {
  position: absolute; left: -25%; width: 150%;
  background: var(--black);
  padding: 10px 0;
  box-shadow: 0 18px 30px -8px rgba(0,0,0,.55);
  overflow: hidden;
}
.tape__track {
  display: flex; width: max-content;
  font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: .01em;
  white-space: nowrap; color: var(--white);
  animation: tape 38s linear infinite;
}
.tape__track span { padding-right: .4em; }
.t1 { top: 6%;  transform: rotate(-9deg); }
.t2 { top: 34%; transform: rotate(-32deg); left: -40%; }
.t3 { top: 50%; transform: rotate(10deg); }
.t4 { top: 72%; transform: rotate(-6deg); }
.t5 { top: 90%; transform: rotate(-24deg); }
.t2 .tape__track, .t4 .tape__track { animation-direction: reverse; animation-duration: 46s; }
.t5 .tape__track { animation-duration: 30s; }
@keyframes tape { to { transform: translateX(-50%); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 14%),
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.86) 34%, rgba(0,0,0,.35) 62%, rgba(0,0,0,0) 80%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%);
}
.hero__phoenix {
  position: absolute; right: 4%; top: 50%;
  width: min(36vw, 470px);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 40px rgba(200, 120, 255, .55)) drop-shadow(0 20px 40px rgba(0,0,0,.6));
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 16px)); }
}
.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.8rem, 7.4vw, 6rem); font-weight: 900; }
.hero__title span { display: block; }
.hero__script {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin: -.35em 0 0 .6em;
  text-shadow: 0 0 18px rgba(179,106,224,.8), 0 2px 0 var(--purple-deep);
  transform: rotate(-4deg); transform-origin: left;
}
.hero__lead { color: #ddd2e6; font-size: 1.08rem; max-width: 520px; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- sections ---------- */
.section { position: relative; padding: 120px 0; overflow: hidden; }
.section--tight { padding: 40px 0 100px; }
.section-head { margin-bottom: 56px; }
.section-head .lead { max-width: 640px; }

/* phoenix wallpaper (same as the right side of the deck pages) */
.pattern {
  position: absolute; top: 0; bottom: 0; right: 0; width: 46%;
  /* two offset layers = staggered "brick" wallpaper like the deck */
  background:
    url("assets/phoenix-sm.png") 0 0 / 104px 140px repeat,
    url("assets/phoenix-sm.png") 52px 70px / 104px 140px repeat;
  opacity: .55;
  filter: saturate(.9) brightness(.8);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  pointer-events: none;
}
.pattern-section--left .pattern {
  right: auto; left: 0;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(270deg, transparent 0%, #000 55%);
}
.split { position: relative; min-height: 380px; display: flex; align-items: center; }
.split__text { max-width: 620px; }
.script--under {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin: -.45em 0 0 1.2em;
  transform: rotate(-4deg); transform-origin: left;
  text-shadow: 0 0 14px rgba(179,106,224,.8);
}

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(126,64,141,.18), rgba(0,0,0,0) 60%), var(--ink);
  transition: transform .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(179,106,224,.55); }
.pillar h3 { font-size: 1.75rem; font-weight: 900; margin-bottom: 18px; }
.pillar p { color: var(--muted); font-size: .96rem; }

/* strategies */
.strategies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.strategy {
  position: relative; overflow: hidden;
  padding: 34px 30px 36px;
  border-radius: var(--radius);
  background: var(--panel);
  border-top: 4px solid var(--band);
}
.strategy__num {
  position: absolute; top: 10px; right: 18px;
  font-size: 4.6rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(179,106,224,.35);
}
.strategy h3 { font-size: 1.35rem; font-weight: 800; margin: 10px 0 14px; max-width: 75%; }
.strategy p { color: var(--muted); font-size: .95rem; }

/* program */
.program { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.pattern-section--left .program { grid-template-columns: .95fr 1.05fr; }
.pattern-section--left .program > :first-child { grid-column: 2; grid-row: 1; }
.pattern-section--left .program > :last-child { grid-column: 1; grid-row: 1; }
.program__card {
  padding: 40px 36px;
  border-radius: 20px;
  background: rgba(10, 5, 14, .86);
  border: 1px solid rgba(179,106,224,.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px -30px rgba(126,64,141,.8);
}
.program__card h3 { font-size: 2rem; font-weight: 900; margin-bottom: 16px; }
.program__card p { color: var(--muted); }
.program__card .btn { margin-top: 26px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--band) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* services */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative;
  padding: 26px 20px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid var(--line);
  transition: transform .3s, background .3s, border-color .3s;
}
.service:hover { transform: translateY(-5px); border-color: var(--band); background: linear-gradient(170deg, rgba(126,64,141,.35), var(--ink) 70%); }
.service__num { display: block; font-weight: 900; font-size: .9rem; color: var(--purple-hi); letter-spacing: .1em; }
.service h3 { font-size: 1.02rem; font-weight: 800; margin: 12px 0 10px; text-transform: uppercase; overflow-wrap: anywhere; }
.service p { color: var(--muted); font-size: .92rem; }

/* ---------- results: band rows ----------
   Each mockup image has a purple band baked in.
   The row paints the same purple (#7E408D) at the same % height behind the
   image so the band runs seamlessly to both screen edges at any width. */
.results { padding: 120px 0 60px; background: var(--black); }
.result { margin-bottom: 70px; }
.result__title { font-size: clamp(1.6rem, 3.8vw, 2.6rem); font-weight: 900; margin-bottom: 18px; }
.band-row {
  --t: 20%; --b: 55%;
  display: flex; justify-content: center;
  background: linear-gradient(180deg,
    var(--black) var(--t), var(--band) var(--t),
    var(--band) var(--b), var(--black) var(--b));
  line-height: 0;
}
/* soft side fade: only the floor glow fades out — the band behind is the same colour */
.band-row img {
  display: block; width: 100%; max-width: 1140px; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* CTA strip — same purple band */
.cta-strip { background: var(--band); padding: 54px 0; }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; }
.cta-strip h2 span { color: var(--black); }

/* ---------- contact form ---------- */
.contact { background: radial-gradient(80% 60% at 20% 20%, rgba(126,64,141,.25), transparent 70%), var(--black); }
.contact .pattern { opacity: .32; }
.contact__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.contact__intro { position: sticky; top: 110px; }

.form {
  padding: 38px 34px;
  border-radius: 20px;
  background: rgba(14, 8, 20, .88);
  border: 1px solid rgba(179,106,224,.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 100px -40px rgba(126,64,141,.9);
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 8px; padding: 0; }
.field i { font-style: normal; color: var(--purple-hi); }
.hint { color: var(--muted); font-size: .86rem; margin: -4px 0 8px; }

.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--white);
  font: 400 .98rem/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 96px; }
.form ::placeholder { color: rgba(255,255,255,.4); }
.form select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b36ae0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.form select:invalid { color: rgba(255,255,255,.4); }
.form select option { background: #1a1020; color: var(--white); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--purple-hi);
  background: rgba(126,64,141,.12);
  box-shadow: 0 0 0 3px rgba(179,106,224,.25);
}

.phone { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }

.choices { display: grid; gap: 10px; }
.choices--grid { grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; display: block; margin: 0 !important; font-weight: 500 !important; font-size: .92rem !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transition: border-color .2s, background .2s;
  line-height: 1.3;
}
.choice span::before {
  content: ""; flex: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 5px;
  transition: background .2s, border-color .2s;
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice:hover span { border-color: rgba(179,106,224,.6); }
.choice input:checked + span { border-color: var(--purple-hi); background: rgba(126,64,141,.28); }
.choice input:checked + span::before {
  border-color: var(--purple-hi);
  background: var(--purple-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.choice input[type="radio"]:checked + span::before { background: var(--purple-hi); box-shadow: inset 0 0 0 3px #1a1020; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(179,106,224,.35); }

.err { display: none; color: #ff7a8a; font-size: .85rem; margin-top: 7px; }
.err::before { content: "● "; font-size: .7em; vertical-align: 2px; }
.field.invalid .err { display: block; }
.field.invalid input:not([type="checkbox"]):not([type="radio"]),
.field.invalid select,
.field.invalid .choice span { border-color: #ff7a8a; }

.spinner {
  display: none; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { margin-top: 14px; font-size: .92rem; text-align: center; min-height: 1.4em; }
.form__status.error { color: #ff7a8a; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal__card {
  max-width: 420px; text-align: center;
  padding: 40px 32px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid rgba(179,106,224,.45);
  box-shadow: 0 40px 100px -30px rgba(126,64,141,.9);
}
.modal__card img { width: 70px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 0 20px rgba(179,106,224,.7)); }
.modal__card h3 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.modal__card p { color: var(--muted); margin-bottom: 24px; }
@keyframes fade { from { opacity: 0; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 50px 0 34px; background: var(--black); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__script { font-size: 2rem; color: var(--purple-hi); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .92rem; }
.footer__links a:hover { color: var(--white); }
.footer__copy { color: rgba(255,255,255,.45); font-size: .82rem; margin-top: 8px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.pillars .reveal:nth-child(2), .strategies .reveal:nth-child(2) { transition-delay: .1s; }
.pillars .reveal:nth-child(3), .strategies .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 24px;
    background: rgba(0,0,0,.96); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .35s, opacity .35s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; }
  .nav.menu-open { background: rgba(0,0,0,.96); }

  .pillars, .strategies { grid-template-columns: 1fr; }
  .program, .pattern-section--left .program { grid-template-columns: 1fr; gap: 36px; }
  .pattern-section--left .program > :first-child,
  .pattern-section--left .program > :last-child { grid-column: auto; grid-row: auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__intro { position: static; }
  .pattern { width: 60%; opacity: .3; }

  .hero__phoenix { width: 62vw; right: -12vw; opacity: .45; }
  .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 14%), linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.7) 60%, rgba(0,0,0,.3) 100%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%); }
}
@media (max-width: 600px) {
  .container, .nav__inner { padding-left: 16px; padding-right: 16px; }
  .section { padding: 84px 0; }
  .section--tight { padding: 10px 0 70px; }
  .results { padding-top: 84px; }
  .result { margin-bottom: 48px; }
  .field-row, .choices--grid { grid-template-columns: 1fr; }
  .form { padding: 26px 18px; }
  .phone { grid-template-columns: 96px 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .cta-strip__inner { justify-content: center; text-align: center; }
  .pillar, .strategy, .program__card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
