/* ================================================
   SUNGAI — styles.css
   Palette: #061724 · #0A253A · #22D3EE · #F0EBE1
   Fonts:   Outfit (headings) · DM Sans (body)
================================================ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg:      #061724;
  --bg2:     #0A253A;
  --bg3:     #102E4A;
  --cyan:    #22D3EE;
  --cyanD:   #0891B2;
  --cyanXD:  #0E7490;
  --sand:    #F0EBE1;
  --sandM:   #8BA5B8;
  --border:  rgba(34,211,238,0.15);
  --glass:   rgba(6,23,36,0.78);
  --wave-bg: #061724;   /* matches intro bg — container is invisible, only wave crests show */
  --r-card:  18px;
  --r-btn:   50px;
}

/* ── RESET + BASE ────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--sand);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── INTRO SPLASH ────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg);
  -webkit-user-select: none;
  user-select: none;
}

.intro-upper {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 22vh;
  gap: 0.85rem;
  pointer-events: none;
}

.intro-logo-img {
  width: 82px;
  filter: drop-shadow(0 0 24px rgba(34,211,238,0.45));
  animation: float-loop 6s ease-in-out infinite;
}

.intro-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.02em;
}

.intro-brand em {
  font-style: normal;
  color: var(--cyan);
}

.intro-tap {
  font-size: 0.65rem;
  color: rgba(34,211,238,0.4);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  animation: tap-fade 2.8s ease-in-out infinite;
}

/* Wave container — full height, offset so only 210px is visible at bottom.
   The mask fades the rectangular SVG fill to transparent so only the
   wave crests are visible — no extra background-coloured layer needed. */
.intro-waves-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--wave-bg);
  transform: translateY(calc(100% - 210px));
  -webkit-mask-image: linear-gradient(to bottom, black 115px, transparent 200px);
  mask-image: linear-gradient(to bottom, black 115px, transparent 200px);
}

/* On click: whole intro wipes up immediately, wave surges slightly ahead */
#intro.exiting {
  transition: transform 0.82s cubic-bezier(0.4, 0, 0.6, 1);
  transform: translateY(-100vh);
}

#intro.exiting .intro-waves-wrap {
  transition: transform 0.52s cubic-bezier(0.22, 0, 0.5, 1);
  transform: translateY(0);
}

.iw-svg {
  display: block;
  width: 100%;
  height: 210px;
}

/* Gentle-wave parallax */
.iw-parallax > use { animation: move-forever 17s linear infinite; }
.iw-parallax > use:nth-child(1) { animation-delay: -2s; }
.iw-parallax > use:nth-child(2) { animation-delay: -2s; animation-duration: 8s; }
.iw-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 5s; }
.iw-parallax > use:nth-child(4) { animation-delay: -6s; animation-duration: 11s; }

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.9rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,23,36,0.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34,211,238,0.08);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.nav-logo img { width: 32px; height: 32px; object-fit: contain; }

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.02em;
}

.nav-logo-text em { font-style: normal; color: var(--cyan); }

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

.nav-links a {
  color: var(--sandM);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover { color: var(--sand); }

.nav-cta {
  background: var(--cyan);
  color: var(--bg) !important;
  padding: 0.48rem 1.2rem;
  border-radius: var(--r-btn);
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  transition: all 0.2s !important;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--sand);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,211,238,0.3);
}

.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-signup {
  border: 1px solid rgba(34,211,238,0.4);
  color: var(--cyan) !important;
  padding: 0.42rem 1.1rem;
  border-radius: var(--r-btn);
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all 0.2s !important;
}

.nav-signup:hover {
  background: rgba(34,211,238,0.1);
  border-color: var(--cyan);
}

/* ── Nav profile icon & dropdown ── */
.nav-profile {
  position: relative;
}

.nav-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.08);
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-profile-btn:hover {
  background: rgba(34,211,238,0.15);
  border-color: var(--cyan);
}

.nav-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(6,23,36,0.96);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 12px;
  padding: 14px 16px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9000;
}

.nav-profile-dropdown.open { display: block; }

.profile-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  font-family: 'Fira Code', monospace;
  margin-bottom: 4px;
}

.profile-email {
  display: block;
  font-size: 13px;
  color: var(--sand);
  font-weight: 500;
  word-break: break-all;
  margin-bottom: 12px;
}

.profile-platform-btn {
  display: block;
  text-align: center;
  padding: 7px 14px;
  background: linear-gradient(135deg, #22D3EE, #0891B2);
  border-radius: 8px;
  color: #061724 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.15s;
}

.profile-platform-btn:hover { opacity: 0.88; }

.profile-signout-btn {
  display: block;
  text-align: center;
  padding: 7px 14px;
  margin-top: 6px;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: #F87171 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.profile-signout-btn:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.5);
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
  background:
    radial-gradient(ellipse 75% 55% at 50% -5%, rgba(34,211,238,0.14) 0%, transparent 65%),
    var(--bg);
}

.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(34,211,238,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 0%, transparent 100%);
}

