/* Layout: dark control room. A 1200px grid of glass panels on a near-black field,
   with regulation references and counts set in mono like instrument labels. */
:root {
  /* RegBear landing theme (same tokens as the current landing page / brand.css) */
  --bg: #08081a;
  --bg-raised: rgba(255, 255, 255, 0.025);
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #12122a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(107, 149, 255, 0.38);
  --fg: #FFFFFF;
  --fg-2: #c7cadd;
  --accent: #6B95FF;
  --accent-2: #2B6CFF;
  --cyan: #38BDF8;
  --sky: #38BDF8;
  --soft: rgba(43, 108, 255, 0.16);
  --ok: #34D399;
  --todo: #F5B547;
  --err: #FB7185;
  --grad: linear-gradient(120deg, #1D4ED8 0%, #2B6CFF 46%, #38BDF8 100%);
  --grad-text: linear-gradient(120deg, #2B6CFF 0%, #38BDF8 100%);
  --f-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-card: 18px;
  --r-btn: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html.menu-open, html.menu-open body { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--card-solid); color: var(--fg); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong); }
.skip-link:focus { top: 12px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); letter-spacing: -0.02em; text-wrap: balance; }
.h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.12; font-weight: 700; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; }
.h3 { font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--fg-2); max-width: 62ch; }
.muted { color: var(--fg-2); }
.small { font-size: 15px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan);
}
.reg { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--fg-2); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { display: grid; gap: 16px; max-width: 68ch; color: var(--fg-2); }
.prose strong { color: var(--fg); font-weight: 600; }

/* Placeholders RegBear must fill before launch */
.ph {
  font-family: var(--f-mono); font-size: 0.86em; color: var(--todo);
  background: rgba(245, 181, 71, 0.08); border: 1px dashed rgba(245, 181, 71, 0.5);
  padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 72px); }
.section.raised { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > * { min-width: 0; }
.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow .i { width: 18px; height: 18px; transition: transform 0.2s; }
.link-arrow:hover .i { transform: translateX(3px); }

@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn .i { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(10, 11, 22, 0.35);
  box-shadow: 0 10px 30px -10px rgba(43, 108, 255, 0.65);
}
.btn-primary:hover { color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(43, 108, 255, 0.85); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); color: var(--fg); border-color: rgba(255, 255, 255, 0.12); }
.btn-secondary:hover { color: var(--fg); border-color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Pills, chips, tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--soft); border: 1px solid rgba(107, 149, 255, 0.25);
  color: var(--accent); font-size: 13.5px; font-weight: 500; line-height: 1.4;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  color: var(--fg); font-size: 14.5px; font-weight: 500; line-height: 1.3;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}
