/* ==========================================================================
   Crysto Landing Page V2 — Het Cryptoparadijs
   Full-section layout, generous spacing, cinematic
   ========================================================================== */

:root {
  --color-bg: #0a0e14;
  --color-bg-dark: #060810;
  --color-teal: #2dd4bf;
  --color-teal-dark: #0d9488;
  --color-teal-glow: rgba(45, 212, 191, 0.10);
  --color-text: #f0f0f0;
  --color-text-muted: rgba(240, 240, 240, 0.55);
  --color-text-subtle: rgba(240, 240, 240, 0.25);
  --color-border: rgba(255, 255, 255, 0.06);
  --font-serif: 'Prata', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

html {
  overflow-x: hidden;
}

/* ==========================================================================
   Fixed Backgrounds
   ========================================================================== */

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(20, 18, 36, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
  z-index: 0;
  pointer-events: none;
}

.bg-image {
  position: fixed;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1559128010-7c1ad6e1b6a5?w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.6) 0%,
    rgba(10, 14, 20, 0.95) 35%,
    rgba(10, 14, 20, 1) 60%
  );
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Global Section — each section = full viewport height (or near it)
   ========================================================================== */

main {
  position: relative;
  z-index: 1;
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px 32px;
  position: relative;
  text-align: center;
}

/* ==========================================================================
   SECTION 1 — Hero
   ========================================================================== */

.section--hero {
  padding-bottom: 40px;
}

.palm-silhouette {
  position: absolute;
  width: 280px;
  height: 500px;
  opacity: 0.035;
  z-index: 0;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
}

.palm-left {
  left: -80px;
  top: 5%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cpath d='M100 400 C100 300 40 250 10 180 C-10 130 20 80 60 40 C80 20 100 10 100 10 C100 10 70 60 80 120 C85 150 100 180 100 200 M100 400 C100 280 130 220 160 160 C180 120 170 70 140 30 C130 15 100 10 100 10 C100 10 140 50 135 100 C130 140 110 180 100 220' fill='%232dd4bf' /%3E%3C/svg%3E");
}

.palm-right {
  right: -80px;
  top: 0%;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cpath d='M100 400 C100 300 40 250 10 180 C-10 130 20 80 60 40 C80 20 100 10 100 10 C100 10 70 60 80 120 C85 150 100 180 100 200 M100 400 C100 280 130 220 160 160 C180 120 170 70 140 30 C130 15 100 10 100 10 C100 10 140 50 135 100 C130 140 110 180 100 220' fill='%232dd4bf' /%3E%3C/svg%3E");
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 2vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  background: linear-gradient(180deg, var(--color-text) 30%, rgba(240, 240, 240, 0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 3vw, 1.25rem);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-teal), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; height: 60px; }
  50% { opacity: 0.8; height: 80px; }
}

/* ==========================================================================
   SECTION 2 — Book
   ========================================================================== */

.section--book {
  gap: 60px;
  padding: 120px 32px;
}

.book-wrapper {
  position: relative;
}

.book-cover-frame {
  position: relative;
  display: inline-block;
}

.book-cover {
  width: clamp(280px, 40vw, 420px);
  height: auto;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(45, 212, 191, 0.06);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.book-shadow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.book-text {
  max-width: 560px;
}

.book-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.8;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.book-meta {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 3 — Trailer
   ========================================================================== */

.section--trailer {
  gap: 40px;
  padding: 100px 32px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-teal);
  opacity: 0.3;
}

.trailer-frame {
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(4px);
}

.trailer-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
  color: var(--color-text-subtle);
}

.play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  transition: all 0.4s ease;
}

.play-icon:hover {
  background: rgba(45, 212, 191, 0.1);
  border-color: var(--color-teal);
  transform: scale(1.08);
}

.play-icon svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.trailer-placeholder p {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 4 — Form
   ========================================================================== */

.section--form {
  padding: 120px 32px;
}

.form-container {
  width: 100%;
  max-width: 480px;
  text-align: center;
  position: relative;
}

.form-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-teal-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 20px;
}

.form-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input {
  width: 100%;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input::placeholder {
  color: var(--color-text-subtle);
}

.form-group input:focus {
  border-color: var(--color-teal);
  background: rgba(45, 212, 191, 0.04);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.08);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 48px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
  color: var(--color-bg-dark);
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 44px rgba(45, 212, 191, 0.35);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button .arrow {
  width: 20px;
  height: 20px;
}

.form-error {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #f87171;
}

.privacy-text {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 32px;
  border-top: 1px solid var(--color-border);
}

footer p {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Bedankt Page — Coin
   ========================================================================== */

.page-bedankt {
  overflow-x: hidden;
}

.bedankt-hero {
  min-height: 40vh;
  min-height: 40svh;
  padding: 80px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.coin-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px 40px;
  overflow: hidden;
}

.coin-container {
  position: relative;
  width: min(300px, 75vw);
  height: min(300px, 75vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(212, 164, 76, 0.06) 45%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.coin-video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Download Section (bedankt)
   ========================================================================== */

.download-section {
  display: flex;
  justify-content: center;
  padding: 0 20px 60px;
}

.download-container {
  text-align: center;
}

/* ==========================================================================
   Book Info (bedankt)
   ========================================================================== */

.book-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px;
  text-align: center;
  gap: 6px;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.book-author {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

/* ==========================================================================
   Confetti Canvas
   ========================================================================== */

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* ==========================================================================
   Animation helpers
   ========================================================================== */

.anim-fade {
  opacity: 0;
  transform: translateY(30px);
}

.anim-slide {
  opacity: 0;
  transform: translateY(60px);
}

.anim-slide-delay {
  opacity: 0;
  transform: translateY(40px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .section {
    padding: 80px 24px;
    min-height: auto;
    min-height: 80svh;
  }

  .section--book {
    gap: 40px;
    padding: 80px 24px;
  }

  .book-cover {
    width: clamp(220px, 60vw, 300px);
  }

  .book-quote {
    font-size: 1.0625rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 16px;
  }

  .section--hero {
    padding-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 10vw, 3.5rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .bedankt-hero .hero-title {
    font-size: clamp(1.5rem, 9vw, 2.75rem);
  }

  .book-cover {
    width: clamp(200px, 70vw, 280px);
  }

  .trailer-frame {
    border-radius: 12px;
  }

  .cta-button {
    padding: 16px 32px;
    font-size: 0.875rem;
    max-width: 100%;
  }

  .palm-silhouette {
    display: none;
  }

  .scroll-hint {
    bottom: 24px;
  }

  .bedankt-hero {
    min-height: 35vh;
    min-height: 35svh;
    padding-top: 60px;
  }

  .coin-container {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }

  .coin-glow {
    inset: -30px;
  }
}
