/* VidiScope site styles — layered on top of design system tokens */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Dark theme overrides ─── */
[data-theme="dark"] {
  --bg-canvas: #0B131D;
  --bg-surface: #15202E;
  --bg-surface-2: #1B2738;
  --fg-1: #F3F6FA;
  --fg-2: #C5CFDC;
  --fg-3: #8A98AB;
  --border-subtle: rgba(255,255,255,0.08);
  --border-default: rgba(255,255,255,0.14);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 14px 32px rgba(0,0,0,0.55), 0 4px 8px rgba(0,0,0,0.35);
}

/* Reset for buttons / links */
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ─── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--vs-midnight-navy); color: var(--fg-on-dark); }
.section--surface-2 { background: var(--bg-surface-2); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head--left { text-align: left; margin: 0 0 56px; max-width: 720px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 16px 0 16px;
  text-wrap: balance;
  color: var(--fg-1);
}
.section--dark .section-head h2 { color: var(--fg-on-dark); }
.section-head p { color: var(--fg-2); font-size: 15px; line-height: 1.6; margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,0.75); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.gold-rule {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  margin: 12px auto 0;
}
.section-head--left .gold-rule { margin: 12px 0 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn--primary {
  background: var(--accent);
  color: var(--vs-midnight-navy);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); }

.btn--ghost-dark {
  background: transparent;
  color: var(--fg-on-dark);
  border-color: rgba(255,255,255,0.18);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.06); }

.btn--ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border-default);
}
.btn--ghost:hover { background: var(--bg-surface-2); }

.btn--link {
  padding: 0;
  background: none;
  border: none;
  color: var(--fg-1);
  font-weight: 600;
}
.btn--link:hover { color: var(--accent-press); }

/* Inline-Editor (Edit-Mode) */
.vs-edit-target {
  outline: 1px dashed rgba(217, 164, 64, 0.35);
  outline-offset: 2px;
  cursor: pointer;
  transition: outline-color 120ms ease, background-color 120ms ease;
  border-radius: 2px;
}
.vs-edit-target:hover {
  outline: 2px solid #D9A440;
  outline-offset: 2px;
  background-color: rgba(217, 164, 64, 0.08);
}
.vs-edit-target.has-draft {
  outline-color: #F2A01F;
  background-color: rgba(242, 160, 31, 0.15);
}

