/* ============================================================
   BAULYNQ — v3.css  (fintake-inspired art direction)
   Near-black canvas, dashed column guides, Plus Jakarta Sans,
   pill CTAs, tilted product mock, orbital phase network,
   light contact section with floating form card.
   Dark-first with light theme via [data-theme]; DE/EN bilingual.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* dark canvas */
  --bg:      #07080a;
  --bg2:     #0b0d10;
  --card:    #121418;
  --card2:   #16191d;
  --ink:     #f2f4f6;
  --ink2:    #9aa0a6;
  --ink3:    #62676d;
  --line:    rgba(255, 255, 255, 0.08);
  --line2:   rgba(255, 255, 255, 0.14);
  --guide:   rgba(148, 152, 157, 0.28);

  /* brand */
  --accent:  #d8574d;             /* German red, dark-canvas tuned */
  --accent-deep: #8e2222;
  --gold:    #f6c500;             /* footer flag-rule only */

  /* light (contact) section */
  --l-bg:    #f4f4f2;
  --l-card:  #ffffff;
  --l-ink:   #101214;
  --l-ink2:  #5d6266;
  --l-ink3:  #9a9ea1;
  --l-line:  #e2e3e0;
  --l-field: #f1f2ef;

  /* theme-dependent helpers */
  --btn-ink:  #0a0b0d;                    /* text on the primary pill */
  --btn-primary-hover: #ffffff;
  --hdr-bg:   rgba(7, 8, 10, 0.72);
  --hdr-bg-2: rgba(7, 8, 10, 0.86);
  --veil:     rgba(255, 255, 255, 0.02);  /* faint fill on cards/chips */
  --veil-2:   rgba(255, 255, 255, 0.06);
  --label-bg: rgba(7, 8, 10, 0.8);
  --line-hover: rgba(255, 255, 255, 0.18);

  --maxw:    1200px;
  --gutter:  clamp(20px, 4vw, 48px);
  --r-card:  18px;
  --r-field: 12px;

  --sans: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg:      #f7f7f5;
  --bg2:     #efefec;
  --card:    #ffffff;
  --card2:   #f4f4f1;
  --ink:     #16181a;
  --ink2:    #5c6165;
  --ink3:    #989da1;
  --line:    rgba(20, 22, 24, 0.08);
  --line2:   rgba(20, 22, 24, 0.16);
  --guide:   rgba(90, 94, 98, 0.30);

  --accent:  #8e2222;                     /* deep German red reads better on light */

  --btn-ink:  #f7f7f5;                    /* primary pill flips to dark-on-light */
  --btn-primary-hover: #000000;
  --hdr-bg:   rgba(247, 247, 245, 0.72);
  --hdr-bg-2: rgba(247, 247, 245, 0.88);
  --veil:     rgba(20, 22, 24, 0.02);
  --veil-2:   rgba(20, 22, 24, 0.05);
  --label-bg: rgba(247, 247, 245, 0.85);
  --line-hover: rgba(20, 22, 24, 0.24);
}
[data-theme="light"] .mock {
  box-shadow: 0 30px 70px -28px rgba(20, 22, 24, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .btn-primary {
  box-shadow: 0 10px 30px -12px rgba(20, 22, 24, 0.45);
}

/* Theme-paired raster assets (mock screenshots, og covers). The brand lockup
   no longer needs a pair — it inherits currentColor. */
.im-mark, .oc-mark { color: var(--ink); display: block; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
/* Guard against horizontal scroll from decorative overflow (orbit labels,
   tilted mock). clip on BOTH html and body — body alone leaves html scrollable
   on some mobile browsers. clip (not hidden) keeps position:sticky working. */
html { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(216, 87, 77, 0.35); }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Dashed column guides (fintake signature) ---------- */
.guides {
  position: fixed;
  /* start below the sticky header — its backdrop blur would smear the
     dashed lines into a gray blob (visible on the light theme) */
  inset: 72px 0 0 0;
  margin-inline: auto;
  width: min(var(--maxw), calc(100% - 24px));
  border-inline: 1px dashed var(--guide);
  pointer-events: none;
  z-index: 1;
}
main, .hdr, .ftr { position: relative; z-index: 2; }

/* ---------- Chips (kicker pills) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink2);
  background: var(--veil);
}
.chip svg { width: 14px; height: 14px; }
.chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216, 87, 77, 0.5);
  animation: chipPulse 2.4s var(--ease-io) infinite;
}
@keyframes chipPulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 87, 77, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(216, 87, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 87, 77, 0); }
}
.chip-light { border-color: #d8d9d5; color: var(--l-ink2); background: rgba(0, 0, 0, 0.02); }

/* ---------- Buttons ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(var(--tx), var(--ty));
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translate(var(--tx), var(--ty)) scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--btn-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}
.btn-primary:hover { background: var(--btn-primary-hover); }

.btn-ghost {
  border: 1px solid var(--line2);
  color: var(--ink);
  background: var(--veil);
}
.btn-ghost:hover { background: var(--veil-2); border-color: var(--line-hover); }
.btn-ghost:hover svg { transform: translateY(3px); }

.btn-dark {
  background: #101214;
  color: #f4f5f4;
}
.btn-dark:hover { background: #1c1f22; }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px dashed transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.hdr.is-scrolled { border-bottom-color: var(--guide); background: var(--hdr-bg-2); }
.hdr-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
/* Brand — THERE IS NO LOCKUP.
   The badge is the logo and it stands alone; the name is typography at the
   opposite end of the bar. Never render them adjacent.
   Badge: rounded square, radius 23.5 %, mark reversed at 56 % of the tile.
   Name: Plus Jakarta Sans, 800 at >=28px, 700 below. */
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand-badge { height: 30px; width: 30px; display: block; color: currentColor; }
.ftr-brand .brand-badge { height: 34px; width: 34px; }
@media (max-width: 560px) { .brand-badge { height: 26px; width: 26px; } }

/* The name. Never place this next to .brand-badge. */
.brand-name { font-family: var(--sans); font-weight: 700; letter-spacing: -0.012em;
  font-size: 15px; color: var(--ink); }
.brand-name-lg { font-weight: 800; letter-spacing: -0.03em; }
.hdr-name { margin-left: auto; margin-right: 18px; }
@media (max-width: 900px) { .hdr-name { display: none; } }
.ftr-name { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }

.hdr-nav { display: flex; gap: 26px; margin-inline: auto; }
.hdr-nav a {
  font-size: 15px;
  color: var(--ink2);
  transition: color 0.25s var(--ease);
}
.hdr-nav a:hover { color: var(--ink); }

.hdr-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.lang-switch button { color: var(--ink3); padding: 4px 2px; transition: color 0.25s var(--ease); }
.lang-switch button:hover { color: var(--ink2); }
.lang-switch button.is-active { color: var(--ink); }
.lang-sep { width: 1px; height: 13px; background: var(--line2); }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--veil);
  color: var(--ink2);
  display: grid; place-items: center;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--veil-2); border-color: var(--line-hover); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .i-moon { display: none; }

@media (max-width: 760px) {
  .hdr-nav { display: none; }
  .hdr-inner { gap: 14px; }
}
/* Phones: the brand + language + theme + CTA row can't fit — the CTA was being
   clipped off-screen by the body's overflow-x:clip. Drop the header CTA (the
   hero has a prominent "Demo buchen" right below) and tighten the row. */
@media (max-width: 560px) {
  .hdr-cta { display: none; }
  .hdr-actions { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 11vh, 130px); }
.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.hero-h {
  margin: 6px 0 0;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 700;
}
.hero-h .ln { display: block; }
.hero-h .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-h .w i {
  display: inline-block;
  font-style: normal;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease);
}
.hero-h.is-in .w i { transform: translateY(0); }
.hero-h .dim { color: var(--ink3); }

