/* ========================================
   One1 Resources — Premium Dark UI
   ======================================== */

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --panel: #161616;
  --panel-hover: #1a1a1a;
  --text: #fdfefe;
  --muted: rgba(253,254,254,.55);
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.16);
  --accent: #fdfefe;
  --glow: rgba(255,255,255,.06);
  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --smooth: cubic-bezier(.25,.46,.45,.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: Inter,system-ui,-apple-system,sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ========================================
   ANIMATIONS — Keyframes
   ======================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes unlockPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.2) rotate(-10deg); }
  60%  { transform: scale(.9) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0); }
  50%      { box-shadow: 0 0 30px rgba(255,255,255,.06); }
}
@keyframes badgePop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--border); }
  50%      { border-color: rgba(255,255,255,.15); }
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   ======================================== */

/* Elements start hidden, revealed by IntersectionObserver */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition: opacity .8s var(--smooth), transform .8s var(--smooth), filter .8s var(--smooth);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered delays for grid children */
.scroll-reveal.stagger-1 { transition-delay: .05s; }
.scroll-reveal.stagger-2 { transition-delay: .12s; }
.scroll-reveal.stagger-3 { transition-delay: .19s; }
.scroll-reveal.stagger-4 { transition-delay: .26s; }
.scroll-reveal.stagger-5 { transition-delay: .33s; }
.scroll-reveal.stagger-6 { transition-delay: .40s; }

/* Hero elements use initial load animation */
.anim-fade-up {
  opacity: 0;
  animation: fadeUp .9s var(--smooth) forwards;
}
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }
.d4 { animation-delay: .48s; }

/* ========================================
   CURSOR GLOW EFFECT (follows mouse on cards)
   ======================================== */

.card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* ========================================
   NAV
   ======================================== */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(10,10,10,.92);
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  transition: transform .3s var(--spring);
}
.brand:hover { transform: scale(1.03); }
.logo { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.logo-nav { height: 28px; width: auto; object-fit: contain; }
.pill {
  color: var(--text); text-decoration: none;
  border: 1px solid var(--border); padding: 8px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: all .3s var(--spring);
  position: relative;
  overflow: hidden;
}
.pill::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}
.pill:hover::before { transform: translateX(100%); }
.pill:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  padding: 80px 0 20px; text-align: center;
  position: relative;
}
/* Subtle radial gradient behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,.03) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGradient 8s ease infinite;
  background-size: 200% 200%;
}
.badge {
  display: inline-block;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  padding: 8px 18px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  animation: badgePop .6s var(--spring) forwards, glowPulse 3s ease infinite 1s;
}
.hero h1 {
  font-size: clamp(36px,6vw,58px); font-weight: 800;
  letter-spacing: -.045em; line-height: 1.06;
  margin: 20px 0 14px;
}
.hero > .container > p {
  max-width: 580px; margin: 0 auto 20px;
  color: var(--muted); font-size: 17px; line-height: 1.7;
}
.hero-count {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.count-pill {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted);
  transition: transform .3s var(--spring), border-color .3s;
}
.count-pill:hover {
  transform: scale(1.05);
  border-color: var(--border-hover);
}

/* ========================================
   GATE (email + code verification)
   ======================================== */

.gate-section { padding: 30px 0 20px; }
.gate-box {
  background: linear-gradient(180deg, var(--panel), rgba(16,16,16,.6));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center;
  position: relative; overflow: hidden;
  animation: borderGlow 4s ease infinite;
}
.gate-box::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 50%);
  pointer-events: none;
}
.gate-icon {
  font-size: 40px; margin-bottom: 14px;
  animation: float 3s ease-in-out infinite;
}
.gate-box h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 8px; }
.gate-box > .muted { margin-bottom: 24px; font-size: 15px; }

.gate-form { max-width: 460px; margin: 0 auto; }
.input-row { display: flex; gap: 10px; margin-bottom: 12px; }
.input {
  flex: 1; background: rgba(0,0,0,.5); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; color: var(--text);
  font-size: 15px; outline: none;
  transition: border-color .3s, box-shadow .3s, transform .2s;
}
.input:focus {
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.input::placeholder { color: rgba(253,254,254,.3); }

/* Code input digits */
.code-inputs {
  display: flex; gap: 8px; justify-content: center;
  align-items: center; margin: 20px 0 16px;
}
.code-digit {
  width: 48px; height: 56px; text-align: center;
  font-size: 24px; font-weight: 700; letter-spacing: 0;
  background: rgba(0,0,0,.5); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); outline: none;
  transition: border-color .3s, box-shadow .3s, transform .2s;
}
.code-digit:focus {
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
  transform: translateY(-2px);
}
.code-digit.filled { border-color: rgba(255,255,255,.2); }
.code-dash { color: var(--muted); font-size: 20px; }

.form-msg {
  font-size: 13px; margin-top: 10px; min-height: 20px;
  transition: opacity .4s, transform .3s;
}
.form-msg.error { color: #f44; animation: slideDown .3s var(--ease); }
.form-msg.success { color: #4f8; animation: slideDown .3s var(--ease); }

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 14px;
  border-radius: 12px; padding: 14px 22px;
  transition: transform .3s var(--spring), box-shadow .4s, background .3s;
  position: relative; overflow: hidden;
}
/* Shimmer sweep on hover */
.btn::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s;
}
.btn:hover::after { left: 120%; }
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--accent); color: #0a0a0a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(253,254,254,.15);
}
.btn-lg { width: 100%; padding: 16px 22px; font-size: 15px; }
.btn-link {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 13px; margin-top: 12px;
  text-decoration: underline; font-family: inherit;
  transition: color .3s;
}
.btn-link:hover { color: var(--text); }