.vs-edit-popover {
  position: absolute;
  width: 420px;
  background: white;
  border: 1px solid #D9A440;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: 12px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}
.vs-edit-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 0s;
}
.vs-edit-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vs-edit-key {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vs-edit-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0 6px;
}
.vs-edit-close:hover { color: #111827; }
/* Container-Level (data-vs-key, data-vs-field) — vor JS-Init schon visuell markieren */
[data-vs-key]:not(.vs-edit-target),
[data-vs-field]:not(.vs-edit-target) {
  outline: 1px dashed rgba(217, 164, 64, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.vs-edit-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}
.vs-edit-tab {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.vs-edit-tab:hover { color: #111827; }
.vs-edit-tab.is-active {
  color: #D9A440;
  border-bottom-color: #D9A440;
}
.vs-edit-tab-panel { display: none; }
.vs-edit-tab-panel.is-active { display: block; }

.vs-edit-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  color: #111827;
  background: white;
}
.vs-edit-textarea:focus {
  outline: none;
  border-color: #D9A440;
  box-shadow: 0 0 0 3px rgba(217, 164, 64, 0.2);
}
.vs-edit-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vs-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.vs-edit-actions button {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.vs-edit-cancel {
  background: transparent;
  color: #6b7280;
  border-color: #d1d5db;
}
.vs-edit-cancel:hover { background: #f3f4f6; }
.vs-edit-save {
  background: #D9A440;
  color: white;
}
.vs-edit-save:hover { background: #c08f33; }
.vs-edit-save:disabled { opacity: 0.6; cursor: wait; }

.vs-edit-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  z-index: 10000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: opacity 400ms ease;
}
.vs-edit-toast--success { background: #16a34a; }
.vs-edit-toast--error   { background: #dc2626; }
.vs-edit-toast--info    { background: #2563eb; }
.vs-edit-toast.is-fading { opacity: 0; }

/* Preview-Mode-Banner */
.vs-preview-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(90deg, #D9A440, #F2A01F);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.vs-preview-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.vs-preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  animation: vs-pulse 1.4s ease-in-out infinite;
}
@keyframes vs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.vs-preview-msg { opacity: 0.8; font-weight: 500; }
.vs-preview-exit {
  margin-left: auto;
  padding: 4px 12px;
  background: #1a1a1a;
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.vs-preview-exit:hover { background: #000; }
/* Nav nach unten schieben wenn Banner sichtbar */
body:has(.vs-preview-banner) .nav { top: 40px; }
body:has(.vs-preview-banner) main { padding-top: 40px; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  z-index: 80;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  color: #fff;
}
.nav.is-scrolled {
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  color: var(--fg-1);
}
/* Sicherheits-Guard: Mobile-Nav muss immer voll-opak sein, kein Bleed-through. */
@media (max-width: 960px) {
  .nav { background: var(--bg-surface) !important; box-shadow: var(--shadow-sm) !important; color: var(--fg-1) !important; }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  /* Wichtig: über dem mobile-panel liegen (lokaler Stacking-Context der Nav) */
  position: relative;
  z-index: 2;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-logo svg { width: 26px; height: 26px; }
.nav-longlogo {
  display: block;
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--dur-base) var(--ease-out);
}
.nav.is-scrolled .nav-longlogo { filter: none; }
[data-theme="dark"] .nav.is-scrolled .nav-longlogo { filter: brightness(0) invert(1); }
.nav-logo .gmbh { font-size: 12px; font-weight: 500; opacity: 0.6; margin-left: 4px; letter-spacing: 0.04em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav.is-scrolled .nav-links a { opacity: 1; color: var(--fg-2); }
.nav.is-scrolled .nav-links a:hover { color: var(--fg-1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.nav.is-scrolled .icon-btn { border-color: var(--border-default); }
.nav.is-scrolled .icon-btn:hover { background: var(--bg-surface-2); }
.icon-btn svg { width: 16px; height: 16px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav.is-scrolled .lang-toggle { border-color: var(--border-default); }
.lang-toggle button {
  padding: 7px 10px;
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.7;
}
.lang-toggle button.is-active { background: rgba(255,255,255,0.12); opacity: 1; }
.nav.is-scrolled .lang-toggle button.is-active { background: var(--bg-surface-2); color: var(--fg-1); }

/* Account-Menu (eingeloggte User) */
.account-menu { position: relative; display: inline-block; }
.account-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--fg-1);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 120ms ease, border-color 120ms ease;
}
.account-menu-btn:hover { background: var(--bg-surface-2); border-color: var(--vs-gold); }
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vs-gold, #D9A440);
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.account-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chevron { opacity: 0.5; transition: transform 150ms ease; }
.account-menu.is-open .account-chevron { transform: rotate(180deg); }

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.04);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
  z-index: 100;
}
.account-menu.is-open .account-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 0s;
}

.account-menu-header {
  padding: 10px 12px 8px;
}
.account-menu-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-1);
  line-height: 1.2;
}
.account-menu-email {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 2px;
  word-break: break-all;
}
.account-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 100ms ease;
}
.account-menu-item:hover { background: var(--bg-surface-2); }
.account-menu-item svg { opacity: 0.6; flex-shrink: 0; }
.account-menu-item--danger { color: #dc2626; }
.account-menu-item--danger:hover { background: rgba(220, 38, 38, 0.08); }
.account-menu-logout { margin: 0; }

@media (max-width: 768px) {
  .account-name { display: none; }
  .account-menu-btn { padding: 4px; border-radius: 999px; }
}

/* Mobile menu */
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  /* Mobile: nur Account-Menu (wenn auth) + Burger im Top-Bar.
     Demo-Button + Lang-Toggle wandern ins Burger-Menü. */
  .nav-actions > .lang-toggle,
  .nav-actions > .btn--primary,
  .nav-actions > a.btn--ghost {
    display: none !important;
  }
  .nav-actions { gap: 8px; }
  /* Logo nicht überlaufen lassen */
  .nav-longlogo { height: 28px !important; max-width: 65vw; object-fit: contain; }
  .nav-inner { gap: 12px; }
  .mobile-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    /* Vom oberen Fensterrand bis runter, aber NICHT die Nav überdecken */
    padding: 80px 24px 24px;       /* 64px Nav + 16px Abstand */
    background: var(--bg-surface);
    color: var(--fg-1);
    box-shadow: var(--shadow-lg);
    max-height: 100vh;
    overflow-y: auto;
    /* Komplett aus dem Viewport schieben wenn geschlossen */
    transform: translateY(-100%);
    transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
    visibility: hidden;
    /* UNTER der nav-inner: kleinerer z-index im lokalen Nav-Stacking-Context */
    z-index: 1;
  }
  .mobile-panel.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--dur-base) var(--ease-out), visibility 0s linear 0s;
  }
  .mobile-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); font-weight: 500; }
  .mobile-panel a.btn { border-bottom: none; padding: 14px 20px; text-align: center; }

  /* Sprachumschalter im Mobile-Panel */
  .mobile-lang-toggle {
    display: inline-flex;
    margin: 12px 0;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    overflow: hidden;
  }
  .mobile-lang-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border-default);
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-2);
  }
  .mobile-lang-btn:last-child { border-right: none; }
  .mobile-lang-btn.is-active { background: var(--vs-gold, #D9A440); color: white; }
  .mobile-lang-btn .flag {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
    display: inline-flex;
  }
  .mobile-lang-btn .flag img { width: 100%; height: 100%; object-fit: cover; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  background: var(--vs-midnight-navy);
  color: var(--fg-on-dark);
  padding: 168px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 920px;
  height: 920px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at center,
      transparent 0 18%,
      rgba(217,164,64,0.10) 18% 18.6%,
      transparent 18.6% 28%,
      rgba(217,164,64,0.08) 28% 28.5%,
      transparent 28.5% 40%,
      rgba(217,164,64,0.06) 40% 40.4%,
      transparent 40.4% 54%,
      rgba(217,164,64,0.05) 54% 54.3%,
      transparent 54.3% 70%,
      rgba(217,164,64,0.04) 70% 70.25%,
      transparent 70.25%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(7,26,47,0.6) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 18px 0 24px;
}
.hero h1 .line { display: block; opacity: 0; transform: translateY(14px); animation: heroLine 0.7s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.24s; color: var(--accent); }
@keyframes heroLine { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 0 32px;
  opacity: 0;
  animation: heroLine 0.7s var(--ease-out) 0.36s forwards;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: heroLine 0.7s var(--ease-out) 0.48s forwards; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
  opacity: 0;
  animation: heroLine 0.7s var(--ease-out) 0.6s forwards;
}
.hero-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: -0.01em; }
.hero-stat .l { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 6px; }

/* Aperture art */
.aperture-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-left: auto;
  opacity: 0;
  animation: heroLine 1s var(--ease-out) 0.5s forwards;
}