.hero-sub {
  max-width: 560px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink2);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Hero product mock ---------- */
.mock-wrap { margin-top: clamp(44px, 7vh, 84px); }
.mock-stage { perspective: 1400px; }
/* The mock reproduces the real app shell (light theme) — a light screenshot
   floating on the dark canvas, fintake-style. Palette mirrors the app tokens:
   base-100 white, base-200 #f4f4f2, primary oxblood #8E2222 (+10% tints). */
.mock {
  --tilt: 0deg;
  --m-bg:    #ffffff;
  --m-bg2:   #f4f4f2;
  --m-line:  #e7e7e4;
  --m-ink:   #1c1e20;
  --m-ink2:  #6d7176;
  --m-ink3:  #9ba0a4;
  --m-pri:   #8e2222;
  transform: rotateX(var(--tilt));
  transform-origin: 50% 0%;
  will-change: transform;
  background: var(--m-bg);
  color: var(--m-ink);
  border: 1px solid var(--line2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 140px -40px rgba(216, 87, 77, 0.14);
  font-size: 12.5px;
  line-height: 1.45;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--m-line);
  background: var(--m-bg2);
}
.mc-dots { display: inline-flex; gap: 6px; }
.mc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6d6d2; }
.mc-url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--m-ink2);
  background: var(--m-bg);
  border: 1px solid var(--m-line);
  border-radius: 999px;
  padding: 4px 14px;
}
.mc-spacer { flex: 1; }

