/* =========================================================
   Kookie Projects Digital — styles.css
   Dark, premium, glassmorphic. Gradient accents violet→pink→amber.
   ========================================================= */

:root {
  --bg: #0B0B1A;
  --bg-2: #0F0E22;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ECECF5;
  --text-dim: #9DA3C7;
  --text-mute: #6B7095;

  --violet: #8B5CF6;
  --pink: #EC4899;
  --amber: #F59E0B;
  --mint: #22D3EE;
  --green: #34D399;

  --grad: linear-gradient(120deg, var(--violet), var(--pink) 50%, var(--amber));
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,.16), rgba(236,72,153,.16) 50%, rgba(245,158,11,.16));

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -30px rgba(139, 92, 246, .45);

  --container: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle global ambient gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(50% 40% at 90% 10%, rgba(236, 72, 153, .14), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(245, 158, 11, .08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-dim); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 18px;
}
.eyebrow--light { background: rgba(255,255,255,.08); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: #160a2e;
  box-shadow: 0 10px 30px -8px rgba(236, 72, 153, .55);
}
.btn--primary:hover { transform: translateY(-2px); animation: shift 3s linear infinite; box-shadow: 0 16px 40px -8px rgba(236, 72, 153, .7); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--text-dim); background: var(--surface-2); }
@keyframes shift { 0% { background-position: 0 0; } 100% { background-position: 160% 0; } }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 26, .6);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(11, 11, 26, .82); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark { border-radius: 10px; }
.brand__text { font-size: 1.05rem; }
.brand__accent { color: var(--pink); margin: 0 4px; }

.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:not(.btn):hover { color: var(--text); background: var(--surface); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 14s ease-in-out infinite; }
.blob--violet { width: 460px; height: 460px; background: var(--violet); top: -120px; left: -80px; }
.blob--pink   { width: 420px; height: 420px; background: var(--pink);   top: -60px; right: -60px; animation-delay: -4s; }
.blob--amber  { width: 360px; height: 360px; background: var(--amber);  bottom: -160px; left: 40%; animation-delay: -8s; opacity: .35; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-24px) scale(1.06); } }

.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .04; mix-blend-mode: overlay;
}

.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__title { margin: 6px 0 18px; }
.hero__sub { font-size: 1.15rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero__meta { display: flex; align-items: center; gap: 12px; color: var(--text-mute); font-size: .92rem; }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1.1rem; }

/* Floating metric card */
.hero__card { display: flex; justify-content: center; }
.float-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-card__head { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-dim); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.float-card__title { font-weight: 600; }
.float-card__pill { margin-left: auto; font-weight: 800; color: var(--green); background: rgba(52,211,153,.12); padding: 3px 10px; border-radius: 999px; }
.float-card__metric { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 8px; }
.float-card__metric .num { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-card__metric .lbl { color: var(--text-dim); font-size: .92rem; }
.spark { margin: 8px 0 14px; }
.spark svg { width: 100%; height: 70px; display: block; }
.float-card__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.float-card__row div { display: flex; flex-direction: column; font-size: .8rem; color: var(--text-mute); }
.float-card__row strong { color: var(--text); font-size: 1rem; }

/* ---------------- Strip ---------------- */
.strip { padding: 36px 0; border-block: 1px solid var(--border); background: rgba(255,255,255,.015); }
.strip__label { text-align: center; color: var(--text-mute); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.strip__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 48px; align-items: center; }
.strip__logo { color: var(--text-dim); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; opacity: .75; transition: opacity .2s ease, color .2s ease; }
.strip__logo:hover { opacity: 1; color: var(--text); }

/* ---------------- Sections ---------------- */
.section { padding: 100px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.02), transparent); }
.section--cta {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(236,72,153,.14), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(139,92,246,.16), transparent 60%);
  border-block: 1px solid var(--border);
}
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head p { font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow); }

/* Services */
.service__icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  margin-bottom: 16px;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 8px; }
.service p { margin-bottom: 14px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--light li { color: var(--text); }

/* ---------------- Process timeline ---------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 28px; left: 4%; right: 4%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.step { text-align: left; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  margin-bottom: 18px;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.step:nth-child(1) .step__num { color: var(--violet); }
.step:nth-child(2) .step__num { color: var(--pink); }
.step:nth-child(3) .step__num { color: var(--amber); }
.step:nth-child(4) .step__num { color: var(--mint); }
.step h3 { margin-bottom: 6px; }

/* ---------------- Stats ---------------- */
.stats { padding: 70px 0; border-block: 1px solid var(--border); background: rgba(255,255,255,.02); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat__num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__lbl { color: var(--text-dim); font-size: .98rem; margin-top: 6px; }

/* ---------------- Case cards ---------------- */
.case__tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); padding: 4px 10px; border: 1px solid rgba(34,211,238,.3); border-radius: 999px; margin-bottom: 12px; }
.case h3 { margin-bottom: 8px; }
.case__metric {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 10px; margin: 6px 8px 0 0;
}
.case__metric span { font-weight: 800; color: var(--text); }

/* ---------------- Quotes ---------------- */
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.quote blockquote::before { content: "“"; font-size: 2.4rem; line-height: 0; color: var(--pink); vertical-align: -0.4em; margin-right: 4px; }
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { color: var(--text); }
.quote figcaption span { color: var(--text-mute); font-size: .9rem; }

/* ---------------- Pricing ---------------- */
.plan { display: flex; flex-direction: column; }
.plan__price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 4px; }
.plan__price span { font-size: 1rem; color: var(--text-mute); font-weight: 600; }
.plan__blurb { min-height: 48px; }
.plan .ticks { margin: 8px 0 20px; flex: 1; }
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-glow);
}
.plan__badge {
  position: absolute; top: -12px; right: 22px;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); color: #160a2e;
  padding: 5px 12px; border-radius: 999px;
}