/* ─── Trust strip ─── */
.trust {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 0;
}
.trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
  margin-bottom: 20px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 64px;
  align-items: center;
}
.trust-row .trust-logo {
  flex: 0 0 auto;
  min-width: 100px;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg-3);
  text-align: center;
  letter-spacing: -0.01em;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 80px;
  transition: opacity 200ms ease;
}
.trust-logo-name {
  font-size: 12px;
  line-height: 1.2;
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.trust-logo-name--solo {
  font-size: 15px;
  font-weight: 600;
}
.trust-row .trust-logo img,
.trust-logo .trust-logo-img,
img.trust-logo-img {
  max-height: 48px !important;
  max-width: 140px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  display: block;
  transition: filter 200ms ease, opacity 200ms ease;
}
.trust-logo:hover .trust-logo-img,
.trust-logo--linked:hover .trust-logo-img {
  filter: grayscale(0);
  opacity: 1;
}
.trust-logo--linked {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.trust-logo--linked:hover { opacity: 1; }
@media (max-width: 800px) { .trust-row { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } }

/* ─── Products switcher ─── */
.product-tabs {
  display: inline-flex;
  background: var(--bg-surface-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 48px;
}
.product-tabs button {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--fg-2);
  border-radius: 999px;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.product-tabs button.is-active { background: var(--bg-surface); color: var(--fg-1); box-shadow: var(--shadow-sm); }

.product-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) { .product-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; } }
.product-tag { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.product-card h3 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.015em; }
.product-card .body { color: var(--fg-2); font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.product-bullets { list-style: none; padding: 0; margin: 0 0 28px; }
.product-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--fg-1);
}
.product-bullets svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.product-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--vs-midnight-navy);
  border-radius: 10px;
  padding: 24px;
  color: #fff;
  overflow: hidden;
}

/* ─── Solutions grid ─── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .solutions-grid { grid-template-columns: 1fr; } }
.solution-card {
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.solution-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-default); }
.solution-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-press);
  margin-bottom: 16px;
}
.solution-icon svg { width: 22px; height: 22px; }
.solution-card h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.solution-card p { color: var(--fg-2); font-size: 15px; line-height: 1.55; margin: 0; }

/* ─── KPI band ─── */
.kpi-band {
  background: var(--vs-midnight-navy);
  color: var(--fg-on-dark);
  position: relative;
  overflow: hidden;
}
.kpi-band::before {
  content: "";
  position: absolute;
  left: -200px; top: -200px;
  width: 600px; height: 600px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217,164,64,0.08), transparent 60%);
  pointer-events: none;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 800px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-cell { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.10); }
