/* ==========================================================================
   BLOCK SCULPTURE: 3D PUZZLE — LANDING PAGE SPECIFIC STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 3D Hero Preview Canvas Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-canvas-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.canvas-container {
  width: 100%;
  flex: 1;
  cursor: grab;
  position: relative;
}

.canvas-container:active {
  cursor: grabbing;
}

.canvas-overlay-hints {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

/* Floating UI Badges */
.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  z-index: 3;
  animation: floatSlow 4s ease-in-out infinite;
}

.floating-badge-snap {
  top: 10%;
  left: -20px;
  border-color: var(--border-cyan);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25);
  animation-delay: 0s;
}

.floating-badge-stars {
  bottom: 12%;
  right: -20px;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
  animation-delay: 2s;
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.floating-icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.badge-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   2. PILLARS & FEATURES SECTION
   -------------------------------------------------------------------------- */
.features-section {
  padding: 100px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-highlight);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  position: relative;
}

.icon-purple {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. INTERACTIVE WEB MINI-PUZZLE DEMO SECTION
   -------------------------------------------------------------------------- */
.demo-section {
  padding: 100px 0;
  position: relative;
}

.demo-wrapper {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.demo-canvas-box {
  width: 100%;
  height: 420px;
  background: #090d16;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

#puzzle-demo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.demo-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.demo-level-tag {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.demo-controls-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  z-index: 5;
}

.demo-ctrl-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.demo-ctrl-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.demo-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.demo-step-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-win-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-bounce);
  z-index: 10;
}

.demo-win-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --------------------------------------------------------------------------
   4. WORLDS & DIORAMA SHOWCASE
   -------------------------------------------------------------------------- */
.worlds-section {
  padding: 100px 0;
  position: relative;
}

.world-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.world-tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.world-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.world-tab-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.world-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.world-visual-wrapper {
  position: relative;
  height: 100%;
  min-height: 380px;
  background: #000;
  overflow: hidden;
}

.world-visual-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.world-showcase-card:hover .world-visual-wrapper img {
  transform: scale(1.04);
}

.world-details-box {
  padding: 48px;
}

.world-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  margin-bottom: 12px;
}

.world-details-box h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.world-details-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.sculpture-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sculpture-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   5. CUSTOMIZATION STUDIO
   -------------------------------------------------------------------------- */
.studio-section {
  padding: 100px 0;
  position: relative;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
}

.studio-card h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.studio-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.material-swatches {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.swatch-item {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.swatch-item:hover, .swatch-item.active {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: var(--shadow-sm);
}

.swatch-ceramic { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #0f172a; }
.swatch-wood { background: linear-gradient(135deg, #d97706, #78350f); color: #fff; }
.swatch-crystal { background: linear-gradient(135deg, #38bdf8, #818cf8); color: #fff; box-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }
.swatch-marble { background: linear-gradient(135deg, #f8fafc, #cbd5e1); color: #0f172a; }
.swatch-cyber { background: linear-gradient(135deg, #10b981, #06b6d4); color: #000; }

.swatch-holo-cyan { background: #06b6d4; box-shadow: 0 0 12px #06b6d4; }
.swatch-holo-magenta { background: #ec4899; box-shadow: 0 0 12px #ec4899; }
.swatch-holo-gold { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.swatch-holo-neon { background: #10b981; box-shadow: 0 0 12px #10b981; }

/* --------------------------------------------------------------------------
   6. FAQ ACCORDION SECTION
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 100px 0;
  position: relative;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--accent-primary);
  color: #fff;
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   7. DOWNLOAD CTA BANNER SECTION
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 80px 0 120px 0;
  position: relative;
}

.cta-banner-box {
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.25), transparent 60%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.2), transparent 60%),
              var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 70px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--glow-primary);
  position: relative;
  overflow: hidden;
}

.cta-banner-box h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 20px;
}

.cta-banner-box p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   RESPONSIVE LANDING ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

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

  .demo-wrapper {
    grid-template-columns: 1fr;
  }

  .world-showcase-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .hero-canvas-card {
    max-width: 100%;
  }

  .floating-badge {
    display: none;
  }

  .cta-banner-box {
    padding: 40px 20px;
  }
}