.chip .i { width: 17px; height: 17px; color: var(--cyan); }
a.chip:hover { color: var(--fg); border-color: rgba(54, 185, 204, 0.6); background: var(--soft); transform: translateY(-1px); }
.tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px, 2.6vw, 28px); display: grid; gap: 12px; align-content: start;
}
.card p { color: var(--fg-2); }
a.card { color: var(--fg); transition: border-color 0.2s, transform 0.2s; }
a.card:hover { color: var(--fg); border-color: rgba(107, 149, 255, 0.5); transform: translateY(-2px); }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; background: var(--soft);
  border: 1px solid rgba(107, 149, 255, 0.22); display: grid; place-items: center; color: var(--cyan);
}
.icon-tile .i { width: 22px; height: 22px; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--fg-2); }
.checks li .i { width: 20px; height: 20px; color: var(--cyan); margin-top: 3px; }
.checks li strong { color: var(--fg); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  border-bottom: 1px solid transparent; transition: background-color 0.25s, border-color 0.25s;
}
.site-header.scrolled { background: rgba(10, 11, 22, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 18px rgba(43, 108, 255, 0.5); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { position: relative; display: block; padding: 8px 13px; color: var(--fg-2); font-size: 15px; font-weight: 500; border-radius: 8px; }
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--accent); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); cursor: pointer; }
.menu-btn .i { width: 22px; height: 22px; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.mobile-menu .top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-menu nav ul { list-style: none; display: grid; gap: 4px; }
.mobile-menu nav a { display: block; padding: 14px 4px; font-family: var(--f-display); font-size: 24px; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { margin-top: auto; }
@media (max-width: 959px) {
  .nav-links, .nav .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -72px 0 0 0; z-index: -2;
  background:
    radial-gradient(620px 420px at 6% 0%, rgba(43, 108, 255, 0.30), transparent 70%),
    radial-gradient(520px 440px at 100% 12%, rgba(29, 78, 216, 0.32), transparent 70%),
    radial-gradient(560px 300px at 52% 100%, rgba(54, 185, 204, 0.16), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(107, 149, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(107, 149, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead strong { color: var(--fg); font-weight: 600; }
.hero.compact .hero-copy { max-width: 760px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 2.5vw, 26px);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.panel-title { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips .more { display: none; }
@media (max-width: 640px) { .chips .chip:nth-child(n+7) { display: none; } .chips .more { display: inline-flex; } }

/* ---------- Strip ---------- */
.strip { display: grid; gap: 18px; justify-items: center; text-align: center; padding-block: 8px 0; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.strip li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--fg-2); }
.strip li .i { color: var(--cyan); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.stat { padding: clamp(22px, 3vw, 32px); display: grid; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--fg-2); font-size: 15px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(54, 185, 204, 0.6), transparent); }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding: 0 4px; }
.step .badge {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-solid); border: 1px solid rgba(54, 185, 204, 0.5); color: var(--cyan);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(54, 185, 204, 0.25);
}
.section.raised .step .badge { box-shadow: 0 0 0 6px var(--bg-raised), 0 0 24px rgba(54, 185, 204, 0.25); }
.step .num { font-family: var(--f-mono); font-size: 12.5px; color: var(--cyan); letter-spacing: 0.08em; }
.step p { color: var(--fg-2); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, rgba(54, 185, 204, 0.6), transparent); }
  .step { grid-template-columns: 54px 1fr; column-gap: 18px; }
  .step .badge { grid-row: span 3; }
}

/* ---------- Visuals ---------- */
.visual { position: relative; width: 100%; max-width: 100%; }
.visual svg { width: 100%; height: auto; display: block; }
.visual .glow { position: absolute; inset: 10%; z-index: -1; background: radial-gradient(closest-side, rgba(43, 108, 255, 0.35), transparent); filter: blur(10px); }
.caption { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.04em; margin-top: 12px; }

/* Layered platform panels (home) */
.layers { position: relative; aspect-ratio: 4 / 3; max-width: 100%; perspective: 1400px; }
.layer {
  position: absolute; border-radius: 16px; border: 1px solid rgba(107, 149, 255, 0.28);
  background: linear-gradient(160deg, rgba(30, 36, 66, 0.92), rgba(16, 18, 34, 0.92));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 16px; display: grid; gap: 10px; align-content: start;
  transform: rotateY(-16deg) rotateX(8deg);
}
.layer.l1 { inset: 4% 22% 38% 2%; }
.layer.l2 { inset: 30% 4% 16% 34%; }
.layer.l3 { inset: 62% 40% 2% 10%; }
.bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.10); }
.bar.a { background: rgba(107, 149, 255, 0.55); }
.bar.c { background: rgba(54, 185, 204, 0.55); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toggle { width: 30px; height: 17px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.toggle.on { background: rgba(54, 185, 204, 0.75); }
.toggle.on::after { left: 15px; background: #FFFFFF; }

/* Isometric module platform (product) */
.iso-wrap { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; max-width: 100%; }
.iso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 80%; transform: rotateX(56deg) rotateZ(-42deg); transform-style: preserve-3d; }
.tile {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.28);
}
.tile .i { width: 40%; height: 40%; }
.tile.on {
  background: linear-gradient(145deg, rgba(43, 108, 255, 0.55), rgba(54, 185, 204, 0.35));
  border-color: rgba(107, 149, 255, 0.7); color: #FFFFFF;
  box-shadow: 0 0 22px rgba(43, 108, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.iso-base { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 24px; transform: rotateX(56deg) rotateZ(-42deg) translateZ(-18px); background: radial-gradient(closest-side, rgba(43, 108, 255, 0.45), transparent); filter: blur(18px); }

/* Illustrative UI frame */
.ui { border-radius: 14px; border: 1px solid var(--line-strong); background: #0F1120; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); }
.ui-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.ui-top span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.ui-top .url { flex: 1; height: 10px; margin-left: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); max-width: 260px; }
.ui-body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; }
.ui-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 12px; align-content: start; justify-items: center; }
.ui-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); display: block; }
.ui-side i.on { background: rgba(107, 149, 255, 0.6); }
.ui-main { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ui-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ui-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.ui-rows { display: grid; gap: 8px; }
.ui-row { display: grid; grid-template-columns: 12px 1fr 70px 26px; gap: 12px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.015); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.dot.ok { background: var(--ok); } .dot.mid { background: var(--todo); } .dot.ac { background: var(--accent); }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: rgba(107, 149, 255, 0.35); }
.ui-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ui-table .tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.7fr; gap: 14px; padding: 11px 12px; border-top: 1px solid var(--line); align-items: center; }
.ui-table .tr:first-child { border-top: 0; background: rgba(255, 255, 255, 0.03); }
.sev { height: 18px; border-radius: 6px; width: 64px; }
.sev.h { background: rgba(255, 138, 138, 0.35); } .sev.m { background: rgba(245, 181, 71, 0.35); } .sev.l { background: rgba(54, 185, 204, 0.35); }
@media (max-width: 640px) { .ui-kpis { grid-template-columns: 1fr 1fr; } .ui-body { grid-template-columns: 1fr; } .ui-side { display: none; } }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--fg-2); font-weight: 500; cursor: pointer; font-size: 15px; }
.tab[aria-selected="true"] { color: var(--fg); background: var(--soft); border-color: rgba(107, 149, 255, 0.45); }

