/* ============ IDGABOX design system ============ */
:root {
  --bg: #0a0410;
  --bg2: #150826;
  --ink: #f7ecf5;
  --muted: #b89cc8;
  --pink: #ff2ea6;
  --coral: #ff7a3c;
  --violet: #9d5cff;
  --cyan: #35e6ff;

  --display: 'Unbounded', sans-serif;
  --serif: 'Instrument Serif', serif;
  --body: 'Space Grotesk', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--pink); color: #fff; }

em { font-family: var(--serif); font-style: italic; }

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

h1, h2, h3 { font-family: var(--display); line-height: 1.05; }

/* ============ Loader ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 500ms var(--ease-out), visibility 500ms;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.04em;
}
.loader-word em {
  font-family: var(--display);
  font-style: normal;
  color: var(--pink);
  text-shadow: 0 0 24px rgba(255, 46, 166, 0.8);
}
.loader-bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.loader-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--coral));
  box-shadow: 0 0 12px rgba(255, 46, 166, 0.9);
  transition: width 200ms linear;
}
.loader-hint {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ Cursor glow ============ */
.cursor-glow {
  position: fixed;
  z-index: 90;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 46, 166, 0.10) 0%, rgba(157, 92, 255, 0.05) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 400ms ease;
}
body.has-mouse .cursor-glow { opacity: 1; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 300ms ease, backdrop-filter 300ms ease, box-shadow 300ms ease;
}
.nav.scrolled {
  background: rgba(10, 4, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 46, 166, 0.15);
}
.nav-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
}
.nav-logo em, .footer em {
  font-family: var(--display);
  font-style: normal;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 46, 166, 0.7);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 200ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--pink), #ff5e86);
  color: #fff;
  box-shadow: 0 4px 28px rgba(255, 46, 166, 0.45);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.btn-small { padding: 10px 20px; font-size: 13px; background: rgba(255, 46, 166, 0.14); border-color: rgba(255, 46, 166, 0.45); color: #ffd7ec; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 6px 40px rgba(255, 46, 166, 0.65); transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--pink); background: rgba(255, 46, 166, 0.08); }
  .btn-small:hover { background: rgba(255, 46, 166, 0.3); }
}
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* fallback if the 3D module never loads: the page still looks branded */
  background:
    radial-gradient(45% 40% at 30% 25%, rgba(255, 46, 166, 0.16), transparent 70%),
    radial-gradient(40% 35% at 75% 60%, rgba(157, 92, 255, 0.14), transparent 70%),
    var(--bg);
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 20px 60px;
}
.hero-inner::before {
  content: '';
  position: absolute;
  inset: -30px -90px;
  z-index: -1;
  background: radial-gradient(52% 58% at 50% 46%, rgba(10, 4, 16, 0.5), transparent 74%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #cdb6d6;
  text-shadow: 0 2px 14px rgba(10, 4, 16, 0.9);
  margin-bottom: 14px;
}
.hero-title {
  font-weight: 900;
  font-size: clamp(56px, 13vw, 168px);
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.hero-title .line { display: inline-block; }
.hero-title .glow {
  color: var(--pink);
  text-shadow:
    0 0 18px rgba(255, 46, 166, 0.85),
    0 0 70px rgba(255, 46, 166, 0.5);
  animation: neon-breathe 3.6s ease-in-out infinite;
}
@keyframes neon-breathe {
  0%, 100% { text-shadow: 0 0 18px rgba(255,46,166,.85), 0 0 70px rgba(255,46,166,.5); }
  50% { text-shadow: 0 0 26px rgba(255,46,166,1), 0 0 110px rgba(255,46,166,.7); }
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(18px, 2.4vw, 24px);
  color: #e3d0e6;
  text-shadow: 0 2px 18px rgba(10, 4, 16, 0.85);
}
.hero-sub em { color: var(--ink); font-size: 1.12em; }
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--pink));
  animation: scroll-pulse 2s var(--ease-in-out) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 46, 166, 0.25);
  border-bottom: 1px solid rgba(255, 46, 166, 0.25);
  background: linear-gradient(90deg, rgba(255,46,166,0.06), rgba(157,92,255,0.06));
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  color: rgba(247, 236, 245, 0.75);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Sections ============ */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 150px) clamp(20px, 4vw, 48px);
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 56px);
  max-width: 18ch;
}
.section-head h2 em { color: var(--pink); font-size: 1.1em; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* neon squiggle divider — the signature */
.squiggle {
  width: 200px;
  height: 38px;
  margin-bottom: 22px;
  overflow: visible;
}
.squiggle-path {
  stroke: var(--coral);
  stroke-width: 5;
  filter: drop-shadow(0 0 6px var(--coral)) drop-shadow(0 0 18px rgba(255, 122, 60, 0.6));
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 1.4s var(--ease-in-out) 150ms;
}
.reveal.in .squiggle-path { stroke-dashoffset: 0; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-copy .lead { font-size: 22px; margin-bottom: 18px; }
.about-copy strong { color: var(--pink); }
.about-copy p + p { margin-top: 14px; color: var(--muted); }
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(255, 46, 166, 0.07), rgba(157, 92, 255, 0.05));
}
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--ink);
  min-width: 3.4ch;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ Pillars ============ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  --accent: var(--pink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.pillar[data-accent="pink"] { --accent: var(--pink); }
.pillar[data-accent="violet"] { --accent: var(--violet); }
.pillar[data-accent="coral"] { --accent: var(--coral); }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 50px -12px var(--accent);
  }
}
.pillar:active { transform: scale(0.98); }
.pillar-icon {
  font-size: 34px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.pillar h3 { font-size: 20px; font-weight: 700; margin-top: 6px; }
.pillar p { color: var(--muted); font-size: 15.5px; flex: 1; }
.pillar-go {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============ Setup ============ */
.setup { overflow: visible; }
.setup-glow {
  position: absolute;
  inset: 10% -20% 10% -20%;
  background:
    radial-gradient(40% 50% at 20% 40%, rgba(255, 46, 166, 0.1), transparent 70%),
    radial-gradient(35% 45% at 80% 60%, rgba(157, 92, 255, 0.1), transparent 70%);
  pointer-events: none;
}
.setup-inner { position: relative; }
.setup-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.setup-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(21, 8, 38, 0.5);
}
.setup-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
}
.dot-pink { background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.dot-coral { background: var(--coral); box-shadow: 0 0 14px var(--coral); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.dot-violet { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.setup-list strong { font-size: 17px; display: block; margin-bottom: 4px; }
.setup-list p { color: var(--muted); font-size: 15px; }

/* ============ Brands ============ */
.nav-brands { color: var(--cyan) !important; }
.brands-card {
  text-align: center;
  padding: clamp(50px, 7vw, 80px) clamp(24px, 6vw, 80px);
  border-radius: 32px;
  border: 1px solid rgba(53, 230, 255, 0.3);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(53, 230, 255, 0.10), transparent 70%),
    linear-gradient(160deg, rgba(21, 8, 38, 0.9), rgba(10, 4, 16, 0.9));
}
.brands-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.brands-card h2 { font-size: clamp(28px, 4.8vw, 48px); font-weight: 700; }
.brands-card h2 em { color: var(--cyan); font-size: 1.1em; }
.brands-sub {
  margin-top: 16px;
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
}
.brands-card .cta-buttons { margin-top: 30px; }
.brands + .cta-final { padding-top: 0; }

/* ============ CTA final ============ */
.cta-card {
  text-align: center;
  padding: clamp(50px, 8vw, 90px) clamp(24px, 6vw, 80px);
  border-radius: 32px;
  border: 1px solid rgba(255, 46, 166, 0.35);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(255, 46, 166, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(21, 8, 38, 0.9), rgba(10, 4, 16, 0.9));
  box-shadow: 0 30px 80px -30px rgba(255, 46, 166, 0.35);
}
.cta-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.cta-card h2 { font-size: clamp(30px, 5.4vw, 54px); font-weight: 700; }
.cta-card h2 em { color: var(--pink); font-size: 1.1em; }
.cta-sub { margin-top: 16px; color: var(--muted); max-width: 46ch; margin-inline: auto; }
.cta-buttons {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 48px) 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.footer-note { font-family: var(--body); color: var(--muted); letter-spacing: 0.02em; }
.footer-links { display: flex; gap: 20px; }
.footer-mk { color: var(--muted); }
.footer a { color: var(--pink); transition: text-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer a:hover { text-shadow: 0 0 14px rgba(255, 46, 166, 0.8); }
}

/* ============ Reveals ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1 1 150px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .setup-list { grid-template-columns: 1fr; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-title .glow { animation: none; }
  .hero-scroll span { animation: none; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .squiggle-path { stroke-dashoffset: 0; transition: none; }
  .btn, .pillar { transition: none; }
}
