/* ============================================================
   NEXORA PREMIUM LANDING — styles.css
   ============================================================ */

/* --- Selection --- */
::selection { background: #d1271b; color: #fff; }
::-moz-selection { background: #d1271b; color: #fff; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #d1271b; border-radius: 2px; }

/* --- Tokens --- */
:root {
  --red:       #d1271b;
  --red-10:    rgba(209,39,27,.10);
  --red-15:    rgba(209,39,27,.15);
  --red-20:    rgba(209,39,27,.20);
  --red-30:    rgba(209,39,27,.30);
  --red-40:    rgba(209,39,27,.40);

  --bg:        #080808;
  --card-bg:   #0d0d0d;

  --glass-bg:  rgba(255,255,255,.04);
  --glass-bdr: rgba(255,255,255,.08);

  --w:         #ffffff;
  --w80:       rgba(255,255,255,.80);
  --w60:       rgba(255,255,255,.60);
  --w40:       rgba(255,255,255,.40);
  --w20:       rgba(255,255,255,.20);
  --w10:       rgba(255,255,255,.10);
  --w05:       rgba(255,255,255,.05);
  --w03:       rgba(255,255,255,.03);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--w);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .75s var(--ease);
}
.loader.exit { transform: translateY(-100%); }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: scale(.88);
  animation: loaderIn .7s var(--ease) .1s forwards;
}

.loader-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.3);
}

.loader-wordmark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .45em;
  padding-left: .45em;
  color: var(--w40);
}

.loader-bar {
  width: 80px;
  height: 1px;
  background: var(--w10);
  border-radius: 1px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  animation: barFill 1.1s var(--ease) .3s forwards;
  border-radius: 1px;
}

@keyframes loaderIn  { to { opacity: 1; transform: scale(1); } }
@keyframes barFill   { to { width: 100%; } }

/* ============================================================
   AUDIO TOGGLE
   ============================================================ */
.audio-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w40);
  transition: color .3s, border-color .3s, box-shadow .3s;
  opacity: 0;
  animation: fadeUp .5s var(--ease) 2.6s forwards;
}
.audio-toggle:hover {
  color: var(--w);
  border-color: var(--w20);
  box-shadow: 0 0 24px var(--red-10);
}

.audio-toggle svg { width: 17px; height: 17px; }

/* Wave lines animated */
.wave { transition: opacity .3s; }
.mute-line { opacity: 0; transition: opacity .3s; }
.audio-toggle.muted .wave { opacity: 0; }
.audio-toggle.muted .mute-line { opacity: 1; }

.audio-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--w60);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.audio-toggle:hover .audio-tooltip { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 50% 62%, rgba(209,39,27,.13) 0%, transparent 70%);
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .65; transform: scale(1.06); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 24px;
  max-width: 820px;
}

/* Hero animation — triggered by .hero-ready on body */
.hero-anim {
  opacity: 0;
  transform: translateY(22px);
}
body.hero-ready .hero-anim {
  animation: heroUp .9s var(--ease) var(--d,0s) forwards;
}
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* Brand line */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.4) saturate(1.1);
}
.hero-brand-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .42em;
  color: var(--red);
}

/* Title */
.hero-title {
  font-size: clamp(46px, 8.5vw, 96px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--w);
}
.hero-name {
  background: linear-gradient(135deg, #fff 40%, rgba(209,39,27,.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--w60);
  max-width: 500px;
}

/* Hero button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 50px;
  border: 1px solid var(--glass-bdr);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--w80);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .025em;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, color .3s, transform .3s;
}
.btn-hero svg { width: 18px; height: 18px; transition: transform .3s; }
.btn-hero:hover {
  border-color: var(--red-40);
  box-shadow: 0 0 36px var(--red-15), inset 0 0 20px rgba(209,39,27,.04);
  color: var(--w);
  transform: translateY(-2px);
}
.btn-hero:hover svg { transform: translateX(3px); }
.btn-hero:active { transform: translateY(0); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--w30,rgba(255,255,255,.3)), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%,100% { opacity: .3; transform: scaleY(1) translateY(0); }
  50%      { opacity: .9; transform: scaleY(.7) translateY(8px); }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .85s var(--ease) var(--rd,0s),
    transform .85s var(--ease) var(--rd,0s);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SECTION — CONGRATULATIONS
   ============================================================ */
.section-congrats {
  padding: 140px 0;
  position: relative;
}
.section-congrats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--w20));
}

