/* ============================================================
   AIBuild — prototype marketing site
   Modern minimal, dark, blurred video background
   Palette = the app's logo: blue gradient squircle + rainbow ring
   ============================================================ */

:root {
  --bg: #0f1420;
  --bg-soft: #141b2c;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-border: rgba(255, 255, 255, 0.09);
  --text: #e6eaf2;
  --text-dim: #9aa5bd;
  --text-faint: #6b7480;
  --accent: #4f8cff;
  --accent-hover: #6ba1ff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --accent-2: #3bb2b8;
  --accent-2-soft: rgba(59, 178, 184, 0.12);
  /* logo tile gradient (app tokens, same in both themes) */
  --brand-1: #60a5fa;
  --brand-2: #4f46e5;
  /* logo rainbow ring bands (app tokens --rb1..--rb6) */
  --rb1: #845ec2;
  --rb2: #3bb2b8;
  --rb3: #42e695;
  --rb4: #f9f871;
  --rb5: #ffc371;
  --rb6: #ff5f6d;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* ---------- background video layer ---------- */
.bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}
.bg-video-wrap video {
  position: absolute;
  inset: -24px;                  /* bleed so blur edges don't show */
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(10px) saturate(1.15) brightness(0.62);
  transform: scale(1.03);
}
.bg-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, transparent 0%, rgba(15, 20, 32, 0.55) 70%),
    linear-gradient(180deg, rgba(15, 20, 32, 0.35) 0%, rgba(15, 20, 32, 0.75) 60%, var(--bg) 100%);
}

