/* ============================================================
   Quazrr — Performance marketing landing page
   Tokens are lifted verbatim from the "Quazrr Landing Final"
   prototype so the desktop layout matches pixel-for-pixel.
   ============================================================ */

:root {
  --bg: #0E0E12;
  --ink: #F4F2EC;
  --muted: #A7A5A0;
  --faint: #57565e;

  --lime: #C6FF3D;
  --magenta: #FF3DA5;
  --cyan: #3DE0FF;

  --card: #17171E;
  --card-border: #26262f;
  --hairline: #3a3a45;

  --container: 1280px;
  --gutter: 56px;

  --radius-btn: 12px;
  --radius-card: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: var(--radius-btn);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--lime { background: var(--lime); color: var(--bg); padding: 12px 22px; border-radius: 10px; font-size: 16px; }
.btn--ghost { border: 1px solid var(--hairline); color: var(--ink); font-weight: 600; background: transparent; }
.btn--lg { padding: 17px 30px; font-size: 17px; }
.btn--ghost.btn--lg { padding: 16px 28px; }
.btn--dark { background: var(--bg); color: var(--lime); padding: 16px 30px; }

.accent-lime { color: var(--lime); }
.accent-magenta { color: var(--magenta); }
.accent-cyan { color: var(--cyan); }

/* ---------- Nav ---------- */
.nav {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.02em;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--lime);
  display: inline-block;
  transform: rotate(45deg);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 16px;
  font-weight: 500;
}
.nav__links .btn--lime { font-weight: 700; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { padding-top: 70px; padding-bottom: 90px; position: relative; }
.hero__content { max-width: 820px; position: relative; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__glow--magenta {
  top: -60px; right: -40px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 70%);
  opacity: .5;
}
.hero__glow--cyan {
  bottom: -40px; left: 40%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  opacity: .35;
}

.badge {
  display: inline-block;
  border: 1px solid var(--hairline);
  color: var(--lime);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__title {
  font-weight: 700;
  font-size: 92px;
  line-height: .96;
  letter-spacing: -.03em;
  margin: 0 0 24px;
}
.hero__lede {
  font-size: 22px;
  line-height: 1.5;
  max-width: 580px;
  margin: 0 0 34px;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stats {
  display: flex;
  gap: 56px;
  margin-top: 60px;
}
.stat__num { font-size: 48px; font-weight: 700; }
.stat__label { color: var(--muted); font-size: 15px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--lime);
  color: var(--bg);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 56px;
  font-weight: 700;
  font-size: 22px;
  animation: qz-marquee 18s linear infinite;
}
@keyframes qz-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section--flush { padding-top: 0; }
.section__title {
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.section__title--md { font-size: 48px; margin-bottom: 48px; }
.section__lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 48px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 34px;
}
.card--feature {
  background: linear-gradient(135deg, var(--magenta), #7A2Fff);
  border: none;
}
.card__icon { font-size: 32px; margin-bottom: 16px; }
.card__title { font-size: 23px; margin: 0 0 8px; }
.card__text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card--feature .card__text { color: inherit; opacity: .9; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step { border-top: 2px solid var(--lime); padding-top: 20px; }
.step--lime { border-top-color: var(--lime); }
.step--magenta { border-top-color: var(--magenta); }
.step--cyan { border-top-color: var(--cyan); }
.step__head { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.step__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.quote {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 42px;
  margin: 0;
}
.quote__text {
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 24px;
}
.quote__by { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-block;
  flex: none;
}
.quote__avatar--lime { background: var(--lime); }
.quote__avatar--magenta { background: var(--magenta); }
.quote__name { display: block; font-weight: 700; }
.quote__role { display: block; font-size: 14px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: var(--bg);
  border-radius: 28px;
  padding: 80px var(--gutter);
  text-align: center;
}
.cta__glow {
  position: absolute;
  top: -40px; right: 60px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--magenta);
  opacity: .4;
}
.cta__title {
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  position: relative;
}
.cta__text {
  font-size: 20px;
  margin: 0 0 32px;
  position: relative;
}
.cta__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
}
.cta__input {
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 24px;
  font-size: 16px;
  width: 340px;
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
}
.footer__brand { font-weight: 700; font-size: 24px; }
.footer__links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.footer__copy { font-size: 14px; color: var(--faint); }

/* ============================================================
   Motion — entrances, ambient drift, hover
   All effects are opt-in via the `.js` class the script adds, so
   the page is fully visible with JS disabled, and every effect is
   switched off under prefers-reduced-motion (see block at bottom).
   ============================================================ */

/* Scroll-reveal entrances */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger children of a group (cards, steps, stats) */
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }

/* Ambient drifting hero glows */
.hero__glow--magenta { animation: qz-float-a 13s ease-in-out infinite; }
.hero__glow--cyan { animation: qz-float-b 16s ease-in-out infinite; }
@keyframes qz-float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-26px, 22px); }
}
@keyframes qz-float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -20px); }
}

/* Hover lifts */
.card, .quote {
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover, .quote:hover {
  transform: translateY(-4px);
  border-color: var(--hairline);
}
.card--feature:hover { border-color: transparent; }

/* ============================================================
   Responsive
   ============================================================ */

/* ---------- <= 1024px ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }

  .hero__title { font-size: 68px; }
  .hero__lede { font-size: 20px; }

  .section__title { font-size: 42px; }
  .section__title--md { font-size: 38px; }
  .cta__title { font-size: 48px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .stats { gap: 40px; }
  .stat__num { font-size: 42px; }
}

/* ---------- <= 720px ---------- */
@media (max-width: 720px) {
  :root { --gutter: 24px; }

  /* Collapsible mobile nav */
  .nav { position: relative; flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 8px; }
  .nav__links .btn--lime { text-align: center; margin-top: 6px; }

  .hero__inner { padding-top: 48px; padding-bottom: 64px; }
  .hero__title { font-size: 46px; }
  .hero__lede { font-size: 18px; }
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; }

  .stats { flex-wrap: wrap; gap: 28px 40px; margin-top: 44px; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .section__title { font-size: 34px; }
  .section__title--md { font-size: 32px; margin-bottom: 32px; }
  .section__lede { font-size: 17px; margin-bottom: 32px; }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }

  .quote { padding: 32px; }
  .quote__text { font-size: 22px; }

  .cta { padding: 56px 28px; }
  .cta__title { font-size: 36px; }
  .cta__text { font-size: 18px; }
  .cta__form { flex-direction: column; align-items: stretch; }
  .cta__input { width: 100%; }
  .cta__form .btn--dark { width: 100%; }

  .footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow--magenta, .hero__glow--cyan { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .nav__toggle-bar { transition: none; }
  .card, .quote { transition: none; }
  .card:hover, .quote:hover { transform: none; }
  /* Reveal content immediately — never leave it hidden */
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }

  /* Global reset for incidental animation... */
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }

  /* ...but the services marquee is a deliberate, requested exception —
     it keeps scrolling (gentler than default) so it always shows motion.
     Higher specificity than the universal reset above, so it wins. */
  .marquee__track {
    animation-name: qz-marquee !important;
    animation-duration: 30s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
}