.congrats-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.congrats-deco {
  font-size: 22px;
  color: var(--red);
  opacity: .7;
}
.congrats-p {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,.82);
  letter-spacing: .01em;
}

/* ============================================================
   SECTION — GIFT CODE
   ============================================================ */
.section-gift {
  padding: 80px 0 140px;
}

.eyebrow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .44em;
  color: var(--red);
  margin-bottom: 52px;
}

/* Gift card */
.gift-card {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 44px 48px 48px;
  overflow: hidden;
  cursor: default;
  background: linear-gradient(145deg, #141414 0%, #0b0b0b 55%, #111111 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow:
    0 0 0 1px var(--w03),
    0 4px 60px rgba(0,0,0,.65),
    0 0 80px var(--red-10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gift-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 12px 90px rgba(0,0,0,.75),
    0 0 100px var(--red-15),
    0 0 40px rgba(209,39,27,.08);
}

/* Shine sweep */
.card-shine {
  position: absolute;
  top: 0;
  left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg,
    transparent 10%,
    rgba(255,255,255,.022) 50%,
    transparent 90%);
  pointer-events: none;
  transition: left .9s ease;
  z-index: 1;
}
.gift-card:hover .card-shine { left: 160%; }

/* Card header */
.gift-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
  position: relative;
  z-index: 2;
}
.gift-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.2);
}
.card-nexora {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .38em;
  color: var(--w50,rgba(255,255,255,.5));
}

/* Status badge — pending (default) */
.gift-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.18);
  border-radius: 20px;
  transition: background .5s ease, border-color .5s ease;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251,191,36,.5);
  transition: background .5s ease, box-shadow .5s ease;
  animation: pulseDotPending 2s ease-in-out infinite;
}
@keyframes pulseDotPending {
  0%,100% { box-shadow: 0 0 6px rgba(251,191,36,.5); }
  50%      { box-shadow: 0 0 12px rgba(251,191,36,.85); }
}
.status-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #fcd34d;
  transition: color .5s ease;
}

/* Status badge — activated */
.gift-status.active {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.18);
}
.gift-status.active .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.6);
  animation: pulseDotActive 2s ease-in-out infinite;
}
@keyframes pulseDotActive {
  0%,100% { box-shadow: 0 0 6px rgba(34,197,94,.6); }
  50%      { box-shadow: 0 0 14px rgba(34,197,94,.9), 0 0 20px rgba(34,197,94,.3); }
}
.gift-status.active .status-label {
  color: #4ade80;
}

/* Gift code area */
.gift-code-wrap {
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.gift-code-meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--w40);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.gift-code-display {
  position: relative;
  font-family: 'Courier New', 'SF Mono', Consolas, monospace;
  font-size: clamp(18px, 3.8vw, 28px);
  letter-spacing: .11em;
  line-height: 1;
  min-height: 36px;
}
.code-ghost {
  color: var(--w15,rgba(255,255,255,.15));
  transition: opacity .2s;
}
.code-ghost.gone { display: none; }
.code-reveal { color: var(--w); }
.code-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--red);
  vertical-align: middle;
  margin-left: 2px;
  animation: blinkC .8s step-end infinite;
}
.code-cursor.done { display: none; }
@keyframes blinkC { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* Details */
.gift-details {
  display: grid;
  gap: 15px;
  padding-top: 28px;
  border-top: 1px solid var(--w05);
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}
.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dl {
  font-size: 11px;
  font-weight: 400;
  color: var(--w40);
  letter-spacing: .04em;
}
.dv {
  font-size: 13px;
  font-weight: 500;
  color: var(--w80);
  letter-spacing: .02em;
}
.dv-red {
  color: var(--red);
  font-style: italic;
  font-weight: 600;
}

/* Access button */
.btn-access {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--glass-bdr);
  background: transparent;
  color: var(--w60);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
  overflow: hidden;
}
.btn-access::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-10);
  opacity: 0;
  transition: opacity .3s;
}
.btn-access:hover {
  border-color: var(--red-30);
  color: var(--w);
}
.btn-access:hover::after { opacity: 1; }
.btn-access.activated {
  border-color: rgba(34,197,94,.35);
  color: #4ade80;
  pointer-events: none;
}
.btn-access.activated::after { opacity: 0; }