/* subtle grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 20, 32, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* brand = the mark from AIBuild-Solution-Overview (full gradient squircle, open chevron
   with a near-white gradient stroke, indigo glow) + the app header's name, scaled 30/16 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; /* also under the Arabic font stack */
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px;
  flex: none;
  filter: drop-shadow(0 3px 10px color-mix(in srgb, var(--brand-2) 45%, transparent));
}
#brand-mark-grad .g1 { stop-color: var(--brand-1); }
#brand-mark-grad .g2 { stop-color: var(--brand-2); }
.brand-mark-glyph {
  fill: none;
  stroke: url(#brand-glyph-grad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand span.thin { color: var(--text-dim); font-weight: 400; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-cta {
  padding: 9px 18px !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  color: var(--text);
  width: 42px; height: 42px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- layout ---------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--text-dim);
  width: fit-content;
  margin-bottom: 28px;
}
.hero-kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 14ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--rb1), var(--rb2), var(--rb3), var(--rb4), var(--rb5), var(--rb6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 56ch;
}
.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  font-family: inherit; /* <button>s don't inherit the page font by default */
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bg-card-border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-soon { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---------- page head with a top-right action ("Request a demo") ---------- */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.page-head .sec-head { margin-bottom: 0; }
.page-head .demo-open { flex: none; }

/* ---------- "Request a demo" dialog ---------- */
.demo-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark; /* dark scrollbar when the form is taller than a phone screen */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-faint) 70%, transparent) transparent;
}
html[data-theme="light"] .demo-dialog { color-scheme: light; }
.demo-dialog::backdrop { background: rgba(5, 8, 15, 0.6); backdrop-filter: blur(4px); }
.demo-form { position: relative; display: grid; gap: 14px; padding: 28px; }
.demo-form h3 { font-size: 22px; padding-inline-end: 32px; }
.demo-sub { color: var(--text-dim); font-size: 15px; margin-top: -6px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.demo-form textarea { resize: vertical; min-height: 96px; }
.demo-form input:focus-visible,
.demo-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.demo-req { color: var(--accent); }
/* anti-spam field: invisible but present for bots; clipped in place (an off-screen
   offset would widen the dialog in right-to-left layouts) */
.demo-hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .demo-form { padding: 22px 18px; gap: 12px; }
  .demo-form textarea { min-height: 72px; }
}
.demo-privacy { font-size: 12.5px; color: var(--text-faint); }
.demo-privacy a, .demo-status a { color: var(--accent); }
.demo-actions { display: flex; justify-content: flex-end; }
.demo-actions .btn:disabled { opacity: 0.6; cursor: progress; }
.demo-status { font-size: 14px; min-height: 1.4em; color: var(--text-dim); }
.demo-status.ok { color: var(--accent-2); }
.demo-status.err { color: #ff7b7b; }
html[data-theme="light"] .demo-status.err { color: #c62828; }
.demo-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.demo-close:hover { background: rgba(127, 127, 127, 0.15); color: var(--text); }
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--text-faint), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- section headers ---------- */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sec-tag.blue { color: var(--accent-2); }
.sec-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 750;
}
.sec-head p { margin-top: 16px; color: var(--text-dim); font-size: 17px; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.card.blue .icon { background: var(--accent-2-soft); }
.card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ---------- AI strip ---------- */
.ai-strip {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(59, 178, 184, 0.22);
  background:
    radial-gradient(ellipse 60% 90% at 85% 10%, rgba(59, 178, 184, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(79, 140, 255, 0.08), transparent 60%),
    var(--bg-soft);
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.ai-strip h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.ai-strip p { color: var(--text-dim); font-size: 16px; }
.ai-list { list-style: none; display: grid; gap: 16px; }
.ai-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.ai-list li strong { color: var(--text); display: block; font-size: 15px; margin-bottom: 2px; }
.ai-list .badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  margin-top: 2px;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { padding: 28px 12px; }
.stat .num {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, #8f98a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { color: var(--text-faint); font-size: 13px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- feature detail (features page) ---------- */
.feat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.feat-block:first-of-type { border-top: none; }
.feat-block.flip .feat-media { order: -1; }
.feat-block h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin-bottom: 14px; }
.feat-block p { color: var(--text-dim); margin-bottom: 18px; }
.feat-block ul { list-style: none; display: grid; gap: 10px; }
.feat-block ul li {
  color: var(--text-dim);
  font-size: 15px;
  padding-inline-start: 26px;
  position: relative;
}
.feat-block ul li::before {
  content: "→";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
}
.feat-media {
  border-radius: var(--radius);
  border: 1px solid var(--bg-card-border);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}
.feat-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.feat-media .mock {
  padding: 30px;
  width: 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.7;
}
.feat-media .mock .k { color: var(--accent-2); }
.feat-media .mock .v { color: var(--accent); }

/* ---------- requirements page ---------- */
.req-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}
.req-table th, .req-table td {
  text-align: start;
  padding: 16px 20px;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.req-table tr:last-child td { border-bottom: none; }
.req-table th {
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.req-table td:first-child { color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.req-table .hi { color: var(--accent); font-weight: 600; }
.req-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-faint);
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--accent);
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 40px 36px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.pro {
  border-color: rgba(79, 140, 255, 0.45);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79, 140, 255, 0.1), transparent 70%),
    var(--bg-card);
}
.plan .plan-tag {
  position: absolute;
  top: -13px; inset-inline-start: 36px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan .plan-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 30px; }
.plan .price .amount { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; }
.plan .price .per { color: var(--text-faint); font-size: 14px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 36px; flex: 1; }
.plan ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
  align-items: flex-start;
}
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.plan ul li.off { opacity: 0.4; }
.plan ul li.off::before { content: "—"; color: var(--text-faint); }
.plan ul li .ai-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  padding: 2px 7px;
  border-radius: 5px;
  margin-inline-start: 4px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(60px, 9vw, 110px) 24px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--bg-card-border);
  background:
    radial-gradient(ellipse 70% 100% at 50% 120%, rgba(79, 140, 255, 0.14), transparent 60%),
    var(--bg-soft);
}
.cta-band h2 { font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 34px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 96px;
  padding: 48px 0 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--text-faint);
  font-size: 13.5px;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-inner nav a:hover { color: var(--text); }

/* ---------- legal notice (legal.html, French body in every language) ---------- */
.legal { max-width: 760px; }
.legal h3 { font-size: 19px; font-weight: 700; color: var(--text); margin: 36px 0 10px; }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-inline-start: 20px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-hover); }
.legal .legal-date { margin-top: 28px; font-size: 14px; color: var(--text-faint); }
/* draft placeholders: impossible to miss before publishing */
.legal mark.todo {
  background: color-mix(in srgb, var(--rb4) 24%, transparent);
  color: var(--text);
  padding: 1px 5px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .ai-strip { grid-template-columns: 1fr; gap: 32px; }
  .feat-block, .feat-block.flip { grid-template-columns: 1fr; gap: 28px; }
  .feat-block.flip .feat-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: 70px; right: 16px; left: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(17, 20, 26, 0.97);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 14px;
    display: none;
    backdrop-filter: blur(20px);
  }
  html[data-theme="light"] .nav-links { background: rgba(255, 255, 255, 0.97); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-burger { display: block; }
  .hero { padding-top: 120px; }
}