.mock-body { display: grid; grid-template-columns: 170px 1fr; min-height: 380px; }

/* — Icon rail (ModuleSidebar): hub chevron + module row, nav, brand pill — */
.mock-side {
  border-right: 1px solid var(--m-line);
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  background: var(--m-bg);
}
.ms-hub {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 2px 10px;
}
.ms-hub-btn {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  color: var(--m-ink2);
}
.ms-hub-btn svg { width: 15px; height: 15px; }
.ms-mod-ic {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(142, 34, 34, 0.1);
  color: var(--m-pri);
  display: grid; place-items: center;
}
.ms-mod-ic svg { width: 13px; height: 13px; }
.ms-mod-name { font-weight: 700; font-size: 12.5px; color: var(--m-ink); }
.ms-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; justify-content: center; }
.ms-item {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--m-ink2);
  font-weight: 500;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msi-ic { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 3.5px; opacity: 0.8; flex-shrink: 0; }
.msi-dash { border-radius: 2px; }
.msi-wallet { border-radius: 999px; }
.msi-pct { transform: rotate(45deg); }
.ms-item.is-active {
  background: rgba(142, 34, 34, 0.1);
  color: var(--m-pri);
}
.ms-item.is-active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  height: 14px; width: 2px; border-radius: 999px;
  transform: translateY(-50%);
  background: var(--m-pri);
}
.ms-foot { display: flex; justify-content: center; border-top: 1px solid var(--m-line); padding-top: 8px; }
.ms-brandpill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--m-bg2);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 9.5px; font-weight: 600; color: var(--m-ink2);
}
.ms-brandpill .ms-brandmark { width: 12px; height: 12px; color: currentColor; flex-shrink: 0; }

/* — Topbar (h-12): title left, scope pills + bell + avatar right — */
.mock-main { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mm-top { display: flex; align-items: center; gap: 8px; }
.mm-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.mm-spacer { flex: 1; }
.mm-scope {
  font-size: 10.5px; font-weight: 600; color: var(--m-ink);
  background: var(--m-bg2);
  border-radius: 7px;
  padding: 5px 10px;
  white-space: nowrap;
}
.mm-bell {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
}
.mm-bell i {
  width: 12px; height: 12px;
  border: 1.6px solid var(--m-ink2);
  border-radius: 5px 5px 1px 1px;
  border-bottom: 0;
  position: relative;
}
.mm-bell::after {
  content: ''; position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--m-pri);
  border: 1.5px solid var(--m-bg);
}
.mm-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--m-pri); color: #f6ecea;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}

