/* ===========================
   WHACK AI — SHARED STYLES
   =========================== */

:root {
  --primary: #C6FF00;
  --bg: #080808;
  --surface: #111111;
  --surface-high: #1a1a1a;
  --surface-highest: #252525;
  --text: #ffffff;
  --text-muted: #888;
  --border: rgba(255,255,255,0.07);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 1.5rem;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NOISE OVERLAY ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9990;
}

/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.05s linear;
}

/* ─── CURSOR ─── */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(198, 255, 0, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
}

#cursor.hover { width: 20px; height: 20px; }
#cursor-ring.hover { width: 60px; height: 60px; opacity: 0.5; }

/* ─── PAGE LOADER ─── */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease 0.2s, visibility 0.7s ease 0.2s;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-word {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: white;
  display: flex;
}

.loader-word span {
  display: inline-block;
  animation: loaderIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(60px);
}
.loader-word span:nth-child(1){ animation-delay: 0s; }
.loader-word span:nth-child(2){ animation-delay: 0.05s; }
.loader-word span:nth-child(3){ animation-delay: 0.1s; }
.loader-word span:nth-child(4){ animation-delay: 0.15s; }
.loader-word span:nth-child(5){ animation-delay: 0.2s; }
.loader-accent { color: var(--primary); }

@keyframes loaderIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── NAV ─── */
#main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#main-nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon .material-symbols-outlined {
  font-size: 17px;
  color: #000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: white;
}
.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  background: var(--primary);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(198,255,0,0.3);
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  transition: all var(--transition);
}

#hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2){ opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu a {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  line-height: 1;
  transition: color var(--transition);
}

#mobile-menu a:hover {
  color: var(--primary);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* ─── GRID COMPONENTS ─── */
.stat-card-primary {
  background: var(--primary);
  padding: 3rem;
  border-radius: var(--radius);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.stat-card-dark {
  background: var(--surface-high);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: var(--radius);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: border-color var(--transition);
}

.stat-card-dark:hover {
  border-color: rgba(198,255,0,0.25);
}

.stat-number {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ─── SECTION LABELS ─── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* ─── SECTION HEADINGS ─── */
.heading-xl {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
}

.heading-lg {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-transform: uppercase;
}

.heading-md {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.accent { color: var(--primary); }
.italic { font-style: italic; }
.text-muted { color: var(--text-muted); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(198,255,0,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.btn-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.btn-icon:hover {
  transform: scale(1.1);
}

.btn-icon-ghost {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.btn-icon-ghost:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* ─── GLASS CARD ─── */
.glass {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ─── ACCORDION ─── */
.accordion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: none;
  transition: border-color var(--transition), background var(--transition);
  border-radius: 0.25rem;
}

.accordion-row:hover {
  border-bottom-color: rgba(198,255,0,0.3);
  background: rgba(255,255,255,0.02);
}

.accordion-row.active-row {
  border-bottom-color: var(--primary);
}

.accordion-row.active-row .acc-num {
  color: var(--primary);
}

.accordion-row.active-row .acc-btn {
  background: var(--primary);
  color: #000;
}

.acc-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.acc-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}

.acc-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.acc-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.05);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ─── FORMS ─── */
.form-group label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.form-control {
  width: 100%;
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198,255,0,0.12);
}

.form-control::placeholder {
  color: rgba(255,255,255,0.18);
}

/* ─── ORBS / GLOW ─── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.08;
  background: var(--primary);
}

/* ─── SUCCESS STATE ─── */
.submit-success {
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  #hamburger { display: flex; }
  .nav-links, .nav-cta { display: none; }

  .heading-xl { font-size: 3rem; }
  .heading-lg { font-size: 2rem; }

  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
}

/* ─── ANIMATION KEYFRAMES ─── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-18px) rotate(15deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(198,255,0,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(198,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,255,0,0); }
}

.pulse-dot {
  animation: pulse-ring 2s infinite;
}

/* ─── SECTION SPACING ─── */
section { padding: 7rem 0; }
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── PARTNER LOGO CARDS ─── */
.partner-card {
  background: var(--primary);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.02em;
  transition: transform var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(198,255,0,0.2);
}

/* ─── HERO CARDS FLOAT ─── */
.hero-card {
  position: absolute;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-yellow {
  background: var(--primary);
  color: #000;
  animation: float 6s ease-in-out infinite;
}

.hero-card-dark {
  background: var(--surface-highest);
  border: 1px solid var(--border);
  color: white;
  animation: float 6s ease-in-out infinite 1s;
}

/* ─── PRE-FOOTER BLOCK ─── */
.prefooter {
  background: var(--primary);
  overflow: hidden;
  position: relative;
}

.prefooter-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28vw;
  font-weight: 900;
  color: rgba(0,0,0,0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
}