/* ---------------- Contact ---------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__copy h2 { margin-bottom: 16px; }

.contact__form { display: grid; gap: 14px; box-shadow: var(--shadow-glow); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field .opt { color: var(--text-mute); font-weight: 500; }
.field input, .field textarea {
  font: inherit; color: var(--text);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(236,72,153,.18);
  background: rgba(0,0,0,.35);
}
.field.invalid input, .field.invalid textarea { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.15); }
.field__err { color: #f87171; font-size: .82rem; min-height: 1em; }
.form__status { margin: 4px 0 0; font-size: .92rem; min-height: 1.2em; text-align: center; }
.form__status.ok { color: var(--green); }
.form__status.err { color: #f87171; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------------- Footer ---------------- */
.footer { padding: 70px 0 30px; border-top: 1px solid var(--border); background: rgba(0,0,0,.2); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { color: var(--text-mute); margin-top: 10px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 6px; }
.footer__col a { color: var(--text-dim); font-size: .95rem; transition: color .15s ease; }
.footer__col a:hover { color: var(--text); }
.footer__social { display: flex; gap: 10px; margin-top: 8px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 700; color: var(--text);
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.footer__social a:hover { transform: translateY(-2px); border-color: var(--pink); color: var(--pink); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: .88rem;
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,11,26,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px; transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 16px; border-radius: 10px; }
  .nav__links a:not(.btn):hover { background: var(--surface); }
  .nav__toggle { display: flex; }

  .grid--3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 56px 0 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { justify-content: flex-start; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .blob, .float-card, .btn--primary:hover { animation: none !important; }
}

/* =========================================================
   v2 — "wow" components
   preloader, custom cursor, scroll progress, 3D hero,
   marquee, tilt/spotlight, scroll cue
   ========================================================= */

/* ----- Preloader ----- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(80% 80% at 50% 40%, #14112e, #0B0B1A 70%);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader--done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: grid; place-items: center; gap: 22px; width: min(86vw, 420px); }
.preloader__logo svg { filter: drop-shadow(0 8px 30px rgba(236,72,153,.4)); }
.pre-ring { stroke-dasharray: 180; stroke-dashoffset: 0; transform-origin: 32px 32px; animation: prering 2s linear infinite; }
@keyframes prering { from { transform: rotate(0); stroke-dashoffset: 0; } 50% { stroke-dashoffset: 140; } to { transform: rotate(360deg); stroke-dashoffset: 0; } }
.preloader__bar { width: 100%; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.preloader__bar > span { display: block; height: 100%; width: 0%; background: var(--grad); transition: width .2s ease; }
.preloader__count { font-weight: 800; font-size: 2rem; letter-spacing: -.02em; }
.preloader__pct { color: var(--text-mute); font-size: 1rem; margin-left: 2px; }
.preloader__word { font-size: .7rem; letter-spacing: .4em; color: var(--text-mute); }
/* JS animates the count number; the bar width follows via a style hook */
.preloader:not(.preloader--done) #preBar { width: var(--p, 0%); }

/* ----- Scroll progress ----- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad);
}

/* ----- Custom cursor ----- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9000; border-radius: 50%; }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(236,72,153,.7);
  transition: width .2s ease, height .2s ease, margin .2s ease, background .2s ease, border-color .2s ease;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); }
body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor input, body.has-custom-cursor textarea { cursor: none; }
body.cursor--hover .cursor { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(236,72,153,.12); border-color: rgba(236,72,153,.9); }
body.cursor--text .cursor { width: 4px; height: 26px; border-radius: 2px; margin: -13px 0 0 -2px; background: var(--text); border: none; }

/* hide on touch / no-fine-pointer */
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ----- Hero 3D canvas ----- */
.hero { position: relative; overflow: hidden; }
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: auto; /* orb reacts to pointer */
}
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-canvas--off { display: none; }
.hero-fallback {
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 70vw; max-width: 720px; aspect-ratio: 1; z-index: 0;
  background: radial-gradient(circle at 40% 40%, rgba(139,92,246,.5), transparent 60%),
              radial-gradient(circle at 65% 55%, rgba(236,72,153,.5), transparent 60%),
              radial-gradient(circle at 50% 50%, rgba(245,158,11,.35), transparent 60%);
  filter: blur(30px); opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.hero-fallback--on { opacity: .9; }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { position: relative; z-index: 2; }

/* gradient title shimmer */
.hero__title .gradient-text { background-size: 200% auto; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-mute);
  z-index: 3;
}
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--text-mute), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--text); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }

/* ----- Marquee ----- */
.marquee { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); padding: 22px 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span { font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; padding: 0 28px; color: transparent; -webkit-text-stroke: 1px var(--text-dim); }
.marquee__group span:first-child { -webkit-text-stroke: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.marquee__dot { color: var(--pink) !important; -webkit-text-stroke: 0 !important; font-size: 1rem !important; padding: 0 6px !important; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.no-marquee .marquee__track { animation: none; }

/* ----- 3D tilt + spotlight on cards ----- */
.tilt {
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.tilt:hover { box-shadow: 0 30px 70px -28px rgba(139,92,246,.5); }
/* spotlight overlay follows pointer via --mx/--my set by JS */
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(236,72,153,.16), transparent 60%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* ----- Magnetic base ----- */
.magnetic { transition: transform .2s cubic-bezier(.2,.8,.2,1); will-change: transform; }

/* when reduced motion, neutralize the fancy transforms */
@media (prefers-reduced-motion: reduce) {
  .tilt, .magnetic { transform: none !important; }
  .hero__title .gradient-text, .marquee__track, .pre-ring { animation: none !important; }
  .hero__scroll-line::after { animation: none !important; }
}
