/* ═══════════════════════════════════════════════════════════════
   Pawni Client — Landing Page Styles
   Palette mirrors PawniConstants.java exactly
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #080012;
  --bg-card:    rgba(255, 255, 255, 0.028);
  --bg-card-h:  rgba(168, 85, 247, 0.06);
  --purple-a:   #A855F7;
  --purple-b:   #7C3AED;
  --purple-c:   #4C1D95;
  --purple-l:   #C084FC;
  --text:       #FFFFFF;
  --text-off:   #E2D5F0;
  --text-dim:   #9970BB;
  --border:     rgba(255, 255, 255, 0.07);
  --border-p:   rgba(168, 85, 247, 0.28);
  --r:          16px;
  --r-sm:       10px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Canvas ──────────────────────────────────────────────────── */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Utilities ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.grad {
  background: linear-gradient(135deg, var(--purple-a) 0%, var(--purple-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--purple-a);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
}

/* ── Reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-b) 0%, var(--purple-a) 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-off);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-p);
  color: #fff;
  transform: translateY(-2px);
}

.btn-xl {
  padding: 14px 30px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 15px;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 28px;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(8, 0, 18, 0.75);
  backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 36px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple-b), var(--purple-a));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover { color: var(--text); }

.discord-link { color: var(--text-dim) !important; }
.discord-link:hover { color: #5865F2 !important; }

.nav-cta { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 4px;
  border-radius: 8px;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 60px;
  z-index: 1;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-l);
  letter-spacing: 0.2px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-a);
  box-shadow: 0 0 10px var(--purple-a);
  animation: dotpulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotpulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--purple-a); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px var(--purple-a); }
}

.hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -3px;
  color: var(--text);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 36px;
}
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-a), var(--purple-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.stat-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* Glow blobs behind hero text */
.hero-glow-top {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.hero-glow-bot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(76, 29, 149, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-wheel {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(168, 85, 247, 0.35);
  border-radius: 11px;
  position: relative;
}
.scroll-wheel::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--purple-l);
  border-radius: 2px;
  animation: scrolldown 2s ease infinite;
}
@keyframes scrolldown {
  0%   { top: 5px;  opacity: 1; }
  80%  { top: 18px; opacity: 0; }
  100% { top: 5px;  opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 460px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat-card {
  position: relative;
  padding: 30px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.feat-card:hover {
  border-color: var(--border-p);
  background: var(--bg-card-h);
  transform: translateY(-4px);
}

.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--purple-l);
  transition: background 0.3s, box-shadow 0.3s;
}
.feat-card:hover .feat-icon {
  background: rgba(168, 85, 247, 0.18);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.feat-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feat-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 380px;
}

/* Glow effect on large cards */
.feat-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}
.feat-card:hover .feat-glow { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════════ */
#how {
  overflow: hidden;
}
.how-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(124, 58, 237, 0.04) 40%,
    rgba(76, 29, 149, 0.06) 60%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.step {
  flex: 1;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(6px);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  min-width: 0;
}
.step:hover {
  border-color: var(--border-p);
  transform: translateY(-4px);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-a), var(--purple-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  line-height: 1;
}

.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.step p code {
  background: rgba(168, 85, 247, 0.15);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--purple-l);
  font-family: 'Courier New', monospace;
}

.step-connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-c), var(--purple-b));
  opacity: 0.5;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--purple-b);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════════ */
.pricing-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 40px 40px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 20px;
  background: linear-gradient(135deg, var(--purple-b), var(--purple-a));
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.pricing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pricing-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-off);
}
.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.price-sym {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--purple-l);
  margin-top: 8px;
}
.price-amt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple-a), var(--purple-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-note {
  font-size: 14px;
  color: var(--text-dim);
  align-self: flex-end;
  margin-bottom: 10px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
}

.pricing-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-feats li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-off);
}
.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: -8px;
}

/* Big purple glow behind pricing card */
.pricing-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-brand {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-logo { font-size: 19px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-btn:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  color: #7289da;
}

.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-version {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    flex-direction: column;
    gap: 16px;
  }
  .step-connector {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, var(--purple-c), var(--purple-b));
  }
  .step-connector::after {
    right: 50%;
    top: auto;
    bottom: -6px;
    transform: translateX(50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--purple-b);
    border-bottom: none;
  }
  .footer-links { gap: 36px; }
  .hero-stats { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }
  .footer-links {
    flex-direction: column;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-h1 { letter-spacing: -1.5px; }

  .pricing-card { padding: 40px 24px 32px; }
  .price-amt { font-size: 56px; }

  .stat-item { padding: 14px 20px; }
}

@media (max-width: 480px) {
  section { padding: 80px 0; }
  .hero-stats { gap: 0; }
  .stat-sep { display: none; }
  .hero-sub { font-size: 16px; }
}
