:root {
  --brand-start: #D6006E;
  --brand-end: #F2A900;
  --wordmark-dark: #2B2B2B;
  --canvas: #121117;
  --surface: #1C1B23;
  --text: #F5F4F7;
  --muted: #B5B2C0;
  --maxw: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Grain texture overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 1.05rem;
  color: var(--text);
}

.header-contact {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 244, 247, .14);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-contact:hover,
.header-contact:focus-visible {
  color: var(--text);
  border-color: rgba(245, 244, 247, .4);
  background: rgba(245, 244, 247, .04);
}

.header-contact:focus-visible {
  outline: 2px solid var(--brand-start);
  outline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 9vw, 110px) clamp(20px, 5vw, 48px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

/* Drifting gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}

.orb-a {
  width: min(440px, 80vw);
  height: min(440px, 80vw);
  background: radial-gradient(circle, var(--brand-start), transparent 70%);
  top: -6%;
  left: 50%;
  transform: translateX(-60%);
  animation: drift-a 16s ease-in-out infinite;
}

.orb-b {
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  background: radial-gradient(circle, var(--brand-end), transparent 70%);
  bottom: -4%;
  right: 50%;
  transform: translateX(60%);
  animation: drift-b 18s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translateX(-60%) translateY(0); }
  50%       { transform: translateX(-48%) translateY(28px); }
}

@keyframes drift-b {
  0%, 100% { transform: translateX(60%) translateY(0); }
  50%       { transform: translateX(48%) translateY(-26px); }
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 244, 247, .12);
  background: rgba(255, 255, 255, .02);
  margin-bottom: 38px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-start);
  flex-shrink: 0;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(214, 0, 110, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(214, 0, 110, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(214, 0, 110, 0);   }
}

/* Logo lockup */
.logo-lockup {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}

.logo-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 0, 110, .4), rgba(242, 169, 0, .16) 50%, transparent 72%);
  filter: blur(30px);
  z-index: -1;
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: .7; transform: translateX(-50%) scale(1);    }
  50%       { opacity: 1;  transform: translateX(-50%) scale(1.12); }
}

.logo-mark {
  width: clamp(86px, 18vw, 130px);
  height: auto;
  filter: drop-shadow(0 18px 38px rgba(214, 0, 110, .35));
}

/* "MISCHIEF" wordmark below the M mark — brand gradient echoes the mark */
.logo-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: .28em;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  padding-left: .28em; /* compensate for letter-spacing trailing gap */
  background: linear-gradient(110deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Headline */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.06;
  font-size: clamp(2.1rem, 7.5vw, 3.7rem);
  margin: 0 auto 18px;
  max-width: 14ch;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 44ch;
  line-height: 1.6;
}

/* Notify form */
.notify {
  max-width: 480px;
  margin: 0 auto;
}

.notify-row {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(245, 244, 247, .1);
  flex-wrap: wrap;
}

.notify-input {
  flex: 1 1 180px;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: 9px;
}

.notify-input::placeholder { color: #75727f; }
.notify-input:focus { outline: none; }
.notify-input:focus-visible {
  outline: 2px solid var(--brand-start);
  outline-offset: 1px;
}

.notify-btn {
  flex: 0 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .02em;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 9px;
  background: linear-gradient(100deg, var(--brand-start), var(--brand-end));
  transition: opacity .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(214, 0, 110, .32);
  min-height: 44px;
}

.notify-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(214, 0, 110, .44);
}

.notify-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.notify-btn:active { transform: translateY(0); }

.notify-msg {
  min-height: 1.2em;
  margin: 12px 2px 0;
  font-size: .86rem;
  text-align: left;
  color: var(--muted);
}

.notify-msg.error { color: #ff7aa8; }

.notify-msg.ok {
  color: transparent;
  background: linear-gradient(100deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600;
}

/* Progress shimmer */
.progress {
  margin: 46px auto 0;
  width: min(220px, 60%);
  height: 3px;
  border-radius: 999px;
  background: rgba(245, 244, 247, .08);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  animation: slide 3.4s ease-in-out infinite;
}

@keyframes slide {
  0%        { transform: translateX(-110%); }
  55%, 100% { transform: translateX(160%);  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 28px 20px 34px;
  border-top: 1px solid rgba(245, 244, 247, .06);
}

.copyright {
  margin: 0;
  font-size: .82rem;
  color: #7e7b8a;
  letter-spacing: .02em;
}

/* ==========================================================
   Reveal animations
   Elements are VISIBLE by default (no-JS / pre-JS fallback).
   The .js-ready class is added by app.js on load; only then
   do we hide elements and animate them back in.
   ========================================================== */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.js-ready .reveal.in {
  opacity: 1;
  transform: none;
}

/* Reduced motion — disable all animation and ensure visibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal,
  .js-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile adjustments */
@media (max-width: 420px) {
  .brand-word    { font-size: .95rem; letter-spacing: .1em; }
  .notify-btn    { flex: 1 1 100%; }
}