/* ==========================================================================
   VERITY TCG — OFFICIAL STYLESHEET
   ========================================================================== */

:root {
  --bg-primary: #07080d;
  --bg-secondary: #0d101a;
  --bg-tertiary: #131726;
  --bg-card: rgba(18, 22, 36, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 215, 0, 0.25);
  
  --gold-primary: #ffd166;
  --gold-metallic: linear-gradient(135deg, #fff2a6 0%, #ffd166 40%, #c48c26 80%, #ffd166 100%);
  --gold-glow: rgba(255, 209, 102, 0.35);
  --cyan-accent: #00f5d4;
  --cyan-glow: rgba(0, 245, 212, 0.35);

  --text-main: #f0f3fa;
  --text-muted: #8b96ad;
  --text-dim: #5a6479;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Ambient Ambient Glows */
.ambient-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}
.glow-top {
  top: -200px;
  left: 20%;
  background: radial-gradient(circle, #7928ca 0%, #0070f3 100%);
}
.glow-bottom {
  bottom: -200px;
  right: 15%;
  background: radial-gradient(circle, #ffd166 0%, #ff0080 100%);
  opacity: 0.12;
}

/* Main Container */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 28px 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Top Navigation
   -------------------------------------------------------------------------- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(13, 16, 26, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-crest {
  font-size: 1.4rem;
  color: var(--gold-primary);
  text-shadow: 0 0 12px var(--gold-glow);
  animation: pulseCrest 3s ease-in-out infinite;
}

@keyframes pulseCrest {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 8px #ffd166); }
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tcg-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 209, 102, 0.05));
  color: var(--gold-primary);
  border: 1px solid var(--border-highlight);
  border-radius: 4px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-accent);
  letter-spacing: 1px;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 40px 0 80px;
  flex: 1;
}

.badge-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.collector-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  font-weight: 600;
}

.badge-icon {
  font-size: 0.85rem;
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.main-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 22px;
}

.text-gradient-gold {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(255, 209, 102, 0.2);
}

/* Origin Story / Lore Box */
.lore-box {
  background: linear-gradient(135deg, rgba(28, 22, 46, 0.75) 0%, rgba(13, 16, 28, 0.88) 100%);
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-left: 3px solid var(--gold-primary);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 209, 102, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.lore-box::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.lore-tag-row {
  margin-bottom: 8px;
}

.lore-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.lore-question {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.lore-text {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.65;
  color: #e2e8f0;
  font-style: italic;
  margin-bottom: 14px;
}

.lore-footer {
  display: flex;
  justify-content: flex-end;
}

.lore-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-accent);
  letter-spacing: 0.5px;
}

/* Minimal Email Box (No Extra Text) */
.email-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(145deg, rgba(23, 28, 46, 0.75) 0%, rgba(13, 16, 26, 0.85) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 580px) {
  .email-box {
    flex-direction: row;
    align-items: center;
  }
}

.email-display {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cyan-accent);
  background: rgba(7, 8, 13, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 8px;
  user-select: all;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-copy:active {
  transform: translateY(1px);
}

.btn-send {
  background: var(--gold-metallic);
  color: #121008;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.3);
}

.btn-send:hover {
  box-shadow: 0 6px 18px rgba(255, 209, 102, 0.45);
  transform: translateY(-1px);
}

.btn-send .arrow-icon {
  font-size: 1rem;
  line-height: 1;
}

.copy-toast {
  position: absolute;
  top: -26px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: #00f5d4;
  color: #07080d;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: all 0.2s var(--ease-spring);
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Right Column: 3D Interactive Card Showcase
   -------------------------------------------------------------------------- */
.hero-display {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
}

.card-header-tag {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.rarest-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.16) 0%, rgba(255, 120, 0, 0.08) 100%);
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 12px var(--gold-glow);
}

.card-wrap {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  cursor: grab;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.85));
}

.card-wrap:active {
  cursor: grabbing;
}

/* The Card Frame */
.tcg-card {
  position: relative;
  width: 100%;
  aspect-ratio: 607 / 846;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 16px 40px rgba(0, 0, 0, 0.8);
  background: #000000;
  user-select: none;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Holographic Foil Overlay */
.holo-foil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.65;
  mix-blend-mode: color-dodge;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 0, 128, 0.45) 20%,
    rgba(255, 215, 0, 0.45) 35%,
    rgba(0, 245, 212, 0.45) 50%,
    rgba(123, 44, 191, 0.45) 65%,
    rgba(255, 0, 128, 0.45) 80%,
    transparent 100%
  );
  background-size: 250% 250%;
  background-position: 50% 50%;
  transition: opacity 0.3s ease;
}

.foil-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 11;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.45) 0%, transparent 60%);
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.15s ease;
}

.card-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 18px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   What is Verity Trading Card Game Section (Bottom)
   -------------------------------------------------------------------------- */
.about-section {
  padding: 60px 0 50px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 20px;
}

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

.section-tag-row {
  margin-bottom: 10px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 26px;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-paragraphs p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.about-paragraphs p:first-of-type {
  font-size: 1.15rem;
  color: #f8fafc;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.page-footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  max-width: 480px;
}

.brand-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email:hover {
  color: #ffffff;
}

.footer-bottom-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 10px;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 0 40px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .hero-display {
    order: -1;
  }

  .card-stage {
    max-width: 320px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-contact-info {
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  .page-container {
    padding: 16px 16px 40px;
  }

  .main-title {
    font-size: 2rem;
  }

  .card-stage {
    max-width: 280px;
  }

  .action-buttons {
    width: 100%;
  }

  .action-buttons .btn {
    flex: 1;
  }
}