.mote {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: mote-rise linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: 50px;
  padding: 0.32rem 0.9rem;
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}

.hero-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 36px rgba(34,211,238,0.38));
  animation: float-loop 7s ease-in-out infinite;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--sand);
}

.grad {
  background: linear-gradient(110deg, var(--cyan) 0%, #67E8F9 45%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--sandM);
  line-height: 1.78;
  max-width: 560px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  padding: 0.8rem 1.9rem;
  border-radius: var(--r-btn);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.22s;
  box-shadow: 0 4px 20px rgba(34,211,238,0.25);
  cursor: pointer;
}

.btn-primary:hover {
  background: #67E8F9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,211,238,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--sand);
  padding: 0.8rem 1.9rem;
  border-radius: var(--r-btn);
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  border: 1px solid rgba(34,211,238,0.25);
  transition: all 0.22s;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.5);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 165px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(34,211,238,0.4);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  animation: cue-drift 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}

/* ── HERO BOTTOM WAVES ───────────────────────── */
.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  overflow: hidden;
}

.hw-svg {
  display: block;
  width: 100%;
  height: 140px;
}

.hw-parallax > use { animation: move-forever 20s linear infinite; }
.hw-parallax > use:nth-child(1) { animation-delay: -3s; }
.hw-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.hw-parallax > use:nth-child(3) { animation-delay: -5s; animation-duration: 6s; }

/* ── STATS BAR ───────────────────────────────── */
.stats {
  background: var(--bg2);
  border-top: 1px solid rgba(34,211,238,0.08);
  border-bottom: 1px solid rgba(34,211,238,0.08);
  padding: 2.75rem 5%;
}

.stats-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-divider {
  border-right: 1px solid rgba(34,211,238,0.1);
}

.stat-divider:last-child { border-right: none; }

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--sandM);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── SHARED SECTIONS ─────────────────────────── */
.sec { padding: 5.5rem 5%; }

.sec-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--sand);
}

.sec-desc {
  color: var(--sandM);
  line-height: 1.76;
  font-size: 0.975rem;
}

/* ── FEATURES ────────────────────────────────── */
.feat-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.1rem;
}

.feat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.65rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

.feat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.28s;
}

.feat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34,211,238,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.feat-card:hover::after { opacity: 1; }

.feat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.feat-icon svg { width: 20px; height: 20px; }

.feat-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--sand);
}

.feat-desc {
  color: var(--sandM);
  font-size: 0.862rem;
  line-height: 1.68;
}

/* ── PLATFORM (MAP) ──────────────────────────── */
.platform {
  background: var(--bg2);
  padding: 5.5rem 5%;
  position: relative;
}

.platform::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

.plat-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 4.5rem;
  align-items: center;
}

.plat-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.plat-step { display: flex; gap: 0.9rem; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bg);
  margin-top: 2px;
}

.step-txt h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--sand);
}

.step-txt p { color: var(--sandM); font-size: 0.84rem; line-height: 1.62; }

.map-wrap {
  background: #040F1E;
  border: 1px solid rgba(34,211,238,0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.65);
}

.map-bar {
  background: rgba(0,0,0,0.5);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(34,211,238,0.08);
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.map-title { margin-left: 0.5rem; font-size: 0.68rem; color: var(--sandM); }
.live-dot  { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 5px #4ade80; animation: blink 1.5s ease-in-out infinite; }
.live-text { font-size: 0.65rem; color: #4ade80; font-weight: 600; margin-left: 4px; }
.fz        { animation: fz-pulse 3s ease-in-out infinite; }

/* ── HOW IT WORKS ────────────────────────────── */
.how-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  position: relative;
}

.how-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.7% + 0.6rem);
  right: calc(16.7% + 0.6rem);
  height: 1px;
  background: linear-gradient(90deg, var(--cyanD), var(--cyan));
  opacity: 0.2;
  z-index: 0;
}

.how-card { text-align: center; padding: 1.75rem 1rem; position: relative; z-index: 1; }

.how-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid rgba(34,211,238,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  position: relative;
  z-index: 2;
  color: var(--cyan);
}

.how-icon svg { width: 26px; height: 26px; }

.step-tag {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: var(--cyan);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--sand);
}

.how-card p { color: var(--sandM); font-size: 0.85rem; line-height: 1.66; }

/* ── CTA ─────────────────────────────────────── */
.cta-sec {
  position: relative;
  padding: 7rem 5%;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.cta-sec h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  color: var(--sand);
  position: relative; z-index: 2;
}

.cta-sec p {
  color: var(--sandM);
  font-size: 0.975rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.74;
  position: relative; z-index: 2;
}