/* Jump links */
.jump { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 30; padding-block: 12px; background: rgba(10, 11, 22, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.jump .row a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); font-weight: 500; font-size: 15px; font-family: var(--f-mono); }
.jump .row a:hover, .jump .row a.is-active { color: var(--accent); background: var(--soft); border-color: rgba(107, 149, 255, 0.45); }

/* Pillars */
.pillar { display: grid; gap: 10px; align-content: start; padding: 22px 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(43, 108, 255, 0.10), rgba(20, 21, 31, 0.6)); }
.pillar .n { font-family: var(--f-mono); color: var(--cyan); font-size: 13px; }
.pillar h3 { font-size: 17px; line-height: 1.35; }

/* Panel band (security teaser, AI gap) */
.band { border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(43, 108, 255, 0.10), rgba(13, 15, 31, 0.9) 45%); padding: clamp(28px, 5vw, 56px); }
.band.cyan { border-color: rgba(54, 185, 204, 0.45); background: linear-gradient(140deg, rgba(54, 185, 204, 0.10), rgba(13, 15, 31, 0.9) 55%); }
.band-split { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.band-split > * { min-width: 0; }
@media (max-width: 760px) { .band-split { grid-template-columns: 1fr; } }

/* Isolation diagram */
.iso-diagram { display: grid; gap: 20px; }
.iso-platform { justify-self: center; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; border: 1px solid rgba(107, 149, 255, 0.5); background: var(--soft); font-family: var(--f-display); font-weight: 600; }
.iso-platform .badge2 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ok); border: 1px solid rgba(34, 197, 94, 0.5); border-radius: 999px; padding: 3px 10px; }
.iso-links { display: grid; grid-template-columns: repeat(3, 1fr); height: 28px; position: relative; }
.iso-links span { justify-self: center; width: 1px; background: linear-gradient(180deg, rgba(107, 149, 255, 0.7), rgba(54, 185, 204, 0.4)); }
.iso-tenants { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.tenant { border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px; display: grid; gap: 12px; background: var(--card); min-width: 0; }
.tenant h4 { font-size: 16px; }
.tenant .item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fg-2); }
.tenant .item .i { color: var(--cyan); width: 18px; height: 18px; }
.wall { display: grid; place-items: center; width: 22px; position: relative; }
.wall::before { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: repeating-linear-gradient(180deg, rgba(255, 138, 138, 0.8) 0 8px, transparent 8px 14px); }
.wall-label { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); text-align: center; }
@media (max-width: 760px) {
  .iso-links { display: none; }
  .iso-tenants { grid-template-columns: 1fr; }
  .wall { width: 100%; height: 18px; }
  .wall::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 138, 138, 0.8) 0 8px, transparent 8px 14px); }
}

