/* Planet3D — stijl gebaseerd op de splash-art in gfx/: pastel lucht, gloeiende bol, licht en dromerig. */

:root {
  --sky-top: #8fb1ea;
  --sky-mid: #c3c9f1;
  --sky-low: #efe7f4;
  --ink: #24314f;
  --ink-soft: #56618a;
  --accent: #4f6ef7;
  --accent-dark: #3b55d6;
  --gold: #f4c96b;
  --surface: #ffffff;
  --surface-alt: #f4f6fd;
  --line: #dfe4f5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(52, 74, 140, .12);
  --font: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow { width: min(720px, 92%); }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 46rem;
  margin-bottom: 2.2rem;
}

/* ---------- Knoppen ---------- */

.btn {
  display: inline-block;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7b5cf0);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 110, 247, .35);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(79, 110, 247, .45); }

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: transparent;
}
.btn-ghost:hover { background: rgba(79, 110, 247, .08); }

.btn-light {
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 228, 245, .7);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 64px;
}

.brand { display: flex; align-items: stretch; height: 64px; }
.brand-logo { height: 100%; width: auto; }

.main-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--accent-dark); }

.header-actions { display: flex; gap: .6rem; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch button {
  border: 0;
  background: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: .3rem .7rem;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--accent);
  color: #fff;
}

.lang-switch button:not(.active):hover { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 0 8rem;
  background:
    radial-gradient(ellipse 90% 60% at 15% 85%, rgba(255, 205, 225, .35), transparent 60%),
    radial-gradient(ellipse 90% 60% at 85% 80%, rgba(255, 230, 190, .3), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}

.hero-sphere {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.hero-sphere img {
  width: min(720px, 95vw);
  opacity: .9;
  animation: float 9s ease-in-out infinite;
}

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

.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  width: min(480px, 80vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 24px rgba(255, 255, 255, .55));
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 14px rgba(80, 100, 180, .35);
}

.hero-sub {
  max-width: 40rem;
  margin: .8rem auto 2rem;
  color: #3c4770;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 1.3rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--surface));
}

/* ---------- Secties ---------- */

.section { padding: 5rem 0; }

.section-alt { background: var(--surface-alt); }

/* Functie-kaarten */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 4px 14px rgba(52, 74, 140, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon { font-size: 1.9rem; margin-bottom: .6rem; }

.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .3rem; }
.feature-card p { color: var(--ink-soft); font-size: .95rem; }

/* Split-sectie (De browser) */

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

.framed {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-text h2 { margin-bottom: .8rem; }
.split-text > p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.checklist {
  list-style: none;
  margin-bottom: 1.6rem;
}
.checklist li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: .45rem;
  color: var(--ink);
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Download-sectie */

.download-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--sky-low) 0%, var(--sky-mid) 100%);
}

.download-sphere {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: .35;
  pointer-events: none;
}

.download-inner { position: relative; z-index: 1; }
.download-inner > p { color: var(--ink-soft); margin-bottom: 1.8rem; }

/* Tijdlijn */

.timeline {
  list-style: none;
  border-left: 2px solid var(--line);
  padding-left: 0;
}

.timeline li {
  display: flex;
  gap: 1.2rem;
  padding: 0 0 1.6rem 1.4rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: .45rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, .18);
}

.timeline-version {
  font-weight: 700;
  color: var(--accent-dark);
  min-width: 4.2rem;
}

.timeline-body time {
  display: block;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 4%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--ink-soft);
  background: var(--surface-alt);
}

.footer-version {
  font-weight: 600;
  color: var(--accent-dark);
}

/* Acceptatieomgeving: footer volledig rood */
.site-footer.acc {
  background: #c62828;
  color: #fff;
  border-top-color: #a51f1f;
}
.site-footer.acc .footer-version { color: #fff; }

.footer-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.footer-link:hover { color: var(--accent-dark); }
.site-footer.acc .footer-link { color: #fff; }

/* ---------- Subpagina's (Support, Privacy) ---------- */

.prose h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}

.prose h2 {
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin: 1.8rem 0 .4rem;
}

.prose p { margin: .6rem 0; }

.prose ul {
  margin: .6rem 0 .6rem 1.4rem;
}
.prose li { margin-bottom: .35rem; }

.prose-meta {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

/* Tweetalige pagina-inhoud: JS zet het lang-attribuut op <html> */
html[lang="nl"] .only-en { display: none; }
html[lang="en"] .only-nl { display: none; }

/* ---------- Responsief ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .download-sphere { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; margin-left: 0; }

  .brand { height: 48px; }
  .header-inner { min-height: 56px; }
  .lang-switch { margin-left: auto; }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex;
  }

  .site-header.nav-open .header-inner {
    flex-wrap: wrap;
  }

  .site-header.nav-open .main-nav {
    flex-direction: column;
    width: 100%;
    gap: .8rem;
    order: 3;
    margin: .6rem 0 0;
  }

  .site-header.nav-open .header-actions {
    width: 100%;
    order: 4;
    margin-top: .8rem;
    padding-bottom: .5rem;
  }

  .hero { padding: 4rem 0 6rem; }

  .timeline li { flex-direction: column; gap: .1rem; }
}
