:root {
  --bg: #0b1220;
  --bg-alt: #0f1830;
  --card: #141f3a;
  --border: #24304f;
  --text: #e8edf7;
  --muted: #9aa7c2;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --grad: linear-gradient(100deg, #38bdf8, #6366f1);
  --radius: 14px;
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 540px; margin-bottom: 2.5rem; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; gap: 2rem; height: 64px; }

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.02em;
}
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-login {
  color: var(--text); text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
}
.nav-login:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: 999px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 6rem 0 5rem; overflow: hidden; }

.hero-photo { position: relative; padding: 7rem 0 6rem; }

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 18, 32, 0.96) 25%, rgba(11, 18, 32, 0.72) 55%, rgba(11, 18, 32, 0.45) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%);
}
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.12) translateX(-2%); }
}

.hero-photo .hero-inner { position: relative; z-index: 1; }

.hero-photo .hero-text > * { opacity: 0; transform: translateY(18px); animation: rise 0.8s ease forwards; }
.hero-photo .eyebrow   { animation-delay: 0.1s; }
.hero-photo h1         { animation-delay: 0.25s; }
.hero-photo .lead      { animation-delay: 0.4s; }
.hero-photo .hero-cta  { animation-delay: 0.55s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-photo .node { animation: float 5s ease-in-out infinite; }
.hero-photo .n2 { animation-delay: 1.2s; }
.hero-photo .n3 { animation-delay: 2.4s; }
.hero-photo .n4 { animation-delay: 3.6s; border-style: solid; color: var(--text); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ---------- kernwoorden ticker ---------- */
.ticker {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-alt); overflow: hidden; padding: 0.9rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 2rem; width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  white-space: nowrap;
}
.ticker-track i { color: var(--accent); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .ticker-track, .hero-photo .node { animation: none; }
  .hero-photo .hero-text > * { opacity: 1; transform: none; animation: none; }
}

/* ---------- foto-secties ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}

.photo-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: var(--card);
}
.photo-card img { width: 100%; height: auto; display: block; }
.photo-card figcaption {
  padding: 0.9rem 1.25rem; font-size: 0.88rem; color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.9rem; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 0.88rem; }

/* ---------- succes band ---------- */
.band { position: relative; padding: 7rem 0; overflow: hidden; }
.band-bg { position: absolute; inset: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.band-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(11, 18, 32, 0.82), rgba(11, 18, 32, 0.7));
}
.band-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.band blockquote {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.3;
}
.band-sub { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- partner spotlight ---------- */
.spotlight { margin-top: 1rem; }
.spotlight-lead { color: var(--text); font-size: 1.05rem; margin-bottom: 1.5rem; }
.spotlight-lead .module-name { white-space: nowrap; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: center;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); margin-bottom: 1.25rem; }

.lead { color: var(--muted); font-size: 1.1rem; max-width: 480px; margin-bottom: 2rem; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hub visual */
.hub { position: relative; aspect-ratio: 1; max-width: 400px; margin: 0 auto; }

.hub-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--grad);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  padding: 1.4rem 1.6rem; border-radius: 50%;
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.45);
  z-index: 2; white-space: nowrap;
}
.hub-core span { opacity: 0.85; }

.node {
  position: absolute; z-index: 2;
  background: var(--card); border: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  padding: 0.6rem 1rem; border-radius: 10px; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.n1 { top: 8%;  left: 6%; }
.n2 { top: 8%;  right: 6%; }
.n3 { bottom: 8%; left: 6%; }
.n4 { bottom: 8%; right: 6%; color: var(--muted); border-style: dashed; }
.n5 { top: 0; left: 50%; transform: translateX(-50%); }

.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hub-lines line {
  stroke: var(--accent); stroke-width: 1.5; opacity: 0.4;
  stroke-dasharray: 6 6;
  animation: dash 1.2s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -12; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- modules ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.module {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.module:hover { border-color: var(--accent); transform: translateY(-2px); }
.module header { font-family: var(--font-head); font-size: 1.2rem; }
.module-prefix { color: var(--muted); font-weight: 400; }
.module-name { font-weight: 700; color: var(--accent); }
.module p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.module-partner { border-style: dashed; }

.tag {
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  text-decoration: none;
}
.tag-live { background: rgba(56, 189, 248, 0.12); color: var(--accent); }
.tag-soon { background: rgba(154, 167, 194, 0.12); color: var(--muted); }
.tag-cta  { background: var(--grad); color: #fff; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }

.plan {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
  position: relative;
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.2rem; }
.price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 0.5rem; flex: 1; }
.plan li { color: var(--muted); font-size: 0.95rem; padding-left: 1.4rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { text-align: center; }

/* ---------- partners ---------- */
.partners-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }

.checklist { list-style: none; display: grid; gap: 0.6rem; }
.checklist li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.partner-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: grid; gap: 1rem; justify-items: start;
}
.partner-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.9rem; }
.footer-inner a { color: var(--accent); text-decoration: none; }
.footer-note { width: 100%; font-size: 0.78rem; opacity: 0.7; }

/* ---------- auth (login) ---------- */
.auth-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(600px 400px at 80% 90%, rgba(99, 102, 241, 0.08), transparent),
    var(--bg);
}