/* Hosting table */
.facts { display: grid; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.facts .fr { display: grid; grid-template-columns: minmax(140px, 0.6fr) 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.facts .fr:first-child { border-top: 0; }
.facts .fr > * { min-width: 0; }
.facts dt { color: var(--fg-2); font-size: 15px; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts .fr { grid-template-columns: 1fr; gap: 4px; } }

/* Team */
.person { display: grid; gap: 12px; }
.photo { aspect-ratio: 1; border-radius: 14px; border: 1px dashed rgba(245, 181, 71, 0.5); background: rgba(245, 181, 71, 0.05); display: grid; place-items: center; padding: 16px; text-align: center; max-width: 100%; }

/* Mission quote */
.statement { font-family: var(--f-display); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; max-width: 30ch; text-wrap: balance; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.faq-layout > * { min-width: 0; }
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 4px; }
.toc a { color: var(--fg-2); padding: 6px 0; font-size: 15px; }
.toc a:hover { color: var(--fg); }
.faq-group { display: grid; gap: 12px; margin-bottom: 40px; }
.faq-group h2 { font-size: 22px; margin-bottom: 4px; }
details.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
details.qa summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .i { transition: transform 0.2s; color: var(--fg-2); }
details.qa[open] summary .i { transform: rotate(180deg); }
details.qa .ans { padding: 0 20px 20px; color: var(--fg-2); display: grid; gap: 10px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; } }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; align-items: start; }
.legal article { display: grid; gap: 32px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: 22px; }
.legal p, .legal li { color: var(--fg-2); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.notice { border: 1px dashed rgba(245, 181, 71, 0.5); border-radius: 14px; padding: 16px 18px; color: var(--fg-2); background: rgba(245, 181, 71, 0.05); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal .toc { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 14.5px; font-weight: 500; }
.field .opt { color: var(--fg-2); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03); color: var(--fg); font-size: 16px; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: rgba(161, 161, 181, 0.75); }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: var(--card-solid); color: var(--fg); }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.err { color: var(--err); font-size: 13.5px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--fg-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-2); }
.form-note { font-size: 14px; color: var(--fg-2); }
.success { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.success .ok-ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.5); color: var(--ok); }
.success .ok-ring .i { width: 26px; height: 26px; }
.next-steps { list-style: none; counter-reset: n; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--fg-2); }
.next-steps li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; color: var(--cyan); border: 1px solid rgba(54, 185, 204, 0.5); }
.channels { display: grid; gap: 12px; }
.channel { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.channel .i { color: var(--cyan); margin-top: 3px; }
.channel b { display: block; font-weight: 500; font-size: 14px; color: var(--fg-2); }
.response { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid rgba(107, 149, 255, 0.3); color: var(--fg); }
.response .i { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(107, 149, 255, 0.3); padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; display: grid; gap: 20px; justify-items: center; isolation: isolate;
  background: radial-gradient(600px 260px at 50% 0%, rgba(43, 108, 255, 0.35), transparent 70%), radial-gradient(500px 240px at 50% 110%, rgba(54, 185, 204, 0.22), transparent 70%), var(--bg-raised); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(115deg, transparent 40%, rgba(107, 149, 255, 0.08) 50%, transparent 60%); }
.cta-band p { color: var(--fg-2); max-width: 56ch; }
.cta-band .row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a, .footer-grid button.linklike { color: var(--fg); font-size: 15px; }
.footer-grid a:hover, .footer-grid button.linklike:hover { color: var(--accent); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer-brand p { color: var(--fg-2); font-size: 15px; max-width: 34ch; margin-top: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--fg-2); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  max-width: 760px; margin-inline: auto; background: var(--card-solid); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 20px; display: grid; gap: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}
.cookie p { color: var(--fg-2); font-size: 15px; }
.cookie .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cookie .btns .btn { padding: 11px 14px; font-size: 15px; }
.cookie-settings { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.cookie-settings label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.cookie-settings input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-2); }
@media (max-width: 560px) { .cookie .btns { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Gentle entrance for hero visuals; visible at rest */
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
.hero .panel, .hero .visual, .hero .iso-wrap { animation: rise 0.7s ease-out both; }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.pulse { animation: pulse 2.6s ease-in-out infinite; }

/* Layout refinements */
.split.wide-left { grid-template-columns: 1.25fr 0.75fr; }
.modules-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.modules-cols > * { min-width: 0; }
.iso-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.iso-section > * { min-width: 0; }
@media (max-width: 1080px) { .iso-section { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .split.wide-left { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .modules-cols { grid-template-columns: 1fr; } }


/* =====================================================================
   RegBear landing theme layer — keeps the look of the current landing page:
   navy field with soft blue/violet glows, floating blue orbs in the hero,
   blue→cyan gradient, glass cards and the glowing primary button.
   ===================================================================== */
html, body { background-color: #08081a; }
body {
  background:
    radial-gradient(1200px 620px at 12% -12%, rgba(99, 102, 241, 0.20), transparent 60%),
    radial-gradient(1000px 680px at 105% -5%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(900px 700px at 90% 110%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(160deg, #08081a 0%, #0b0b1e 55%, #0a0a18 100%);
  background-attachment: fixed;
  line-height: 1.6;
}
.site-header.scrolled { background: rgba(8, 8, 26, 0.82); }
.hero::before {
  inset: -120px -80px 0 -80px; filter: blur(70px); opacity: .55;
  background:
    radial-gradient(460px 460px at 8% 8%, #2563eb, transparent 62%),
    radial-gradient(420px 420px at 96% 10%, #1e40af, transparent 62%),
    radial-gradient(360px 360px at 46% 105%, rgba(34, 211, 238, 0.55), transparent 62%);
  animation: rbFloat 16s ease-in-out infinite alternate;
}
@keyframes rbFloat { 0% { transform: translate(0, 0); } 50% { transform: translate(24px, 30px); } 100% { transform: translate(-18px, 12px); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.btn-primary { background: var(--grad); box-shadow: 0 8px 30px rgba(43, 108, 255, 0.35); border: 0; }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(43, 108, 255, 0.5); }
.brand img { border-radius: 12px; box-shadow: 0 3px 14px rgba(43, 108, 255, 0.45); }
/* bigger logo in the header and the mobile menu */
.site-header .brand, .mobile-menu .brand { font-size: 1.32rem; gap: 12px; }
.site-header .brand img, .mobile-menu .brand img { width: 48px; height: 48px; }
.site-footer .brand img { width: 40px; height: 40px; }
/* real product screenshots */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 20px 60px -30px rgba(43, 108, 255, .45); transition: transform .25s, box-shadow .25s; }
.shot .caption { margin-top: 12px; }
/* hero: the 12 modules in two equal columns, so the chips line up */
.hero .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero .chips .chip { width: 100%; justify-content: flex-start; white-space: nowrap; line-height: 1.3; min-height: 46px; padding-inline: 12px; font-size: 14px; gap: 9px; }
/* wider modules panel on desktop so every module name fits on one line */
@media (min-width: 961px) {
  .hero-grid:has(.chips) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 3.5vw, 48px); }
  .hero .panel:has(.chips) { padding: 22px; }
}
@media (max-width: 1199px) { .hero .chips .chip { white-space: normal; } }
.hero .chips { grid-auto-rows: 1fr; }   /* every chip the same height, even when a name wraps */
.eyebrow, .reg, .panel-title { font-weight: 700; }
.h1, .h2 { letter-spacing: -0.025em; }
.h1 { font-weight: 800; }
.tour-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.form-alert { border: 1px solid rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .08); color: #fecdd3; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* team cards filled from Platform Admin › Landing Page */
.photo.has-img { border: 1px solid rgba(255, 255, 255, 0.08); background: none; padding: 0; overflow: hidden; }
.photo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.initials { border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(135deg, rgba(43, 108, 255, 0.35), rgba(54, 185, 204, 0.25)); }
.photo.initials span { font-size: 56px; font-weight: 800; letter-spacing: 0.02em; color: #fff; }

/* the RegBear shield logo (2026-10-15): shown by its height, never cropped; a soft blue glow instead of the round frame */
.brand img { width: auto; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 0 8px rgba(43, 108, 255, 0.45)); }
.site-header .brand img, .mobile-menu .brand img { width: auto; height: 48px; }
.site-footer .brand img { width: auto; height: 42px; }
.site-header .brand img, .mobile-menu .brand img { height: 58px; }
.site-footer .brand img { height: 48px; }

/* stats: numbers + labels centred (2026-10-15) */
.stat { justify-items: center; text-align: center; align-content: center; }

/* section cue: round arrow on the border above "See it in action" (product page), styled like the step badges */
.sec-cue { position: absolute; top: 0; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-solid); border: 1px solid rgba(54, 185, 204, 0.5); color: var(--cyan);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(54, 185, 204, 0.3); transition: border-color .2s, box-shadow .2s, color .2s; }
.sec-cue .i { width: 22px; height: 22px; animation: cue-bob 2.2s ease-in-out infinite; }
.sec-cue:hover, .sec-cue:focus-visible { color: #fff; border-color: rgba(56, 189, 248, 0.9); box-shadow: 0 0 0 6px var(--bg), 0 0 32px rgba(56, 189, 248, 0.5); }
@keyframes cue-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .sec-cue .i { animation: none; } }
