:root {
  --bg: #03070d;
  --bg-2: #06111c;
  --panel: rgba(6, 15, 25, 0.92);
  --panel-strong: rgba(9, 22, 36, 0.98);
  --line: rgba(158, 214, 255, 0.18);
  --line-strong: rgba(158, 214, 255, 0.36);
  --text: #edf7ff;
  --muted: #9fb3c7;
  --soft: #d8ecff;
  --accent: #58d6ff;
  --accent-2: #a6ffcb;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --radius-xl: 30px;
  --arch-h: 190px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -8%, rgba(88, 214, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(166, 255, 203, 0.06), transparent 24rem),
    linear-gradient(180deg, #07111c 0%, #03070d 58%, #02050a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   ARCH HEADER
   ========================= */

.arch-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--arch-h);
  pointer-events: none;
}

.arch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.arch-cluster {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 52px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #031019;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 12px 32px rgba(88, 214, 255, 0.28);
}

.brand-text {
  font-weight: 850;
  font-size: 1.25rem;
}

.arch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(88, 214, 255, 0.38);
  border-radius: 999px;
  color: var(--soft);
  font: inherit;
  font-size: 0.91rem;
  background:
    linear-gradient(180deg, rgba(88, 214, 255, 0.12), rgba(88, 214, 255, 0.055));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: 180ms ease;
  white-space: nowrap;
}

.arch-button:hover {
  color: #ffffff;
  border-color: rgba(166, 255, 203, 0.48);
  background:
    linear-gradient(180deg, rgba(166, 255, 203, 0.14), rgba(88, 214, 255, 0.07));
  transform: translateY(-1px);
}

.chevron {
  margin-left: 8px;
  font-size: 0.8rem;
  opacity: 0.78;
}

.menu-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  left: 0;
  min-width: 190px;
  display: none;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(7, 18, 30, 0.98), rgba(4, 10, 17, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dropdown-menu.is-open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 11px 13px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: 160ms ease;
}

.dropdown-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================
   APP STAGE
   ========================= */

.app-stage {
  min-height: 100vh;
  padding: 74px 0 0;
}

.frame-shell {
  position: relative;
  width: 100vw;
  height: calc(100vh - 74px);
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: rgba(2, 7, 12, 0.78);
  box-shadow: none;
}

.frame-shell iframe {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.frame-glow {
  position: absolute;
  z-index: 1;
  inset: -35%;
  background:
    radial-gradient(circle at 20% 8%, rgba(88, 214, 255, 0.14), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(166, 255, 203, 0.10), transparent 22%);
  pointer-events: none;
}

.frame-placeholder {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(8, 18, 30, 0.92), rgba(5, 11, 18, 0.82)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 84px);
}

.frame-placeholder.is-hidden {
  display: none;
}

.placeholder-label {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.frame-placeholder h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 1;
}

.frame-placeholder p {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

code {
  color: var(--accent);
}

/* =========================
   CONTENT PAGES
   Later trekken we deze header gelijk met de homepage.
   ========================= */

.page-body {
  background:
    radial-gradient(circle at 50% -8%, rgba(88, 214, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, #07111c 0%, #03070d 100%);
}

.page-main {
  width: min(920px, calc(100vw - 34px));
  margin: 0 auto;
  padding: calc(var(--arch-h) + 20px) 0 70px;
}

.page-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(8, 18, 30, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.page-card h2 {
  margin-top: 34px;
}

.page-card p,
.page-card li {
  color: var(--muted);
  line-height: 1.72;
}

.page-card strong {
  color: var(--text);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--accent);
}

/* Tijdelijke fallback voor de oude content-page header */
.site-header {
  display: none;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 760px) {
  :root {
    --arch-h: 170px;
  }

  .arch-cluster {
    top: 54px;
    gap: 18px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .arch-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .dropdown-menu {
    top: 43px;
    min-width: 170px;
  }

  .app-stage {
    padding: 72px 0 0;
  }

  .frame-shell {
    width: 100vw;
    height: calc(100vh - 72px);
    min-height: 520px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .arch-cluster {
    gap: 10px;
  }

  .brand-text {
    display: none;
  }

  .arch-button {
    padding: 0 10px;
  }

  .login-button {
    max-width: 106px;
    overflow: hidden;
  }
}
