/* Adventure App – Playful promo website */

:root {
  --color-bg: #fef9f0;
  --color-card: #fff;
  --color-primary: #8bc48b;
  --color-primary-dark: #6aaa6a;
  --color-accent: #e8b4bc;
  --color-mint: #b8e0c8;
  --color-sun: #f5d4a0;
  --color-lavender: #d4b8e8;
  --color-text: #333;
  --color-text-muted: #555;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --font: 'Fredoka', 'Comic Sans MS', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating background shapes */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  font-size: clamp(2rem, 5vw, 4rem);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.shape--1 { top: 10%; left: 5%;  animation-delay: 0s;       animation-duration: 10s; }
.shape--2 { top: 20%; right: 8%;  animation-delay: -2s;     animation-duration: 12s; }
.shape--3 { top: 60%; left: 10%;  animation-delay: -4s;     animation-duration: 9s; }
.shape--4 { top: 15%; right: 25%;  animation-delay: -1s;     animation-duration: 11s; }
.shape--5 { top: 70%; right: 15%;  animation-delay: -3s;     animation-duration: 8s; }
.shape--6 { top: 40%; left: 3%;   animation-delay: -5s;     animation-duration: 13s; }
.shape--7 { top: 80%; left: 20%;  animation-delay: -2.5s;   animation-duration: 10s; }
.shape--8 { top: 30%; right: 5%;  animation-delay: -6s;     animation-duration: 9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(10px, -15px) rotate(5deg); }
  50%      { transform: translate(-5px, 10px) rotate(-5deg); }
  75%      { transform: translate(15px, 5px) rotate(3deg); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 249, 240, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.35rem;
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.site-header .logo-text {
  color: var(--color-accent);
}

.site-header .logo-highlight {
  color: var(--color-primary-dark);
}

.logo-emoji {
  font-size: 2rem;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-primary-dark);
}

.lang-toggle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Custom language dropdown (styled options; native <select> cannot be themed) */
.lang-dropdown {
  position: relative;
}

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 5.5rem;
  padding: 11px 16px 11px 18px;
  margin: 0;
  border: 2px solid var(--color-mint);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lang-dropdown__trigger:hover {
  border-color: var(--color-primary);
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.lang-dropdown__trigger:focus {
  outline: none;
}

.lang-dropdown__trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-color: var(--color-primary-dark);
}

.lang-dropdown__chevron {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236aaa6a' d='M7 9.5L2 4.5h10z'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.2s ease;
}

.lang-dropdown__trigger[aria-expanded='true'] .lang-dropdown__chevron {
  transform: rotate(180deg);
}

.lang-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100%;
  padding: 8px;
  margin: 0;
  border: 2px solid var(--color-mint);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-hover);
}

.lang-dropdown__panel[hidden] {
  display: none !important;
}

.lang-dropdown__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: calc(var(--radius-lg) - 8px);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.lang-dropdown__option:hover {
  background: rgba(184, 224, 200, 0.55);
}

.lang-dropdown__option:focus {
  outline: none;
}

.lang-dropdown__option:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lang-dropdown__option--active {
  background: var(--color-mint);
  color: var(--color-text);
}

.lang-dropdown__option--active:hover {
  background: var(--color-primary);
  color: #222;
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  /* Keep nav links + language control on one row (wrap pushed EN below) */
  .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .nav a {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .logo-link {
    font-size: 1.12rem;
  }

  .logo-emoji {
    font-size: 1.65rem;
  }

  .lang-dropdown__trigger {
    min-width: 4.25rem;
    padding: 8px 10px 8px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .lang-dropdown__chevron {
    width: 12px;
    height: 12px;
    background-size: 12px 12px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    font-size: 0.78rem;
  }

  .lang-dropdown__trigger {
    min-width: 3.85rem;
    padding: 7px 8px 7px 10px;
    font-size: 0.8rem;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-mint);
  color: var(--color-text);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  animation: pulse-bg 3s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.02); }
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--color-accent);
}

.hero-title .highlight {
  display: inline-block;
  color: var(--color-primary-dark);
  animation: bounce-word 2s ease-in-out infinite;
}

@keyframes bounce-word {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: var(--color-primary);
  color: #333;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #222;
}