.auth-wrap { width: 100%; max-width: 420px; padding: 2rem 1.5rem; display: grid; gap: 1.5rem; justify-items: center; }

.auth-logo { font-size: 1.4rem; }
.auth-logo svg { width: 34px; height: 34px; }

.auth-card {
  width: 100%;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.auth-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.auth-card form { display: grid; gap: 0.4rem; }
.auth-card label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 0.6rem; }
.auth-card input {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 1rem;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }

.auth-card select {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 1rem;
}
.auth-card select:focus { outline: none; border-color: var(--accent); }

.auth-btn { margin-top: 1.25rem; border: none; cursor: pointer; font-size: 1rem; font-family: var(--font-body); }

.auth-error {
  background: rgba(248, 113, 113, 0.1); color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 8px; padding: 0.6rem 0.9rem;
  font-size: 0.9rem; margin-bottom: 1rem;
}

.auth-note { color: var(--muted); font-size: 0.82rem; margin-top: 1.25rem; text-align: center; }
.auth-back a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.auth-back a:hover { color: var(--text); }

.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0; color: var(--muted); font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.btn-ms {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.7rem 1rem; border-radius: 999px;
  background: #fff; color: #1f2937; text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-ms:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ms svg { width: 18px; height: 18px; }

/* ---------- werkplek-schil (smalle balk + module-frames) ---------- */
.shell-body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

.shell-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 0.5rem;
  height: 42px; padding: 0 0.75rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.shell-logo {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 800; font-size: 0.9rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.02em;
  white-space: nowrap;
}
.shell-logo svg { width: 20px; height: 20px; color: var(--accent); }
.shell-logo span { color: var(--accent); }

.shell-tabs {
  display: flex; align-items: center; gap: 0.2rem;
  margin-left: 0.75rem; overflow-x: auto; scrollbar-width: none;
}
.shell-tabs::-webkit-scrollbar { display: none; }

.shell-tab {
  appearance: none; background: transparent; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 0.28rem 0.75rem; border-radius: 8px; cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.shell-tab:hover { color: var(--text); background: var(--card); }
.shell-tab.is-active { color: var(--text); background: var(--card); border-color: var(--border); }
.shell-tab-ext span { font-size: 0.75em; opacity: 0.7; }

.shell-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.82rem; white-space: nowrap;
}
.shell-user { color: var(--muted); }
.shell-link { color: var(--text); text-decoration: none; font-weight: 600; }
.shell-link:hover { color: var(--accent); }

.shell-main { flex: 1 1 auto; position: relative; min-height: 0; }

.shell-view { position: absolute; inset: 0; }
.shell-view[hidden] { display: none; }
.shell-start { overflow-y: auto; }

.shell-frame-wrap { background: var(--bg); }
.shell-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shell-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.95rem;
}

@media (max-width: 720px) {
  .shell-user { display: none; }
}

/* ---------- dashboard ---------- */
.dash { padding-top: 3.5rem; }
.dash-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.dash-plan { color: var(--accent); }
.dash-h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.dash-note { color: var(--muted); font-size: 0.88rem; margin-top: 2rem; max-width: 540px; }
.nav-user { color: var(--muted); font-size: 0.95rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner, .partners-inner, .split { grid-template-columns: 1fr; }
  .steps, .plans, .modules { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 3.5rem 0; }
  .hero-photo { padding: 4.5rem 0 4rem; }
  .hub { max-width: 320px; }
  .spotlight .photo-card { order: -1; }
  .band { padding: 4.5rem 0; }
}
