/* =============================================
   $WhitePunch — The Frozen Guardian
   Premium Cinematic Website
   ============================================= */

:root {
  --ice-white: #e8f0ff;
  --ice-blue: #7eb8e0;
  --ice-glow: #4da8da;
  --lightning-blue: #00bfff;
  --lightning-purple: #8a2be2;
  --deep-navy: #0a0e1a;
  --deep-blue: #0d1526;
  --card-bg: rgba(13, 21, 38, 0.85);
  --frost-glass: rgba(126, 184, 224, 0.08);
  --text-primary: #e8f0ff;
  --text-secondary: rgba(232, 240, 255, 0.65);
  --text-muted: rgba(232, 240, 255, 0.4);
  --warm-brown: #a0673c;
  --warm-gold: #d4a857;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--deep-navy);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Snowfall Canvas */
#snowCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Lightning Flash */
#lightning-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.15), transparent);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.05s;
}

#lightning-flash.flash {
  opacity: 1;
}

/* =============================================
   Navigation
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#navbar.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(126, 184, 224, 0.1);
  padding: 0.6rem 2rem;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ice-white);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--ice-white);
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.nav-links a:hover::after {
  width: 100%;
}

/* =============================================
   Hero Section
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 14, 26, 0.3) 0%,
      rgba(10, 14, 26, 0.1) 30%,
      rgba(10, 14, 26, 0.4) 70%,
      rgba(10, 14, 26, 1) 100%
    ),
    linear-gradient(to right,
      rgba(10, 14, 26, 0.5) 0%,
      transparent 30%,
      transparent 70%,
      rgba(10, 14, 26, 0.5) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 2rem;
  margin-top: 4rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lightning-blue);
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 191, 255, 0.1); }
  50% { box-shadow: 0 0 30px rgba(0, 191, 255, 0.2); }
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.title-the {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.title-main {
  display: block;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, var(--ice-blue) 40%, var(--lightning-blue) 70%, var(--lightning-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.2));
  animation: titleShimmer 6s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.2)); }
  50% { filter: drop-shadow(0 0 60px rgba(0, 191, 255, 0.35)); }
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lightning-blue), var(--ice-glow));
  color: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 191, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--ice-white);
  border: 1px solid rgba(126, 184, 224, 0.3);
}

.btn-secondary:hover {
  background: rgba(126, 184, 224, 0.08);
  border-color: rgba(126, 184, 224, 0.5);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: floatUp 2.5s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =============================================
   Sections
   ============================================= */
.section {
  position: relative;
  padding: 8rem 2rem;
  z-index: 3;
}

.section-dark {
  background: rgba(0, 0, 0, 0.25);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lightning-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--ice-white);
  letter-spacing: 0.04em;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lightning-blue), transparent);
  margin: 1.5rem auto 0;
}

/* =============================================
   Story Section
   ============================================= */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.story-lead {
  font-size: 1.15rem !important;
  color: var(--ice-white) !important;
  font-weight: 400;
}

.story-highlight {
  font-size: 1.4rem !important;
  color: var(--ice-white) !important;
  font-family: var(--font-display);
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 191, 255, 0.04);
  border-left: 3px solid var(--lightning-blue);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0 !important;
}

.story-image-wrapper {
  position: relative;
}

.story-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s;
}

.story-image:hover {
  transform: scale(1.02);
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.1), transparent 70%);
  z-index: -1;
  border-radius: 20px;
}

/* =============================================
   Character Cards
   ============================================= */
.character-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.character-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(126, 184, 224, 0.1);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}

.character-card:hover {
  transform: translateY(-4px);
}

.white-punch-card:hover {
  border-color: rgba(0, 191, 255, 0.3);
}

.punch-card:hover {
  border-color: rgba(212, 168, 87, 0.3);
}

.card-lightning {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lightning-blue), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.white-punch-card:hover .card-lightning {
  opacity: 1;
}

.card-warmth {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--warm-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.punch-card:hover .card-warmth {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.character-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ice-white);
  margin-bottom: 0.3rem;
}

.card-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.white-punch-card .card-role {
  color: var(--lightning-blue);
}

.punch-card .card-role {
  color: var(--warm-gold);
}

.character-card p:not(.card-role) {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trait {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.white-punch-card .trait {
  background: rgba(0, 191, 255, 0.08);
  color: var(--lightning-blue);
  border: 1px solid rgba(0, 191, 255, 0.15);
}

.punch-card .trait {
  background: rgba(212, 168, 87, 0.08);
  color: var(--warm-gold);
  border: 1px solid rgba(212, 168, 87, 0.15);
}

/* =============================================
   Bond Section
   ============================================= */
.bond-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.bond-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--ice-white);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  position: relative;
}

.bond-quote blockquote::before,
.bond-quote blockquote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lightning-blue), transparent);
  margin: 0 auto 1.5rem;
}

.bond-quote blockquote::after {
  margin: 1.5rem auto 0;
}

.bond-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

/* =============================================
   Tokenomics
   ============================================= */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.token-card {
  background: var(--frost-glass);
  border: 1px solid rgba(126, 184, 224, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.token-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 191, 255, 0.2);
}

.token-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.token-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.token-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ice-white);
  margin-bottom: 0.3rem;
}

.token-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.token-ca {
  text-align: center;
}

.ca-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 191, 255, 0.04);
  border: 1px solid rgba(0, 191, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--ice-blue);
}

.ca-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.ca-copy:hover {
  opacity: 1;
}

/* =============================================
   Community
   ============================================= */
.community-content {
  text-align: center;
}

.community-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 10px;
  border: 1px solid rgba(126, 184, 224, 0.15);
  background: var(--frost-glass);
  color: var(--text-primary);
  transition: all 0.35s;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.twitter-btn:hover {
  border-color: rgba(0, 191, 255, 0.4);
  background: rgba(0, 191, 255, 0.06);
}

.telegram-btn:hover {
  border-color: rgba(0, 136, 204, 0.4);
  background: rgba(0, 136, 204, 0.06);
}

.dex-btn:hover {
  border-color: rgba(0, 255, 135, 0.4);
  background: rgba(0, 255, 135, 0.06);
}

.social-icon {
  font-size: 1.2rem;
}

/* =============================================
   Footer
   ============================================= */
#footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(126, 184, 224, 0.06);
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ice-white);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* =============================================
   Reveal Animations
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-image-wrapper {
    order: -1;
  }

  .character-cards {
    grid-template-columns: 1fr;
  }

  .tokenomics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 5rem 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .tokenomics-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-top: 6rem;
  }

  .ca-box {
    font-size: 0.7rem;
    padding: 0.6rem 1rem;
  }
}