.btn-emoji {
  font-size: 1.4rem;
  animation: spin-emoji 4s linear infinite;
}

.btn-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: download-bounce 2s ease-in-out infinite;
}
.btn-download-icon svg {
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
}
@keyframes download-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes spin-emoji {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.btn-large {
  padding: 20px 36px;
  font-size: 1.2rem;
}

/* Phone mockup */
.hero-preview {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  height: 420px;
  background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: float-phone 5s ease-in-out infinite;
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.mockup-dice {
  font-size: 5rem;
  animation: float 8s ease-in-out infinite;
}

.mockup-countdown {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  animation: countdown-pulse 1s ease-in-out infinite;
  min-height: 2.5rem;
}

.mockup-countdown.mockup-countdown--result {
  font-size: 2.5rem;
  animation: none;
}

@keyframes countdown-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.9; }
}

.mockup-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Confetti vanuit het resultaat */
.mockup-confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.mockup-confetti-piece {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  opacity: 0;
  animation: mockup-confetti-burst 1s ease-out forwards;
}
@keyframes mockup-confetti-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--cx), var(--cy)) scale(0.3);
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  color: var(--color-text);
}

/* How it works */
.how-section {
  background: linear-gradient(180deg, transparent, rgba(232, 184, 188, 0.08));
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  background: var(--color-card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-emoji {
  display: block;
  font-size: 3rem;
  margin: 16px 0 12px;
  animation: step-emoji-bounce 2s ease-in-out infinite;
}

.step:nth-child(1) .step-emoji { animation-delay: 0s; }
.step:nth-child(2) .step-emoji { animation-delay: 0.2s; }
.step:nth-child(3) .step-emoji { animation-delay: 0.4s; }

@keyframes step-emoji-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--color-text);
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: var(--shadow-hover);
}

.feature-emoji {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: feature-emoji-float 3s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-emoji { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-emoji { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-emoji { animation-delay: 1s; }
.feature-card:nth-child(4) .feature-emoji { animation-delay: 1.5s; }

@keyframes feature-emoji-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--color-text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* CTA */
.cta-section {
  padding: 60px 0 80px;
}

.cta-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-lavender));
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-hover);
  animation: cta-glow 4s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(232, 184, 188, 0.4); }
  50%      { box-shadow: 0 12px 40px rgba(212, 184, 232, 0.35); }
}

.cta-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #333;
}

.cta-text {
  margin: 0 0 24px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.05rem;
}

.cta-box .btn-primary {
  background: #fff;
  color: #333;
}

.cta-box .btn-primary:hover {
  background: var(--color-bg);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.03);
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-link {
  margin-left: 0.5em;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Terms of Service page */
.terms-page .bg-shapes {
  display: none;
}

.terms-main {
  position: relative;
  z-index: 1;
  padding: 48px 0 80px;
}

.terms-container {
  max-width: 680px;
}

.terms-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text);
}

.terms-section {
  margin-bottom: 28px;
}

.terms-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--color-text);
}

.terms-section p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.support-intro {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.support-cta-wrap {
  margin: 0 0 28px;
}

.support-steps {
  margin: 0;
  padding-left: 1.35em;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.support-steps li {
  margin-bottom: 12px;
}

.support-steps li:last-child {
  margin-bottom: 0;
}

.terms-back {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.link-back {
  color: var(--color-primary-dark);
  font-weight: 500;
  text-decoration: none;
}

.link-back:hover {
  text-decoration: underline;
}

.nav a.nav-current {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Animate in (scroll / initial) */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in[data-delay="100"].visible { transition-delay: 0.1s; }
.animate-in[data-delay="200"].visible { transition-delay: 0.2s; }
.animate-in[data-delay="300"].visible { transition-delay: 0.3s; }
.animate-in[data-delay="400"].visible { transition-delay: 0.4s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .shape,
  .logo-emoji,
  .btn-emoji,
  .btn-download-icon,
  .mockup-dice,
  .mockup-countdown,
  .step-emoji,
  .feature-emoji {
    animation: none;
  }
  .phone-mockup {
    animation: none;
  }
  .hero-title .highlight {
    animation: none;
  }
  .hero-badge {
    animation: none;
  }
  .cta-box {
    animation: none;
  }
  .step:hover,
  .feature-card:hover {
    transform: none;
  }
}
