/* =========================================================================
   SCNNR.nl — Design System
   Photoreal 3D home tours for Dutch real estate.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #07070b;
  --bg-elev: #0e0e16;
  --bg-card: #14141d;
  --bg-card-hover: #1b1b27;
  --border: #1f1f2c;
  --border-bright: #2a2a3a;

  /* Text */
  --text: #f0f0f5;
  --text-dim: #a0a0b0;
  --text-faint: #6a6a78;

  /* Brand */
  --brand-1: #8b5cf6;   /* purple */
  --brand-2: #06b6d4;   /* cyan */
  --brand-3: #f0abfc;   /* magenta accent */
  --brand-bright: #a78bfa;
  --gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(6,182,212,0.18) 100%);

  /* Semantic */
  --success: #34d399;
  --warning: #fbbf24;
  --code-bg: #161620;

  /* Layout */
  --container: 1240px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Type */
  --font-sans: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- ambient background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(139,92,246,0.10), transparent 60%),
    radial-gradient(ellipse 50% 30% at 85% 100%, rgba(6,182,212,0.06), transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* ---------- layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 100px 0; position: relative; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139,92,246,0.28);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--brand-bright);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--brand-bright); border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-bright);
}

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }

p { margin-bottom: 14px; color: var(--text-dim); }
.lead {
  font-size: 19px; color: var(--text-dim);
  max-width: 660px; line-height: 1.55; margin-bottom: 30px;
}

.section-head {
  text-align: center; max-width: 740px; margin: 0 auto 60px;
}
.section-head h2 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p { font-size: 17px; max-width: 580px; margin: 12px auto 0; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(139,92,246,0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(139,92,246,0.42); }
.btn-secondary {
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--brand-bright); }
.btn-ghost { color: var(--text-dim); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-arrow::after {
  content: '→'; transition: transform 0.2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: rgba(7,7,11,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
}
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 16px rgba(139,92,246,0.35);
}
.brand-name { color: var(--text); }
.brand-sub {
  font-size: 11px; color: var(--text-faint); font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim); font-weight: 500; font-size: 14.5px;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-mobile-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 22px;
}
.hero-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint);
}
.hero-meta-item { display: flex; align-items: center; gap: 7px; }
.hero-meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ---------- splat viewer container ---------- */
.viewer-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #11111c 0%, #1a1a26 100%);
  border: 1px solid var(--border-bright);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(139,92,246,0.1),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.viewer-frame.full {
  aspect-ratio: 16 / 9;
}

/* PlayCanvas Web Components (<pc-app>) — see developer.playcanvas.com Gaussian splat web-components guide */
.viewer-frame--pc {
  padding: 0;
}
.viewer-frame--pc pc-app {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 0;
}

.viewer-canvas, .viewer-frame canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.viewer-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(7,7,11,0) 0%, rgba(7,7,11,0.6) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.viewer-overlay.loading {
  background: linear-gradient(180deg, #0c0c14 0%, #14141d 100%);
}
.viewer-overlay.hidden { opacity: 0; pointer-events: none; }

.viewer-controls {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
  z-index: 2;
}
.viewer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(7,7,11,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  color: var(--text-dim);
  pointer-events: auto;
}
.viewer-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--brand-bright); border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-bright);
}
.viewer-hint {
  font-size: 11.5px; color: var(--text-faint);
  background: rgba(7,7,11,0.7); padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.spinner {
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--brand-bright);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.viewer-overlay-text {
  font-size: 13px; color: var(--text-dim);
  text-align: center; max-width: 280px;
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(139,92,246,0.2);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* numbered cards (steps) */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  position: absolute; top: -16px; left: 24px;
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 14px;
  font-family: var(--font-mono);
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
.step-card h3 { margin-top: 16px; margin-bottom: 8px; font-size: 18px; }
.step-card p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* ---------- comparison table ---------- */
.compare {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div { padding: 16px 20px; font-size: 14px; color: var(--text-dim); }
.compare-row.head > div {
  background: var(--bg-elev);
  font-weight: 600; color: var(--text);
  font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase;
}
.compare-row > div:first-child { color: var(--text); font-weight: 500; }
.compare-row.scnnr > div:last-child {
  background: rgba(139,92,246,0.06);
  color: var(--text);
  font-weight: 500;
}
.compare-row.head > div:last-child {
  background: var(--gradient-soft);
  color: var(--brand-bright);
}
.check { color: var(--success); }
.cross { color: var(--text-faint); }

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--border-bright); }
.price-card.featured {
  background: linear-gradient(180deg, #15151f 0%, #11111c 100%);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 24px 60px rgba(139,92,246,0.15);
}
.price-card.featured::before {
  content: 'Meest gekozen';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: white; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: 0.05em;
}
.price-tier {
  font-size: 13px; font-weight: 600; color: var(--brand-bright);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.price-name { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.price-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 6px;
}
.price-num { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price-unit { font-size: 14px; color: var(--text-faint); }
.price-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

.price-features {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  flex: 1;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0;
  font-size: 14px; color: var(--text-dim);
}
.price-features li::before {
  content: '✓';
  color: var(--brand-bright);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-card .btn { width: 100%; }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 17px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 300; color: var(--text-faint);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item div { padding: 0 0 22px 0; font-size: 15px; color: var(--text-dim); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  margin-top: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,0.03) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  margin-top: 16px; font-size: 14px; max-width: 280px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-dim); font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint);
}

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(139,92,246,0.10) 0%, rgba(6,182,212,0.06) 100%);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-band .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--text-dim); margin-bottom: 7px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--brand-bright);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- pages — generic ---------- */
.page-hero {
  padding: 80px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { display: inline-flex; }
.page-hero h1 { max-width: 800px; margin: 0 auto 18px; }
.page-hero p.lead { margin: 0 auto; }

.prose {
  max-width: 740px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-dim);
}
.prose h2 {
  margin-top: 56px;
  font-size: 28px;
  color: var(--text);
}
.prose h3 {
  margin-top: 36px;
  font-size: 20px;
  color: var(--text);
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li { margin-bottom: 8px; color: var(--text-dim); }
.prose a { color: var(--brand-bright); border-bottom: 1px solid rgba(167,139,250,0.3); }
.prose a:hover { border-bottom-color: var(--brand-bright); }

/* ---------- demo gallery ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.demo-tile {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.demo-tile:hover { transform: translateY(-3px); border-color: var(--border-bright); }
.demo-tile-img {
  width: 100%; height: 100%;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-bright);
  font-size: 40px;
}
.demo-tile-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(7,7,11,0.92) 0%, transparent 100%);
}
.demo-tile-meta h4 { font-size: 15px; color: var(--text); margin-bottom: 2px; }
.demo-tile-meta p { font-size: 12px; color: var(--text-faint); margin: 0; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.notfound h1 {
  font-size: 120px;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .compare-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 12.5px; }
  .compare-row > div { padding: 12px 14px; }
}

@media (max-width: 680px) {
  section { padding: 70px 0; }
  .container { padding: 0 20px; }
  .grid-3, .grid-4, .grid-2, .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elev); padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start; gap: 16px;
  }
  .nav-mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    color: var(--text);
  }
  .compare-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .compare-row > div:nth-child(3) { display: none; }
  .cta-band { padding: 40px 24px; }
  .form-row.row-2 { grid-template-columns: 1fr; }
}
