@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #E700E2;
  --secondary: #848484;
  --background: #141414;
  --surface: #222222;
  --text: #FFFFFF;
  --success: #34C759;
  --glow: rgba(231, 0, 226, 0.4);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

p {
  color: var(--secondary);
  font-size: 1.125rem;
}

.text-gradient {
  background: linear-gradient(90deg, #FFFFFF 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(231, 0, 226, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: rgba(231, 0, 226, 0.1);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow) 0%, rgba(20,20,20,0) 70%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content p {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.25rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 46%;
  max-width: 275px;
  margin: 0 auto;
  display: block;
  border-radius: 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border: 10px solid #222;
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(231, 0, 226, 0.12);
  border: 1px solid rgba(231, 0, 226, 0.35);
  color: #ff7af6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  display: inline-block;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

/* ==========================================
   1. Physical-to-Digital Laser Scanner (Hero)
   ========================================== */
.scanner-showcase {
  --scan-progress: 48%;
  max-width: 320px;
  margin: 0 auto;
  background: linear-gradient(145deg, #1b1b1f, #121215);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 1rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(231, 0, 226, 0.18);
  user-select: none;
}

.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
}

.scanner-status {
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scanner-percent {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.scanner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 492 / 1024;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0b0e;
  border: 2px solid #26262c;
  cursor: ns-resize;
  touch-action: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.scanner-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Bottom Layer: Digitized Version (Full VALTE App Graphic) */
.layer-digital {
  z-index: 1;
  background: #ffffff;
}

.scanner-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top Layer: Physical Rayquaza Card (Clipped from scan line downward) */
.layer-physical {
  z-index: 2;
  background: radial-gradient(circle at 50% 45%, #262035 0%, #101014 85%);
  clip-path: inset(var(--scan-progress) 0 0 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.physical-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.physical-card-badge {
  position: absolute;
  top: 14px;
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.physical-card-badge i {
  color: var(--primary);
}

.physical-card-img {
  width: 82%;
  max-height: 76%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(231, 0, 226, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Laser Beam Line */
.laser-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--scan-progress);
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.laser-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #00f0ff, #fff, var(--primary), #00f0ff);
  box-shadow:
    0 0 12px var(--primary),
    0 0 24px #00f0ff,
    0 0 40px var(--primary);
}

.laser-handle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  border: 1px solid #00f0ff;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.scanner-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

.scanner-controls input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ==========================================
   2. 3D Tilt & Holographic Cards
   ========================================== */
.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  --glare-opacity: 0;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
}

.tilt-card:hover {
  border-color: rgba(231, 0, 226, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(231, 0, 226, 0.2);
}

.holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--glare-opacity, 0);
  transition: opacity 0.3s ease;
  background:
    radial-gradient(
      circle at var(--gx, 50%) var(--gy, 50%),
      rgba(255, 255, 255, 0.22) 0%,
      rgba(231, 0, 226, 0.18) 25%,
      rgba(0, 240, 255, 0.14) 50%,
      transparent 75%
    ),
    linear-gradient(
      125deg,
      transparent 20%,
      rgba(231, 0, 226, 0.08) 40%,
      rgba(0, 240, 255, 0.1) 50%,
      transparent 70%
    );
  mix-blend-mode: screen;
}

.card-inner-content {
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(231, 0, 226, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 1.5rem;
}

/* ==========================================
   4. Interactive "How It Works" Scroll Story
   ========================================== */
.how-story-section {
  background: var(--surface);
  position: relative;
}

.how-story-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.how-steps-column {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 1rem 0 4rem;
}

.how-step-trigger {
  background: rgba(20, 20, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2.25rem;
  cursor: pointer;
  transition: all 0.35s ease;
  opacity: 0.45;
  transform: scale(0.98);
}

.how-step-trigger.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(35, 18, 38, 0.9), rgba(20, 20, 24, 0.95));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(231, 0, 226, 0.2);
}

.step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(231, 0, 226, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.step-trigger-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(231, 0, 226, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  box-shadow: 0 0 18px var(--glow);
}

.step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.step-meta span {
  font-size: 0.8rem;
  color: #ddd;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.step-meta i {
  color: var(--primary);
}

/* Right Sticky Stage */
.how-stage-sticky {
  position: sticky;
  top: 110px;
}

.how-stage-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.stage-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.stage-progress-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--primary), #00f0ff);
  transition: width 0.4s ease;
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 3;
}

.stage-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--secondary);
  padding: 0.55rem 0.5rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.stage-tab.active {
  background: rgba(231, 0, 226, 0.18);
  border-color: var(--primary);
  color: #fff;
}

.stage-visual-viewport {
  position: relative;
  min-height: 390px;
  z-index: 2;
}

.stage-scene {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  animation: sceneFadeIn 0.45s ease forwards;
}

.stage-scene.active {
  display: flex;
}

@keyframes sceneFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-graphic {
  height: 280px;
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(231, 0, 226, 0.15), #0b0b0e 75%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* Scene 1: Ship */
.shipping-box-anim {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
}

.parcel-card {
  position: relative;
  width: 120px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: floatCard 3s ease-in-out infinite;
}

.parcel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parcel-sleeve {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.52rem;
  font-weight: 700;
  text-align: center;
  padding: 0.25rem;
  color: #00f0ff;
}

.parcel-box {
  background: #1d1d24;
  border: 1px dashed rgba(231, 0, 226, 0.5);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.parcel-box i {
  font-size: 2rem;
  color: var(--primary);
}

.parcel-box span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tracking-pill {
  font-size: 0.65rem;
  background: rgba(52, 199, 89, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 199, 89, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Scene 2: Vault Scan */
.vault-scanner-box {
  position: relative;
  width: 185px;
  height: 235px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 30px rgba(231, 0, 226, 0.25);
}

.vault-scanner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vault-laser-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #fff, var(--primary));
  box-shadow: 0 0 15px #00f0ff, 0 0 25px var(--primary);
  animation: sweepLaser 2.4s ease-in-out infinite;
}

@keyframes sweepLaser {
  0%, 100% { top: 8%; }
  50% { top: 92%; }
}

.vault-telemetry {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #00f0ff;
}

/* Scene 3: App Live Preview */
.app-live-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-live-preview img {
  width: 145px;
  height: 245px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border: 3px solid #333;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.floating-action-pills {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.action-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pill-buy { color: #ff7af6; border-color: rgba(231, 0, 226, 0.4); }
.pill-trade { color: #00f0ff; border-color: rgba(0, 240, 255, 0.4); }
.pill-vault { color: var(--success); border-color: rgba(52, 199, 89, 0.4); }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.scene-caption h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.scene-caption h4 i {
  color: var(--primary);
}

.scene-caption p {
  font-size: 0.95rem;
}

/* App Tour */
.app-tour {
  background: linear-gradient(180deg, var(--background) 0%, #1a0019 100%);
  text-align: center;
}

.phone-mockup {
  position: relative;
  max-width: 267px;
  margin: 4rem auto 0;
  border: 8px solid #333;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.phone-mockup img,
.phone-mockup video {
  width: 100%;
  display: block;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.team-member {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--surface);
  transition: border-color 0.3s ease;
}

.team-member:hover img {
  border-color: var(--primary);
}

/* Footer */
footer {
  background: #0a0a0a;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--surface);
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 900px) {
  .how-story-wrapper {
    grid-template-columns: 1fr;
  }

  .how-stage-sticky {
    position: relative;
    top: 0;
    order: -1;
    margin-bottom: 2rem;
  }

  .how-steps-column {
    gap: 1.5rem;
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }

  .hero-image img {
    transform: none;
  }
  
  .nav-links {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