.cta-btns {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 2;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: #030D18;
  border-top: 1px solid rgba(34,211,238,0.07);
  padding: 2.2rem 5%;
}

.footer-in {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.f-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.f-logo img { width: 24px; height: 24px; }

.f-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sand);
}

.f-logo span em { font-style: normal; color: var(--cyan); }

.f-copy { color: rgba(139,165,184,0.6); font-size: 0.78rem; }

.f-links { display: flex; gap: 1.5rem; list-style: none; }

.f-links a {
  color: var(--sandM);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
  cursor: pointer;
}

.f-links a:hover { color: var(--sand); }

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes float-loop {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes tap-fade {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

@keyframes cue-drift {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.8; transform: translateX(-50%) translateY(5px); }
}

@keyframes move-forever {
  0%   { transform: translateX(-90px); }
  100% { transform: translateX(85px); }
}

@keyframes mote-rise {
  0%   { transform: translateY(100vh); opacity: 0; }
  8%   { opacity: 0.3; }
  92%  { opacity: 0.25; }
  100% { transform: translateY(-80px); opacity: 0; }
}

/* Intro motes — same motion, brighter peak */
.intro-mote {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: intro-mote-rise linear infinite;
}

@keyframes intro-mote-rise {
  0%   { transform: translateY(100vh); opacity: 0; }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.6; }
  100% { transform: translateY(-80px); opacity: 0; }
}

@keyframes fz-pulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.88; }
}

/* ── SCROLL REVEAL ───────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }
.d5 { transition-delay: 0.35s; }
.d6 { transition-delay: 0.42s; }

/* ── PLAN BADGE (profile dropdown) ──────────── */
.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.plan-badge--basic {
  background: rgba(139,165,184,0.1);
  border: 1px solid rgba(139,165,184,0.25);
  color: var(--sandM);
}

.plan-badge--premium {
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.35);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(34,211,238,0.1);
}

.plan-badge--premium-plus {
  background: linear-gradient(135deg, rgba(34,211,238,0.18) 0%, rgba(139,92,246,0.18) 100%);
  border: 1px solid rgba(139,92,246,0.5);
  color: #C4B5FD;
  box-shadow: 0 0 12px rgba(139,92,246,0.2);
}

/* ── Profile code buttons ────────────────────── */
.profile-code-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
  box-sizing: border-box;
}

.profile-code-btn--generate {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
  color: #C4B5FD;
}

.profile-code-btn--generate:hover {
  background: rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.5);
}

.profile-code-btn--enter {
  background: rgba(34,211,238,0.07);
  border: 1px solid rgba(34,211,238,0.2);
  color: var(--cyan);
}

.profile-code-btn--enter:hover {
  background: rgba(34,211,238,0.13);
  border-color: rgba(34,211,238,0.35);
}

/* ── Generated code display box ─────────────── */
.gen-code-box {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10,37,58,0.8);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 12px;
  text-align: center;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
}

.gen-code-text {
  font-family: 'Fira Code', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  word-break: break-all;
}

/* Share icon variant for the modal */
.upgrade-modal-icon--share {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
  color: #C4B5FD;
}

/* ── UPGRADE MODAL ───────────────────────────── */
.upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 11, 22, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.upgrade-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.upgrade-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(6,23,36,0.96);
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.06);
  transform: translateY(16px);
  transition: transform 0.28s ease;
  text-align: center;
}

.upgrade-overlay.open .upgrade-modal {
  transform: translateY(0);
}

.upgrade-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--sandM);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.upgrade-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--sand);
}

.upgrade-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  color: var(--cyan);
}

.upgrade-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.upgrade-modal-desc {
  font-size: 0.865rem;
  color: var(--sandM);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.upgrade-code-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,211,238,0.18);
  border-radius: 10px;
  color: var(--sand);
  font-size: 15px;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.12em;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.upgrade-code-input:focus {
  border-color: rgba(34,211,238,0.5);
  background: rgba(34,211,238,0.05);
}

.upgrade-msg {
  min-height: 20px;
  font-size: 0.82rem;
  margin: 0.7rem 0 0.2rem;
  border-radius: 8px;
  padding: 0;
  transition: all 0.2s;
}

.upgrade-msg--error {
  color: #FCA5A5;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 8px 12px;
}

.upgrade-msg--success {
  color: #6EE7B7;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 8px 12px;
}

.upgrade-submit-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.78rem 1.2rem;
  background: linear-gradient(135deg, #22D3EE 0%, #0891B2 100%);
  border: none;
  border-radius: 50px;
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(34,211,238,0.28);
}

.upgrade-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #67E8F9 0%, #22D3EE 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,211,238,0.4);
}