.kpi-cell .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 6vw, 64px); letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.kpi-cell .l { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin: 12px 0 8px; }
.kpi-cell .d { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ─── Pricing ─── */
.price-toggle {
  display: inline-flex;
  background: var(--bg-surface-2);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 48px;
}
.price-toggle button {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--fg-2);
  border-radius: 999px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.price-toggle button.is-active { background: var(--bg-surface); color: var(--fg-1); box-shadow: var(--shadow-sm); }
.price-toggle .badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-press);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.plan--featured {
  background: var(--vs-midnight-navy);
  color: var(--fg-on-dark);
  border: none;
  position: relative;
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.plan--featured::after {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--vs-midnight-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h4 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.plan .desc { font-size: 14px; color: var(--fg-2); margin: 0 0 24px; line-height: 1.5; min-height: 42px; }
.plan--featured .desc { color: rgba(255,255,255,0.7); }
.plan .price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan .price small { font-size: 14px; font-weight: 500; color: var(--fg-3); margin-left: 4px; }
.plan--featured .price small { color: rgba(255,255,255,0.6); }
.plan .price-per { font-size: 13px; color: var(--fg-3); margin: 6px 0 24px; }
.plan--featured .price-per { color: rgba(255,255,255,0.6); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 14px;
  border-top: 1px solid var(--border-subtle);
}
.plan--featured ul li { border-top-color: rgba(255,255,255,0.1); }
.plan ul li:first-child { border-top: none; }
.plan ul li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about-grid p { font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.fact { padding: 20px; border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.fact .v { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.fact .l { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-top: 4px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.principle h5 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.principle h5::before { content: ""; width: 16px; height: 3px; background: var(--accent); border-radius: 999px; }
.principle p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0; }

/* ─── Careers ─── */
.roles-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border-subtle); }
.role {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-fast) var(--ease-out), padding-left var(--dur-base) var(--ease-out);
}
.role:hover { padding-left: 12px; }
@media (max-width: 700px) { .role { grid-template-columns: 1fr; gap: 8px; } }
.role-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.role-loc, .role-team { font-size: 14px; color: var(--fg-3); }
.role-arrow {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-surface-2);
  color: var(--fg-2);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.role:hover .role-arrow { background: var(--accent); color: var(--vs-midnight-navy); transform: translateX(4px); }

/* ─── News ─── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-default); }
.news-art {
  aspect-ratio: 16/9;
  background: var(--vs-midnight-navy);
  position: relative;
  overflow: hidden;
}
.news-art svg { width: 100%; height: 100%; }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.news-meta .tag { color: var(--accent-press); }
.news-card h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.01em; }
.news-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0 0 16px; flex: 1; }
.news-card .more { font-size: 14px; font-weight: 600; color: var(--fg-1); display: inline-flex; align-items: center; gap: 6px; }
.news-card .more:hover { color: var(--accent-press); }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.01em;
}
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.faq-item.is-open .faq-toggle { background: var(--accent); transform: rotate(45deg); }
.faq-toggle svg { width: 14px; height: 14px; color: var(--fg-2); transition: color var(--dur-base) var(--ease-out); }
.faq-item.is-open .faq-toggle svg { color: var(--vs-midnight-navy); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 24px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info { color: rgba(255,255,255,0.85); }
.contact-info h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 32px 0 8px; }
.contact-info p, .contact-info a { font-size: 15px; line-height: 1.5; color: var(--fg-on-dark); margin: 0; display: block; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.field input, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--fg-on-dark);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow-focus);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error input, .field-error textarea { border-color: var(--status-danger); }
.field .err-msg { font-size: 12px; color: #ffb4b4; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.contact-sent {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: rgba(30,142,90,0.18);
  border: 1px solid rgba(30,142,90,0.4);
  border-radius: 8px;
  color: #d2f0e0;
  font-size: 15px;
}
.contact-sent svg { width: 20px; height: 20px; color: #6fdca8; flex-shrink: 0; }

/* ─── Footer ─── */
.footer {
  background: var(--vs-midnight-navy);
  color: var(--fg-on-dark);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.footer-bottom-links { display: flex; gap: 20px; }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.4s; }

/* ─── Cookie banner ─── */
.cookie {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 20px 22px;
  z-index: 90;
  transform: translateY(140%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.cookie.is-visible { transform: translateY(0); }
.cookie h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.cookie p { font-size: 13px; color: var(--fg-2); line-height: 1.55; margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { font-size: 13px; padding: 9px 16px; }

/* Tweaks toggles colors */
[data-accent="gold"] { --accent: var(--vs-gold); --accent-hover: var(--vs-warm-sand); --accent-press: #B8861F; }
[data-accent="amber"] { --accent: var(--vs-amber); --accent-hover: var(--vs-warm-sand); --accent-press: var(--vs-gold); }
[data-accent="sand"] { --accent: var(--vs-warm-sand); --accent-hover: var(--vs-gold); --accent-press: #B8861F; }

/* Density */
[data-density="compact"] .section { padding: 64px 0; }
[data-density="compact"] .hero { padding: 144px 0 88px; }
[data-density="airy"] .section { padding: 128px 0; }
[data-density="airy"] .hero { padding: 196px 0 144px; }