/* ============================================================
   Light theme
   ============================================================ */
html[data-theme="light"] {
  --bg: #eef1f6;
  --bg-soft: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-border: rgba(20, 24, 30, 0.12);
  --text: #171a1f;
  --text-dim: #4d5661;
  --text-faint: #7c8590;
  --accent: #2f6fe0;
  --accent-hover: #4f8cff;
  --accent-soft: rgba(47, 111, 224, 0.12);
  --accent-2: #22858c;
  --accent-2-soft: rgba(34, 133, 140, 0.12);
  /* rainbow bands deepened for contrast on white (same as the app) */
  --rb1: #7448b8;
  --rb2: #22858c;
  --rb3: #149a5c;
  --rb4: #b89000;
  --rb5: #d97a1e;
  --rb6: #e54857;
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .bg-video-wrap video {
  filter: blur(10px) saturate(1.05) brightness(1.2);
}
html[data-theme="light"] .bg-video-wrap::after {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, transparent 0%, rgba(238, 241, 246, 0.5) 70%),
    linear-gradient(180deg, rgba(238, 241, 246, 0.3) 0%, rgba(238, 241, 246, 0.72) 60%, var(--bg) 100%);
}
html[data-theme="light"] .grain { opacity: 0.03; }
html[data-theme="light"] .nav.scrolled {
  background: rgba(238, 241, 246, 0.8);
  border-bottom-color: rgba(20, 24, 30, 0.08);
}
html[data-theme="light"] .nav-cta { color: #fff !important; }
html[data-theme="light"] .nav-links a:hover { background: rgba(20, 24, 30, 0.06); }
html[data-theme="light"] .nav-links a[aria-current="page"] { background: rgba(20, 24, 30, 0.08); }
html[data-theme="light"] .btn-primary { color: #fff; }
html[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.55); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(255, 255, 255, 0.85); }
html[data-theme="light"] .hero-kicker { background: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .hero h1 .grad {
  background: linear-gradient(100deg, var(--rb1), var(--rb2), var(--rb3), var(--rb4), var(--rb5), var(--rb6));
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .stat .num {
  background: linear-gradient(180deg, #171a1f, #5a646f);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .card:hover { background: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .ai-strip {
  background:
    radial-gradient(ellipse 60% 90% at 85% 10%, rgba(34, 133, 140, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(47, 111, 224, 0.07), transparent 60%),
    var(--bg-soft);
}
html[data-theme="light"] .ai-list li { background: rgba(255, 255, 255, 0.65); }
html[data-theme="light"] .feat-media { background: #eceff3; }
html[data-theme="light"] .feat-media .mock { color: #4d5661; }
html[data-theme="light"] .req-table { background: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .req-table th { background: rgba(20, 24, 30, 0.04); }
html[data-theme="light"] .req-table th,
html[data-theme="light"] .req-table td { border-bottom-color: rgba(20, 24, 30, 0.08); }
html[data-theme="light"] .plan { background: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .plan.pro {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 111, 224, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.8);
}
html[data-theme="light"] .cta-band {
  background:
    radial-gradient(ellipse 70% 100% at 50% 120%, rgba(47, 111, 224, 0.12), transparent 60%),
    var(--bg-soft);
}
html[data-theme="light"] footer { border-top-color: rgba(20, 24, 30, 0.1); }
html[data-theme="light"] .plan .plan-tag { color: #fff; }
html[data-theme="light"] .feat-block { border-top-color: rgba(20, 24, 30, 0.08); }

/* ============================================================
   Nav controls: theme toggle + language selector
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
html[data-theme="light"] .icon-btn:hover { background: rgba(255, 255, 255, 0.9); }
.icon-btn .icon-sun { display: none; }
html[data-theme="light"] .icon-btn .icon-sun { display: block; }
html[data-theme="light"] .icon-btn .icon-moon { display: none; }

.lang { position: relative; }
.lang-btn {
  height: 40px;
  width: auto;
  padding: 0 12px;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
}
.lang-btn svg { flex: none; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 168px;
  background: rgba(17, 20, 26, 0.97);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 120;
}
html[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 40px rgba(20, 24, 30, 0.15);
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-dim);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  text-align: start;
}
.lang-menu button:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
html[data-theme="light"] .lang-menu button:hover { background: rgba(20, 24, 30, 0.06); }
.lang-menu button .code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.lang-menu button.active { color: var(--text); background: var(--accent-soft); }
.lang-menu button.active .code { color: var(--accent); }

@media (max-width: 900px) {
  .nav-inner { flex-wrap: nowrap; }
  .brand span.thin { display: none; }
}
@media (max-width: 640px) {
  .nav-right { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ============================================================
   Opening splash — a faithful port of the AIBuild app splash:
   squircle brand mark springs in, rainbow ring draws around it,
   sheen sweeps the tile, the AIBuild letters BUILD UP one by one
   (rainbow band + window-grid texture, revealed from the ground
   up) above a growing rainbow foundation; tagline fades up.
   Shown once per browser session on the home page. It then waits:
   the hint asks the visitor to move the logo's arrow up (drag,
   swipe, wheel or key; main.js sets --lift / --p while it moves),
   and the splash lifts away like a curtain. Click still skips.
   ============================================================ */
.site-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(130% 100% at 50% 0%, var(--bg-soft) 0%, var(--bg) 75%);
  transition:
    transform 0.7s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.45s ease 0.25s;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.site-splash.lifting { cursor: grabbing; }
.site-splash.closing { transform: translateY(-100%); opacity: 0; pointer-events: none; }
html.no-splash .site-splash { display: none; }

.ss-stage {
  direction: ltr; /* English-only logo block: never mirrored under Arabic RTL (letters would read "dliuBIA") */
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: ss-stage-in 0.72s cubic-bezier(0.25, 0.6, 0.3, 1) 0.05s forwards;
}
.ss-stage::before {
  content: "";
  position: absolute;
  left: 50%; top: 24%;
  z-index: -1;
  width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
}
/* ends on a real transform (not none) so the stage stays the ::before glow's containing block */
@keyframes ss-stage-in {
  0% { opacity: 0; transform: translateY(22px) scale(0.94); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.ss-mark {
  position: relative;
  width: clamp(88px, 13vw, 116px);
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.6);
  animation: ss-mark-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
  /* `translate` composes with the animated `transform`: the arrow follows the gesture */
  translate: 0 calc(-1 * var(--lift, 0px));
  transition: translate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-splash.lifting .ss-mark { transition: none; }
.site-splash.closing .ss-mark {
  translate: 0 -45vh;
  transition: translate 0.6s cubic-bezier(0.5, 0, 0.2, 1);
}
@keyframes ss-mark-in { to { opacity: 1; transform: scale(1); } }
.ss-mark-svg {
  display: block;
  width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--brand-2) 38%, transparent));
  /* idle nudge once the intro is done: the arrow hops up to show the gesture */
  animation: ss-nudge 2.4s cubic-bezier(0.45, 0, 0.3, 1) 2.2s infinite;
}
.site-splash.lifting .ss-mark-svg,
.site-splash.closing .ss-mark-svg { animation: none; }
@keyframes ss-nudge {
  0%, 50%, 100% { transform: translateY(0); }
  18% { transform: translateY(-12px); }
  32% { transform: translateY(-3px); }
}
#ss-mark-grad .g1 { stop-color: var(--brand-1); }
#ss-mark-grad .g2 { stop-color: var(--brand-2); }
#ss-ring-grad .rb1 { stop-color: var(--rb1); }
#ss-ring-grad .rb2 { stop-color: var(--rb2); }
#ss-ring-grad .rb3 { stop-color: var(--rb3); }
#ss-ring-grad .rb4 { stop-color: var(--rb4); }
#ss-ring-grad .rb5 { stop-color: var(--rb5); }
#ss-ring-grad .rb6 { stop-color: var(--rb6); }
.ss-ring {
  fill: none;
  stroke-width: 2;
  opacity: 0.85;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: ss-ring 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}
@keyframes ss-ring { to { stroke-dashoffset: 0; } }
.ss-mark-glyph {
  fill: none;
  stroke: url(#ss-glyph-grad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 72;
  stroke-dashoffset: 72;
  animation: ss-glyph 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}
@keyframes ss-glyph { to { stroke-dashoffset: 0; } }
.ss-mark-sheen {
  position: absolute;
  inset: 9.5%;
  border-radius: 31%;
  overflow: hidden;
  pointer-events: none;
}
.ss-mark-sheen::after {
  content: "";
  position: absolute;
  top: -25%; bottom: -25%;
  left: 0;
  width: 48%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-170%) skewX(-16deg);
  animation: ss-sheen 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.85s forwards;
}
@keyframes ss-sheen { to { transform: translateX(330%) skewX(-16deg); } }

.ss-titlewrap {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ss-title {
  display: flex;
  gap: 0.02em;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(46px, 8vw, 84px);
  line-height: 1;
}
.ss-letter {
  --lc: var(--rb1);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0 2px, transparent 2px 13px),
    linear-gradient(180deg,
      color-mix(in srgb, var(--lc) 100%, #ffffff 22%) 0%,
      var(--lc) 55%,
      color-mix(in srgb, var(--lc) 78%, #000000) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  clip-path: inset(100% 0 0 0);
  transform: translateY(0.12em);
  animation: ss-letter-build 0.65s cubic-bezier(0.3, 0.7, 0.25, 1) forwards;
  animation-delay: calc(0.45s + var(--i) * 95ms);
}
.ss-letter:nth-child(1) { --lc: var(--rb1); }
.ss-letter:nth-child(2) { --lc: var(--rb2); }
.ss-letter:nth-child(3) { --lc: var(--rb3); }
.ss-letter:nth-child(4) { --lc: var(--rb4); }
.ss-letter:nth-child(5) { --lc: var(--rb5); }
.ss-letter:nth-child(6) { --lc: var(--rb6); }
.ss-letter:nth-child(7) { --lc: var(--rb1); } /* 7 letters, 6 bands: wrap */
@keyframes ss-letter-build {
  0% { clip-path: inset(100% 0 0 0); transform: translateY(0.12em); }
  70% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); transform: translateY(0); }
}

.ss-foundation {
  margin-top: 16px;
  height: 4px;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--rb1), var(--rb2), var(--rb3), var(--rb4), var(--rb5), var(--rb6));
  transform: scaleX(0);
  transform-origin: center;
  animation: ss-foundation 0.6s cubic-bezier(0.22, 0.9, 0.32, 1) 1.2s forwards;
}
@keyframes ss-foundation { to { transform: scaleX(1); } }

.ss-tagline {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  animation: ss-tagline 0.6s ease 1.25s forwards;
}
@keyframes ss-tagline { to { opacity: 1; transform: none; } }

/* "Scroll the arrow up" hint: translated (data-i18n), fades as the arrow rises */
.ss-hint {
  margin-top: 34px;
  padding: 0 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  animation: ss-tagline 0.6s ease 1.9s forwards;
}
html[dir="rtl"] .ss-hint { direction: rtl; }
.ss-hint-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  padding-block: 9px;
  padding-inline: 13px 18px;
  border: 1px solid var(--bg-card-border);
  border-radius: 999px;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  opacity: calc(1 - var(--p, 0));
  transition: opacity 0.4s ease;
}
.site-splash.lifting .ss-hint-in { transition: none; }
.ss-hint-ico {
  flex: none;
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--brand-1);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: ss-hint-ico 1.4s ease-in-out infinite;
}
html[data-theme="light"] .ss-hint-ico { stroke: var(--brand-2); }
@keyframes ss-hint-ico {
  0%, 100% { transform: translateY(2px); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .site-splash { display: none; }
}

/* ============================================================
   Feature status (release caveats, 2026-10-17)
   "Coming soon" = roadmap, not included at launch
   "Beta" = works, setup/requirements not final
   ============================================================ */
.status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  padding: 2px 7px;
  border-radius: 5px;
  margin-inline-start: 4px;
}
.status-pill.soon { background: rgba(255, 195, 113, 0.14); color: var(--rb5); }
.status-pill.beta { background: rgba(132, 94, 194, 0.18); color: #b49ae6; }
html[data-theme="light"] .status-pill.soon { background: rgba(217, 122, 30, 0.12); }
html[data-theme="light"] .status-pill.beta { background: rgba(116, 72, 184, 0.12); color: var(--rb1); }
.card-pill { margin: 0 0 10px; }
.sec-tag .status-pill { letter-spacing: 0.08em; margin-inline-start: 8px; }
.plan ul li.soon { opacity: 0.75; }
.plan ul li.soon::before { content: "◷"; color: var(--rb5); }
.card.roadmap { border-style: dashed; }
.roadmap-banner {
  margin: 0 0 28px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 195, 113, 0.35);
  background: rgba(255, 195, 113, 0.08);
  color: var(--text-dim);
  font-size: 14.5px;
}
.roadmap-banner strong { color: var(--rb5); }
.roadmap-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================
   Right-to-left (Arabic, 2026-10-18) — the rules above use logical
   properties; these are the RTL-only leftovers.
   ============================================================ */
[dir="rtl"] { --font: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
[dir="rtl"] .feat-block ul li::before { content: "←"; }


/* ============================================================
   Glass interface + didactic layer (2026-10-26) — mirrors the app's
   second interface (src/renderer/glass.html): full-screen 3D model,
   floating glass panels, guided tour / journey / learn mode / help
   center / command palette.
   ============================================================ */
[id] { scroll-margin-top: 96px; }
.status-pill.new { background: rgba(66, 230, 149, 0.14); color: var(--rb3); }
html[data-theme="light"] .status-pill.new { background: rgba(20, 154, 92, 0.12); }

.glass-show {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(ellipse 55% 80% at 90% 0%, rgba(79, 70, 229, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(96, 165, 250, 0.10), transparent 60%),
    var(--bg-soft);
  padding: clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.glass-show h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.glass-show > div > p { color: var(--text-dim); font-size: 16px; margin-bottom: 22px; }
.glass-show .btn { margin-top: 26px; }
.learn-list { list-style: none; display: grid; gap: 10px; }
.learn-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--text-dim);
}
.learn-list li strong { color: var(--text); margin-inline-end: 6px; }
.learn-list .kbd {
  flex: none;
  min-width: 58px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--bg-card-border);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  direction: ltr;
}
html[data-theme="light"] .glass-show {
  background:
    radial-gradient(ellipse 55% 80% at 90% 0%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(96, 165, 250, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.78);
}
html[data-theme="light"] .learn-list .kbd { background: #fff; }

/* --- illustrated mock of the Glass interface (decorative, aria-hidden) --- */
.gm {
  --gm-sky-1: #1b2440;
  --gm-sky-2: #0d1222;
  --gm-ground: rgba(140, 160, 210, 0.10);
  --gm-gridline: rgba(160, 180, 230, 0.14);
  --gm-wall-1: #c9d3e6;
  --gm-wall-2: #a9b6cf;
  --gm-gable: #95a3bf;
  --gm-roof: #7b5a4a;
  --gm-roof-edge: #5d4338;
  --gm-win: #5f8fd6;
  --gm-glass-bg: rgba(28, 34, 52, 0.46);
  --gm-glass-border: rgba(255, 255, 255, 0.16);
  --gm-glass-hi: rgba(255, 255, 255, 0.22);
  --gm-line: rgba(230, 236, 250, 0.20);
  --gm-line-2: rgba(230, 236, 250, 0.11);
  --gm-ink: #e6eaf2;
  --gm-ink-dim: #a5b0c8;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius);
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(ellipse 70% 60% at 30% 10%, rgba(96, 165, 250, 0.22), transparent 70%),
    linear-gradient(180deg, var(--gm-sky-1), var(--gm-sky-2));
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  user-select: none;
}
html[data-theme="light"] .gm {
  --gm-sky-1: #e7eefb;
  --gm-sky-2: #cfdaee;
  --gm-ground: rgba(70, 90, 140, 0.08);
  --gm-gridline: rgba(70, 90, 140, 0.14);
  --gm-wall-1: #ffffff;
  --gm-wall-2: #e4e9f3;
  --gm-gable: #d5dceb;
  --gm-roof: #a0705a;
  --gm-roof-edge: #7d5545;
  --gm-win: #7fb0f0;
  --gm-glass-bg: rgba(255, 255, 255, 0.52);
  --gm-glass-border: rgba(255, 255, 255, 0.85);
  --gm-glass-hi: rgba(255, 255, 255, 0.95);
  --gm-line: rgba(20, 30, 50, 0.16);
  --gm-line-2: rgba(20, 30, 50, 0.08);
  --gm-ink: #171a1f;
  --gm-ink-dim: #4d5661;
  box-shadow: 0 30px 70px -34px rgba(30, 50, 90, 0.45);
}
.feat-media .gm { border: 0; border-radius: 0; box-shadow: none; }

.gm-scene { position: absolute; inset: 9% 20% 6% 18%; direction: ltr; } /* the drawing never mirrors (RTL keeps "6.00 m") */
.gm-scene svg { width: 100%; height: 100%; overflow: visible; }
.gm .ground { fill: var(--gm-ground); }
.gm .grid line { stroke: var(--gm-gridline); stroke-width: 0.8; }
.gm .w1 { fill: var(--gm-wall-1); }
.gm .w2 { fill: var(--gm-wall-2); }
.gm .gable { fill: var(--gm-gable); }
.gm .roof { fill: var(--gm-roof); stroke: var(--gm-roof-edge); stroke-width: 1.2; stroke-linejoin: round; }
.gm .win { fill: var(--gm-win); opacity: 0.85; }
.gm .door { fill: var(--gm-roof-edge); opacity: 0.75; }
.gm .sel { fill: none; stroke: var(--brand-1); stroke-width: 2.4; stroke-linejoin: round; }
.gm .sel-fill { fill: var(--brand-1); opacity: 0.16; }
.gm .dim line { stroke: var(--gm-ink-dim); stroke-width: 1; }
.gm .dim text { fill: var(--gm-ink-dim); font: 600 10px var(--font); }
.gm .sunpath { fill: none; stroke: var(--rb5); stroke-width: 1.4; stroke-dasharray: 3 5; opacity: 0.75; }
.gm .sun { fill: var(--rb5); }
.gm .sun-glow { fill: var(--rb5); opacity: 0.22; }

.gm-glass {
  position: absolute;
  background: var(--gm-glass-bg);
  border: 1px solid var(--gm-glass-border);
  box-shadow: inset 0 1px 0 var(--gm-glass-hi), 0 8px 24px -10px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  border-radius: 2.2cqw;
}
.gm-bar {
  top: 3.2%;
  inset-inline-start: 2.5%;
  height: 8.6%;
  width: 33%;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 0 1.2cqw;
}
.gm-mark { width: 3.8cqw; height: 3.8cqw; flex: none; filter: drop-shadow(0 0.4cqw 0.8cqw color-mix(in srgb, var(--brand-2) 45%, transparent)); }
.gm-mark .g1 { stop-color: var(--brand-1); }
.gm-mark .g2 { stop-color: var(--brand-2); }
.gm-mark path { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.gm-pill { height: 1.5cqw; border-radius: 1cqw; background: var(--gm-line); flex: 1; }
.gm-btn { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--gm-line-2); border: 1px solid var(--gm-line); flex: none; }
.gm-btn.tint { width: 7cqw; border-radius: 1.4cqw; background: color-mix(in srgb, var(--brand-1) 70%, transparent); border: 0; }
.gm-views {
  top: 3.2%;
  left: 50%;
  transform: translateX(-50%);
  height: 8.6%;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0 0.8cqw;
  border-radius: 99px;
}
.gm-views span { width: 6.4cqw; height: 4.4cqw; border-radius: 99px; background: transparent; }
.gm-views span::after { content: ""; display: block; margin: 1.5cqw auto 0; width: 3.6cqw; height: 1.3cqw; border-radius: 1cqw; background: var(--gm-line); }
.gm-views span.on { background: color-mix(in srgb, var(--brand-1) 26%, transparent); }
.gm-views span.on::after { background: var(--gm-ink-dim); }
.gm-right {
  top: 3.2%;
  inset-inline-end: 2.5%;
  height: 8.6%;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 0 1.2cqw;
}
.gm-ring { width: 3.8cqw; height: 3.8cqw; transform: rotate(-90deg); }
.gm-ring circle { fill: none; stroke-width: 4; }
.gm-ring .t { stroke: var(--gm-line); }
.gm-ring .p { stroke: var(--rb3); stroke-linecap: round; stroke-dasharray: 75.4; stroke-dashoffset: 18.85; } /* 6 of 8 */
.gm-out {
  top: 15%;
  bottom: 15%;
  inset-inline-start: 2.5%;
  width: 17%;
  padding: 1.4cqw 1.2cqw;
  display: flex;
  flex-direction: column;
  gap: 1.1cqw;
}
.gm-tabs { display: flex; gap: 0.6cqw; margin-bottom: 0.4cqw; }
.gm-tabs i { flex: 1; height: 2cqw; border-radius: 0.8cqw; background: var(--gm-line-2); }
.gm-tabs i:first-child { background: var(--gm-line); }
.gm-row { display: flex; align-items: center; gap: 0.8cqw; }
.gm-row i { width: 1.8cqw; height: 1.8cqw; border-radius: 0.5cqw; flex: none; }
.gm-row b { height: 1.1cqw; border-radius: 1cqw; background: var(--gm-line); flex: 1; }
.gm-row.on { background: color-mix(in srgb, var(--brand-1) 20%, transparent); border-radius: 0.8cqw; margin: 0 -0.5cqw; padding: 0.5cqw; }
.gm-insp {
  top: 15%;
  bottom: 15%;
  inset-inline-end: 2.5%;
  width: 21%;
  padding: 1.4cqw 1.2cqw;
  display: grid;
  grid-template-columns: 2.6cqw 1fr;
  gap: 1.2cqw;
}
.gm-rail { display: flex; flex-direction: column; gap: 0.9cqw; }
.gm-rail i { width: 2.6cqw; height: 2.6cqw; border-radius: 0.8cqw; background: var(--gm-line-2); }
.gm-rail i.on { background: color-mix(in srgb, var(--brand-1) 55%, transparent); }
.gm-fields { display: flex; flex-direction: column; gap: 1cqw; }
.gm-fields b { display: block; height: 1.1cqw; border-radius: 1cqw; background: var(--gm-line); }
.gm-fields b.h { height: 1.6cqw; width: 70%; background: var(--gm-ink-dim); opacity: 0.55; }
.gm-fields b.s { width: 55%; }
.gm-fields .sw { display: flex; gap: 0.7cqw; margin: 0.3cqw 0; }
.gm-fields .sw i { width: 2.6cqw; height: 2.6cqw; border-radius: 0.7cqw; }
.gm-dock {
  bottom: 3.2%;
  left: 50%;
  transform: translateX(-50%);
  height: 8.6%;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0 1.3cqw;
  border-radius: 99px;
}
.gm-dock i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: var(--gm-line-2); border: 1px solid var(--gm-line); position: relative; }
.gm-dock i.on { background: color-mix(in srgb, var(--rb5) 70%, transparent); border-color: transparent; }
.gm-cursor {
  position: absolute;
  width: 2.6cqw;
  height: 2.6cqw;
  inset-inline-start: 1.6cqw;
  top: 1.7cqw;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
[dir="rtl"] .gm-cursor { transform: scaleX(-1); }
.gm-learn {
  top: 14.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  padding: 1.1cqw 1.5cqw;
  border-radius: 1.6cqw;
  font-size: max(8.5px, 1.45cqw);
  line-height: 1.35;
  color: var(--gm-ink-dim);
}
.gm-learn b {
  display: block;
  color: var(--gm-ink);
  font-size: max(8px, 1.25cqw);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3cqw;
}
.gm-learn b::before { content: "ⓘ "; color: var(--brand-1); letter-spacing: 0; }
.gm-learn span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (prefers-reduced-transparency: reduce) {
  .gm-glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 900px) {
  .glass-show { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .gm-learn { width: 56%; }
}