/* — Toolbar row (layout canon: create left · filter + search right) — */
.mm-toolbar { display: flex; align-items: center; gap: 8px; }
.mm-btn-new {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--m-pri);
  border-radius: 7px;
  padding: 6px 12px;
  white-space: nowrap;
}
.mm-filter, .mm-search {
  font-size: 10.5px; font-weight: 500; color: var(--m-ink2);
  border: 1px solid var(--m-line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.mm-search { min-width: 110px; color: var(--m-ink3); }

.mm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi {
  border: 1px solid var(--m-line);
  background: var(--m-bg);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi-l { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--m-ink3); }
.kpi-v { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* — DataTable — */
.mm-table { border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; }
.mt-row {
  display: grid;
  grid-template-columns: 56px 76px 1fr 96px 96px 104px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--m-line);
  color: var(--m-ink2);
  font-variant-numeric: tabular-nums;
}
.mt-row > span:first-child { font-weight: 600; color: var(--m-ink); }
.mt-row > span:nth-child(4) { text-align: right; color: var(--m-ink); }
.mt-row:last-child { border-bottom: 0; }
.mt-head {
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--m-ink3);
  background: var(--m-bg2);
}
.mt-head > span { font-weight: 700 !important; color: var(--m-ink3) !important; text-align: left !important; }
.mt-head > span:nth-child(4) { text-align: right !important; }
.badge {
  font-style: normal;
  font-size: 9.5px; font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.b-ok   { background: rgba(28, 122, 61, 0.12);  color: #1c7a3d; }
.b-info { background: rgba(29, 78, 137, 0.12);  color: #00633B; }
.b-mut  { background: rgba(109, 113, 118, 0.14); color: #55595d; }
.mt-bar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.mt-bar i {
  flex: 1; max-width: 56px; height: 4px; border-radius: 999px;
  background: #ececea;
  position: relative; overflow: hidden;
}
.mt-bar i::after {
  content: ''; position: absolute; inset: 0; width: var(--p);
  background: var(--m-pri); border-radius: inherit;
}
.mt-bar b { font-weight: 600; font-size: 10.5px; color: var(--m-ink2); min-width: 32px; text-align: right; }
.mt-foot { background: var(--m-bg2); color: var(--m-ink); font-weight: 700; }
.mt-foot > span:nth-child(3) { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--m-ink3); text-align: right; }

@media (max-width: 860px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mm-scope { display: none; }
  .mm-kpis { grid-template-columns: repeat(2, 1fr); }
  .mt-row { grid-template-columns: 52px 1fr 90px 104px; }
  .mt-row > span:nth-child(2), .mt-row > span:nth-child(3) { display: none; }
  .mt-head > span:nth-child(2), .mt-head > span:nth-child(3) { display: none; }
}

/* ---------- Stats band ---------- */
.stats {
  margin-top: clamp(60px, 10vh, 120px);
  border-top: 1px dashed var(--guide);
  border-bottom: 1px dashed var(--guide);
  background: var(--bg2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(28px, 4vw, 46px) clamp(14px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat + .stat { border-left: 1px dashed var(--guide); }
.stat-v {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.034em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-l { font-size: 15px; color: var(--ink); margin-top: 6px; font-weight: 600; }
.stat-d { font-family: var(--mono); font-size: 11.5px; color: var(--ink3); }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px dashed var(--guide); }
}
@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px dashed var(--guide); }
}

/* ---------- Feature sections ---------- */
.feature { padding: clamp(84px, 13vh, 160px) 0; }
.feature + .feature { border-top: 1px dashed var(--guide); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.feature-h {
  margin: 18px 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.034em;
  font-weight: 700;
}
.feature-h .dim { color: var(--ink3); }
.feature-p {
  margin: 18px 0 0;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: var(--ink2);
  max-width: 60ch;
}
.feature-list { margin: 22px 0 0; padding: 0; list-style: none; }
.feature-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  color: var(--ink2);
  border-top: 1px dashed var(--guide);
  font-size: 15.5px;
}
.feature-list li:last-child { border-bottom: 1px dashed var(--guide); }
.feature-list li::before {
  content: '';
  position: absolute; left: 4px; top: 50%;
  width: 7px; height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--accent);
}
.feature-center { text-align: center; }
.feature-p-center { margin-inline: auto; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Orbit (phase network) ---------- */
.feature-art { display: grid; place-items: center; }
.orbit {
  position: relative;
  /* leave room for the node labels (~50px) that sit outside the circle so they
     don't get clipped on narrow screens */
  width: min(100%, 480px);
  aspect-ratio: 1;
  --radius: 42%;
}
.orbit-grid-h, .orbit-grid-v {
  position: absolute; background: var(--line);
}
.orbit-grid-h { left: 0; right: 0; top: 50%; height: 1px; }
.orbit-grid-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--guide);
}
.orbit-ring-outer { inset: 8%; }
.orbit-ring-inner { inset: 27%; border-style: solid; border-color: var(--line); }
.orbit-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 108px; height: 108px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line2);
  display: grid; place-items: center;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(216, 87, 77, 0.25);
  z-index: 3;
}
.orbit-center img { width: 56px; height: 56px; }
.orbit-spin {
  position: absolute; inset: 0;
  animation: orbitSpin 80s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit-node {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
}
.orbit-node .on-inner {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: orbitCounter 80s linear infinite;
}
@keyframes orbitCounter { to { transform: translate(-50%, -50%) rotate(-360deg); } }
/* Nodes placed on the outer ring at 5 even angles (72° apart, starting top). */
.on-1 { left: 50%;      top: 8%;    }
.on-2 { left: 89.94%;   top: 37.02%; }
.on-3 { left: 74.68%;   top: 83.98%; }
.on-4 { left: 25.32%;   top: 83.98%; }
.on-5 { left: 10.06%;   top: 37.02%; }
.on-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--card2);
  border: 1px solid var(--line2);
  position: relative;
}
.on-dot::after {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--ink2);
  animation: nodeGlow 10s var(--ease-io) infinite;
}
.on-1 .on-dot::after { animation-delay: 0s; }
.on-2 .on-dot::after { animation-delay: 2s; }
.on-3 .on-dot::after { animation-delay: 4s; }
.on-4 .on-dot::after { animation-delay: 6s; }
.on-5 .on-dot::after { animation-delay: 8s; }
@keyframes nodeGlow {
  0%, 18%, 100% { background: var(--ink3); box-shadow: none; }
  6%  { background: var(--accent); box-shadow: 0 0 18px 2px rgba(216, 87, 77, 0.55); }
}
.on-l {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink2);
  background: var(--label-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
/* Reduced motion: freeze the orbit, keep the diagram legible */
@media (prefers-reduced-motion: reduce) {
  .orbit-spin, .orbit-node .on-inner { animation: none; }
  .on-dot::after { animation: none; background: var(--ink2); }
  .chip-dot { animation: none; }
}
/* Phones: shrink the orbit + labels so the node pills (which sit outside the
   circle) fit within the viewport instead of being clipped. */
@media (max-width: 560px) {
  .orbit { width: min(74vw, 300px); }
  .on-l { font-size: 10.5px; padding: 2px 8px; }
  .orbit-center { width: 84px; height: 84px; border-radius: 20px; }
  .orbit-center img { width: 42px; height: 42px; }
}

/* ---------- Module cards ---------- */
.cards {
  margin-top: clamp(36px, 5vh, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  background: var(--card2);
}
.card-ic {
  width: 46px; height: 46px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink2);
}
.card-ic svg { width: 20px; height: 20px; }
.card:hover .card-ic { color: var(--accent); border-color: rgba(216, 87, 77, 0.45); }
.card-h { margin: 4px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.card-p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.card-cta {
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(216, 87, 77, 0.14), rgba(216, 87, 77, 0.04) 55%), var(--card);
  border-color: rgba(216, 87, 77, 0.3);
}
.card-cta:hover { border-color: rgba(216, 87, 77, 0.55); }
.card-cta-t { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.card-cta-a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 15px;
}
.card-cta-a svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card-cta:hover .card-cta-a svg { transform: translateX(3px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Standards ---------- */
.std {
  margin: clamp(30px, 5vh, 48px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.std li {
  font-family: var(--mono);
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 0.04em;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 12px 26px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.std li:hover { border-color: rgba(216, 87, 77, 0.5); color: var(--accent); }
.std-soft { margin-top: 12px; }
.std-soft li { font-size: clamp(12.5px, 1.3vw, 14.5px); padding: 8px 18px; color: var(--ink2); border-style: dashed; }
.std-note {
  margin: clamp(24px, 4vh, 40px) 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink3);
}

/* ---------- Contact (light section) ---------- */
.contact {
  background: var(--l-bg);
  color: var(--l-ink);
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
  padding: clamp(80px, 12vh, 150px) 0;
}
.contact ::selection { background: rgba(142, 34, 34, 0.18); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact-h {
  margin: 20px 0 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.034em;
  font-weight: 700;
}
.ch-strong { color: var(--l-ink); }
.ch-soft { color: var(--l-ink3); }
.contact-p {
  margin: 18px 0 0;
  color: var(--l-ink2);
  font-size: clamp(15.5px, 1.4vw, 17px);
  max-width: 52ch;
}
.contact-direct { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.direct-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #e9eae6;
  border: 1px solid var(--l-line);
  border-radius: 999px;
  padding: 12px 22px 12px 12px;
  font-size: 16.5px;
  font-weight: 500;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.direct-pill:hover { background: #e2e3df; transform: translateY(-2px); }
.dp-ic {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #d0d1cd;
  background: var(--l-card);
  display: grid; place-items: center;
  color: var(--l-ink2);
}
.dp-ic svg { width: 16px; height: 16px; }

.contact-card {
  background: var(--l-card);
  border: 1px solid var(--l-line);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 30px 70px -30px rgba(16, 18, 20, 0.25);
}
.cc-h { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.cc-sub { margin: 6px 0 0; color: var(--l-ink2); font-size: 14.5px; }

.demo { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--l-ink); }
.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--l-ink);
  background: var(--l-field);
  border: 1px solid var(--l-line);
  border-radius: var(--r-field);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--l-ink3); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--l-card);
  border-color: #101214;
  box-shadow: 0 0 0 3px rgba(16, 18, 20, 0.08);
}
.field.is-invalid input, .field.is-invalid textarea {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(142, 34, 34, 0.1);
}
.form-status { margin: -4px 0 0; font-size: 13.5px; min-height: 1.2em; color: var(--l-ink2); }
.form-status[data-kind="ok"]  { color: #1c7a3d; }
.form-status[data-kind="err"] { color: var(--accent-deep); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.ftr {
  border-top: 1px dashed var(--guide);
  background: var(--bg);
  padding: clamp(48px, 8vh, 84px) 0 0;
}
.ftr-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 6vh, 64px);
}
.ftr-brand p { margin: 16px 0 0; color: var(--ink2); font-size: 14.5px; max-width: 34ch; }
.flag-rule { display: flex; width: 72px; height: 3px; margin-top: 20px; }
.flag-rule span { flex: 1; }
.flag-rule span:nth-child(1) { background: #1a1a1a; }
.flag-rule span:nth-child(2) { background: var(--accent-deep); }
.flag-rule span:nth-child(3) { background: var(--gold); }
.ftr-col { display: flex; flex-direction: column; gap: 10px; }
.ftr-col-h {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink3);
  margin-bottom: 6px;
}
.ftr-col a { color: var(--ink2); font-size: 14.5px; transition: color 0.25s var(--ease); }
.ftr-col a:hover { color: var(--ink); }
.ftr-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px dashed var(--guide);
  padding-top: 22px;
  padding-bottom: 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink3);
}
.ftr-base a { color: var(--ink3); }
.ftr-base a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .ftr-inner { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}

/* ---------- First-load cinematic intro ----------
   Pure-CSS timeline (safe even if JS never runs):
   0.10–1.1s  BAULYNQ letters rise out of a mask while tracking tightens
   0.90–1.5s  Schwarz-Rot-Gold hairline draws underneath
   1.60s      wordmark zooms forward and blurs out
   1.90s      B mark springs in
   2.50–3.2s  curtain wipes upward, hero words rise on cue (JS event)     */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  animation: introWipe 0.7s var(--ease-io) 2.5s forwards;
}
.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: introInnerOut 0.45s cubic-bezier(0.55, 0, 0.85, 0.35) 1.6s forwards;
}
/* Horizontal padding gives the last glyph (Q) breathing room so its right
   curve/tail isn't clipped by the rise-mask's overflow:hidden. */