.btn-card {
  width: 100%; background: rgba(255,255,255,.06);
  color: var(--text); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  transition: all .35s var(--spring);
}
.btn-card:hover:not(:disabled):not(.locked) {
  background: var(--accent); color: #0a0a0a;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(253,254,254,.12);
}
.btn-card.locked {
  opacity: .7; cursor: default;
}
.btn-card.locked:hover {
  animation: pulse .8s ease;
}
.btn-card.unlocked {
  background: var(--accent); color: #0a0a0a;
  border-color: var(--accent);
  animation: scaleIn .5s var(--spring);
}
.btn-card.unlocked .btn-lock-icon { display: none; }

/* Free button style (referral links) */
.btn-free {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .35s var(--spring);
}
.btn-free:hover {
  background: var(--accent); color: #0a0a0a;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(253,254,254,.12);
}

/* ========================================
   SECTION LABELS
   ======================================== */

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 4px;
}

/* ========================================
   RESOURCE CARDS
   ======================================== */

.resources { padding: 30px 0 40px; }
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: relative; overflow: hidden;
  transition: transform .5s var(--spring), border-color .4s, box-shadow .5s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px var(--glow);
}
/* Radial glow that follows mouse */
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255,255,255,.04),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
/* Top shine */
.card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.card:hover::after { opacity: 1; }

.card-badges {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.card-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,.08); color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
  transition: transform .3s var(--spring);
}
.card:hover .card-badge { transform: scale(1.05); }
.card-badge.soon { background: rgba(255,200,0,.12); color: rgba(255,200,0,.8); }
.card-badge.free { background: rgba(80,200,120,.12); color: rgba(80,200,120,.9); }
.card-badge.locked-badge { background: rgba(255,100,100,.1); color: rgba(255,120,120,.8); }
.card-lock {
  position: absolute; top: 20px; right: 20px;
  color: var(--muted); opacity: .5;
  transition: opacity .4s, transform .4s var(--spring);
}
.card:hover .card-lock { opacity: .8; }
.card-lock.unlocked {
  animation: unlockPop .5s var(--spring);
  color: #4f8; opacity: 1;
}
.card-lock.unlocked svg { display: none; }
.card-lock.unlocked::after { content: '\2713'; font-size: 22px; }
.card h2 {
  font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 8px; padding-right: 30px;
  transition: color .3s;
}
.card:hover h2 { color: #fff; }
.card p {
  color: var(--muted); font-size: 14px; line-height: 1.65;
  margin-bottom: 18px;
  transition: color .3s;
}
.card:hover p { color: rgba(253,254,254,.7); }
.coming-soon { opacity: .5; }
.coming-soon:hover {
  transform: none !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}
.coming-soon::before, .coming-soon::after { display: none; }

/* Free cards don't need lock icon space */
.free-card h2 { padding-right: 0; }

/* ========================================
   SOCIAL CTA
   ======================================== */

.social-cta { padding: 10px 0 40px; }
.social-box {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  text-align: center;
  transition: border-color .4s, box-shadow .4s;
}
.social-box:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.social-box h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.social-box .muted { margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform .35s var(--spring), box-shadow .35s, filter .3s;
  position: relative;
  overflow: hidden;
}
/* Shimmer on social pills */
.social-pill::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .6s;
}
.social-pill:hover::before { left: 140%; }
.social-pill:hover { transform: translateY(-3px) scale(1.03); }
.social-pill:active { transform: scale(.97); }
.social-pill.ig {
  background: linear-gradient(135deg,#833AB4,#E1306C,#F77737);
  color: #fff;
}
.social-pill.ig:hover { box-shadow: 0 8px 30px rgba(225,48,108,.35); }
.social-pill.tt {
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.social-pill.tt:hover { box-shadow: 0 8px 30px rgba(255,255,255,.1); }
.social-pill.x {
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.social-pill.x:hover { box-shadow: 0 8px 30px rgba(255,255,255,.1); }
.social-pill.yt {
  background: #FF0000; color: #fff;
}
.social-pill.yt:hover { box-shadow: 0 8px 30px rgba(255,0,0,.35); }

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.links { display: flex; gap: 16px; }
.links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color .3s, transform .3s var(--spring);
  position: relative;
}
.links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--text);
  transition: width .3s var(--ease);
}
.links a:hover { color: var(--text); }
.links a:hover::after { width: 100%; }

/* ========================================
   UNLOCKED STATE
   ======================================== */

.gate-section.verified { display: none; }
body.unlocked .gate-section { display: none; }
body.unlocked .hero-count .count-pill:last-child { display: none; }
body.unlocked .locked-badge { display: none; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .hero { padding: 60px 0 16px; }
  .code-digit { width: 42px; height: 50px; font-size: 20px; }
  .social-links { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 10px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-reveal { opacity: 1; transform: none; filter: none; }
}