.upgrade-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Clickable slot-count message */
.upgrade-msg--clickable {
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.upgrade-msg--clickable:hover {
  opacity: 0.82;
  filter: brightness(1.12);
}

/* Redeemer email list */
.gen-users-panel {
  width: 100%;
  background: rgba(6, 23, 36, 0.7);
  border: 1px solid rgba(34,211,238,0.14);
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: panel-in 0.18s ease;
  will-change: opacity, transform;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gen-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--sandM);
  transition: background 0.12s;
}

.gen-user-row:hover {
  background: rgba(34,211,238,0.06);
  color: var(--sand);
}

.gen-user-row svg { flex-shrink: 0; color: var(--cyan); opacity: 0.7; }

.gen-user-empty {
  display: block;
  text-align: center;
  font-size: 11px;
  color: rgba(139,165,184,0.5);
  padding: 4px 0;
}

.upgrade-modal-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: rgba(139,165,184,0.45);
  line-height: 1.5;
}

/* ── PRICING ─────────────────────────────────── */
.pricing-sec {
  background: var(--bg2);
  position: relative;
}

.pricing-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.25;
}

.pricing-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.price-card {
  background: var(--bg);
  border: 1px solid rgba(34,211,238,0.14);
  border-radius: var(--r-card);
  padding: 2rem 1.75rem;
  position: relative;
}

.price-card--pro {
  background: rgba(8, 30, 52, 0.95);
  border-color: rgba(34,211,238,0.38);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.08), 0 20px 56px rgba(0,0,0,0.5);
}

.price-card--pro::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(34,211,238,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.price-popular {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(34,211,238,0.15);
  border: 1px solid rgba(34,211,238,0.35);
  color: var(--cyan);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 50px;
}

.price-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 1.1rem;
}

.price-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.price-currency {
  font-size: 1rem;
  color: var(--sandM);
  margin-top: 0.5rem;
  font-weight: 500;
}

.price-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sand);
  letter-spacing: -0.03em;
}

.price-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.35rem;
  gap: 2px;
}

.price-meta span {
  font-size: 0.78rem;
  color: var(--sandM);
}

.price-vat {
  font-size: 0.7rem !important;
  color: rgba(139,165,184,0.6) !important;
}

.price-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.price-btn-current {
  display: block;
  text-align: center;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-btn);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--sandM);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.5rem;
  cursor: default;
  pointer-events: none;
}

.price-btn-upgrade {
  display: block;
  text-align: center;
  padding: 0.75rem 1.2rem;
  border-radius: var(--r-btn);
  background: linear-gradient(135deg, #22D3EE 0%, #0891B2 100%);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.22s;
  box-shadow: 0 4px 20px rgba(34,211,238,0.28);
}

.price-btn-upgrade:hover {
  background: linear-gradient(135deg, #67E8F9 0%, #22D3EE 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,211,238,0.45);
}

.price-btn-code-only {
  display: block;
  text-align: center;
  padding: 0.75rem 1.2rem;
  border-radius: var(--r-btn);
  background: rgba(34,211,238,0.06);
  border: 1px dashed rgba(34,211,238,0.3);
  color: rgba(139,165,184,0.5);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.6rem;
  cursor: not-allowed;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.price-code-notice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(34,211,238,0.55);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.price-code-notice svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.price-card--elite {
  background: rgba(8, 20, 48, 0.97);
  border-color: rgba(167,139,250,0.35);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.08), 0 20px 56px rgba(0,0,0,0.5);
}

.price-card--elite::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(167,139,250,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.price-card--elite .price-popular {
  background: rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.35);
  color: #a78bfa;
}

.price-card--elite .price-btn-upgrade {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(167,139,250,0.28);
}

.price-card--elite .price-btn-upgrade:hover {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
  box-shadow: 0 8px 28px rgba(167,139,250,0.45);
}

.price-card--elite .price-feats li svg {
  color: #a78bfa;
}

.price-feat-divider {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(139,165,184,0.4);
  text-transform: uppercase;
  padding: 0.3rem 0 0.1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.3rem;
}

.price-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.price-feats li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--sand);
}

.price-feats li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.price-foot-note {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: rgba(139,165,184,0.55);
}

.price-foot-note a {
  color: var(--sandM);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-foot-note a:hover { color: var(--sand); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .feat-grid    { grid-template-columns: repeat(2, 1fr); }
  .plat-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; max-width: 780px; }
}

@media (max-width: 768px) {
  nav           { padding: 0.9rem 4%; }
  .nav-links    { display: none; }
  .feat-grid    { grid-template-columns: 1fr; }
  .how-grid     { grid-template-columns: 1fr; }
  .how-grid::before { display: none; }
  .footer-in    { flex-direction: column; align-items: center; text-align: center; }
  .hero-title   { font-size: 2.2rem; }
  .intro-brand  { font-size: 2.4rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