.intro-word { overflow: hidden; padding: 0.12em 0.18em; }
.iw-mask {
  display: inline-flex;
  letter-spacing: 0.3em;
  /* pull back ONLY the final trailing tracking (0.04em) — the old -0.3em was
     sized for the initial tracking and clipped ~0.26em into the Q. */
  margin-right: -0.04em;
  animation: introTrack 1.5s var(--ease) forwards;
}
.ic {
  display: inline-block;
  font-size: clamp(36px, 6.4vw, 68px);
  font-weight: 500;
  letter-spacing: inherit;
  color: var(--ink2);
  transform: translateY(125%);
  animation: icRise 0.75s var(--ease) forwards;
}
.ic.ix { font-weight: 700; color: var(--ink); }
.ic:nth-child(1) { animation-delay: 0.10s; }
.ic:nth-child(2) { animation-delay: 0.16s; }
.ic:nth-child(3) { animation-delay: 0.22s; }
.ic:nth-child(4) { animation-delay: 0.30s; }
.ic:nth-child(5) { animation-delay: 0.36s; }
.ic:nth-child(6) { animation-delay: 0.42s; }
.ic:nth-child(7) { animation-delay: 0.48s; }
.intro-rule {
  display: flex;
  width: min(220px, 42vw);
  height: 2px;
}
.intro-rule i { flex: 1; transform: scaleX(0); transform-origin: left center; animation: ruleGrow 0.4s var(--ease-io) forwards; }
.intro-rule i:nth-child(1) { background: #4b4b4b;   animation-delay: 0.90s; }
.intro-rule i:nth-child(2) { background: #b3392e;   animation-delay: 1.05s; }
.intro-rule i:nth-child(3) { background: var(--gold); animation-delay: 1.20s; }
.intro-mark {
  position: absolute;
  opacity: 0;
  animation: markIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s forwards;
}
.intro-mark img { width: clamp(76px, 10vw, 112px); height: auto; }
@keyframes icRise      { to { transform: translateY(0); } }
@keyframes introTrack  { from { letter-spacing: 0.3em; } to { letter-spacing: 0.04em; } }
@keyframes ruleGrow    { to { transform: scaleX(1); } }
@keyframes introInnerOut {
  to { transform: scale(1.18); opacity: 0; filter: blur(12px); }
}
@keyframes markIn {
  from { opacity: 0; transform: scale(0.35); filter: blur(14px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}
@keyframes introWipe   { to { transform: translateY(-101%); } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ---------- Reveal-on-scroll ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(7px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
}
[data-rv].is-rv { opacity: 1; transform: none; filter: none; }
[data-rv-delay="1"] { transition-delay: 0.08s; }
[data-rv-delay="2"] { transition-delay: 0.16s; }
[data-rv-delay="3"] { transition-delay: 0.24s; }
[data-rv-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv] { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-h .w i { transform: none; transition: none; }
  .mock { transform: none !important; }
  .btn, .card { transition: none; }
}


/* ---------- Focus (BauLynq Design Language §04) ---------- */
/* Deliberately Stahl, not the brand red — a focus ring must never read as an
   error state. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #5FA4FC;
  outline-offset: 3px;
  border-radius: 6px;
}
[data-theme="light"] :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline-color: #286CBE;
}