/* ============================================================
   SECTION — PLAN
   ============================================================ */
.section-plan { padding: 60px 0 140px; }

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-bdr);
  border-radius: 24px;
}

.plan-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 52px;
  position: relative;
  overflow: hidden;
}
.plan-inner-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(209,39,27,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Plan header */
.plan-head { margin-bottom: 44px; }
.plan-name {
  font-size: clamp(44px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -.025em;
  font-style: italic;
  color: var(--w);
  line-height: 1;
  margin-bottom: 18px;
}
.plan-rule {
  width: 44px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  margin-bottom: 18px;
}
.plan-tagline {
  font-size: 16px;
  font-weight: 300;
  color: var(--w60);
  line-height: 1.6;
}

/* Features list */
.features {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 44px;
}
.feat {
  display: flex;
  align-items: center;
  gap: 18px;
}
.feat-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(209,39,27,.07);
  border: 1px solid rgba(209,39,27,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: background .3s, border-color .3s;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat:hover .feat-icon {
  background: rgba(209,39,27,.14);
  border-color: rgba(209,39,27,.28);
}
.feat-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--w80);
  line-height: 1.4;
}

.plan-footnote {
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: var(--w40);
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--w05);
  letter-spacing: .04em;
}

/* ============================================================
   SECTION — FINAL
   ============================================================ */
.section-final {
  position: relative;
  padding: 140px 0 120px;
  text-align: center;
  overflow: hidden;
}
.final-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(209,39,27,.11) 0%, transparent 68%);
  pointer-events: none;
  animation: finalPulse 6s ease-in-out infinite;
}
@keyframes finalPulse {
  0%,100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.1); }
}

.final-body {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.final-quote {
  font-size: clamp(22px, 3.8vw, 38px);
  font-weight: 300;
  line-height: 1.72;
  color: var(--w80);
  letter-spacing: .01em;
}
.final-quote em {
  font-style: italic;
  font-weight: 600;
  color: var(--w);
}

.final-sep {
  width: 36px;
  height: 1px;
  background: var(--w20);
}

.final-sig {
  display: flex;
  align-items: center;
  gap: 12px;
}
.final-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.2);
}
.final-sig-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--w50,rgba(255,255,255,.5));
  letter-spacing: .08em;
}

/* ============================================================
   SHARED KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-content { gap: 24px; }

  .section-congrats { padding: 100px 0; }
  .section-gift { padding: 60px 0 100px; }
  .section-plan { padding: 40px 0 100px; }
  .section-final { padding: 100px 0 80px; }

  .gift-card { padding: 32px 26px 38px; }
  .gift-card-top { margin-bottom: 34px; }

  .plan-card { padding: 40px 28px 44px; }

  .audio-toggle { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(40px, 11vw, 60px); }

  .gift-code-display {
    font-size: clamp(16px, 5.5vw, 22px);
    letter-spacing: .07em;
  }

  .plan-card { padding: 32px 18px 36px; }

  .feat-text { font-size: 15px; }

  .congrats-p { font-size: 17px; }

  .final-quote { font-size: 20px; }

  .container { padding: 0 18px; }
}
