@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cascadia Code";
  src: url("/assets/fonts/CascadiaCode.ttf") format("truetype-variations");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
/* ---------------------------------------------------------------------------
 * BAKai annini Design System Core CSS
 * Adapted for bak.ai annini
 * ------------------------------------------------------------------------ */

:root {
  --ac: #E45572; /* Accent Color (BAKai Blue) */
  --font-en: "Nunito", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Noto Sans Arabic", Amiri, system-ui, sans-serif;
  --font-mono-jb: "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base resets & selections */
::selection {
  background: rgba(225, 6, 0, 0.14);
}

.fg-mono {
  font-family: var(--font-mono-jb);
}

.fg-en {
  font-family: var(--font-en);
}

.fg-navlink .fg-en,
.fg-aside__label .fg-en {
  font-family: var(--font-mono-jb);
}

.fg-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- Header ---- */
.fg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fg-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.fg-header[data-hidden="true"] {
  transform: translateY(-110%);
}

.fg-menu-open .fg-header[data-scrolled="true"] {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.fg-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  min-height: clamp(64px, 6vw, 104px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fg-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}

.fg-brand img {
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
  margin-left: -10px;
  margin-right: -10px;
}

.fg-brand__sub {
  display: none;
  font-family: var(--font-mono-jb);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6b7280;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  html.lang-de .fg-brand__sub,
  html.lang-ar .fg-brand__sub {
    display: inline;
  }
}

@media (min-width: 1280px) {
  html:not(.lang-de):not(.lang-ar) .fg-brand__sub {
    display: inline;
  }
}

.fg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fg-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fg-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.fg-nav ul::-webkit-scrollbar {
  display: none;
}

.fg-navlink {
  font-family: var(--font-mono-jb);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #374151;
  text-decoration: none;
  padding: 8px 10px;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.fg-navlink:hover {
  color: var(--ac);
}

.fg-navlink[data-active="true"] {
  color: var(--ac);
}

/* Language selector toggle */
.fg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono-jb);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #374151;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.fg-pill .t-de,
.fg-pill .t-ar {
  font-family: var(--font-mono-jb);
}

.fg-pill:hover {
  border-color: var(--ac);
  color: var(--ac);
}

.fg-langwrap {
  position: relative;
}

.fg-pill__chev {
  color: #6b7280;
  transition: transform 0.15s ease;
}

[data-lang-toggle][aria-expanded="true"] {
  border-color: var(--ac);
  color: var(--ac);
}

[data-lang-toggle][aria-expanded="true"] .fg-pill__chev {
  transform: rotate(180deg);
}

.fg-langmenu {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 80;
}

html.lang-ar .fg-langmenu {
  right: auto;
  left: 0;
}

.fg-langmenu[data-open="true"] {
  display: flex;
  flex-direction: column;
}

.fg-langopt {
  font-family: var(--font-ar);
  text-align: left;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.fg-langopt:hover {
  background: #f9fafb;
}

html:not(.lang-de):not(.lang-ar) [data-lang-option="en"] {
  color: var(--ac);
}

html.lang-de [data-lang-option="de"],
html.lang-ar [data-lang-option="ar"] {
  color: var(--ac);
}

/* Mobile Hamburger & Menu */
.fg-burger {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #111827;
}

.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;
}

[data-desktop-nav] {
  display: flex;
}

[data-mobile-menu-button] {
  display: none;
}

[data-mobile-menu] {
  display: none;
}

[data-site-header][data-nav-collapsed="true"] [data-mobile-menu][data-open="true"] {
  display: flex !important;
}

.fg-mobilemenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  flex-direction: column;
  width: auto;
  max-width: none;
  background: #fff;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fg-mobilemenu li {
  list-style: none;
}

.fg-mm__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: #fff;
}

.fg-mm__bar img {
  height: 40px;
  width: auto;
  max-width: none;
  display: block;
  margin-left: -10px;
}

.fg-mm__close {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #111827;
}

.fg-mm__body {
  flex: 1;
  padding: 16px 20px calc(28px + env(safe-area-inset-bottom));
}

.fg-mobilemenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.fg-mobilemenu ul button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  padding: 16px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

html.lang-ar .fg-mobilemenu ul button {
  font-family: var(--font-ar);
}

.fg-mobilemenu ul button:hover,
.fg-mobilemenu ul button[data-active="true"] {
  color: var(--ac);
}

.fg-mm__chev {
  flex: none;
  color: #9ca3af;
}

.fg-mm__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 20px;
  background: #111827;
  color: #fff;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.fg-mm__cta:hover {
  background: #1f2937;
}

.fg-mm__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 28px 0;
}

.fg-mm__label {
  font-family: var(--font-mono-jb);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0 0 16px;
}

.fg-mm__products {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fg-mm__product {
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

html.lang-ar .fg-mm__product {
  font-family: var(--font-ar);
}

.fg-mm__product:hover {
  color: var(--ac);
}

.fg-mm__social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.fg-mm__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  transition: color 0.15s ease;
}

.fg-mm__social a:hover {
  color: var(--ac);
}

.fg-mm__social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fg-mm__langrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 36px;
}

.fg-mm__lang {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 2px 4px;
  font-family: var(--font-mono-jb);
  font-size: 15px;
  font-weight: 600;
  color: #9ca3af;
}

html:not(.lang-de):not(.lang-ar) .fg-mm__lang[data-lang-option="en"],
html.lang-de .fg-mm__lang[data-lang-option="de"],
html.lang-ar .fg-mm__lang[data-lang-option="ar"] {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fg-mm__sep {
  color: #d1d5db;
  font-family: var(--font-mono-jb);
}

.fg-menu-open {
  overflow: hidden;
}

.fg-menu-open .fg-mcta {
  display: none !important;
}

/* Mobile Sticky Bottom CTA */
.fg-mcta {
  display: none;
}

.fg-mcta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: #111827;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.fg-mcta__btn:hover {
  background: #1f2937;
}

/* ---- Rails / Sections ---- */
.fg-sec {
  padding: clamp(64px, 9vw, 128px) clamp(20px, 4vw, 48px);
}

.fg-sec--alt {
  background: #fafbfc;
}

.fg-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.fg-aside {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fg-aside__label {
  font-family: var(--font-mono-jb);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ac);
}

.fg-aside__bar {
  width: 28px;
  height: 2px;
  background: var(--ac);
  margin-top: 10px;
}

.fg-h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  text-transform: lowercase;
}

.fg-herosub {
  text-transform: lowercase;
}

/* German nouns must stay capitalised — don't lowercase DE headings. */
html.lang-de .fg-h1,
html.lang-de .fg-h2,
html.lang-de .fg-herosub {
  text-transform: none;
}

.fg-lead {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.95;
  color: #6b7280;
  max-width: 680px;
}

.fg-herolead {
  font-size: 16px;
  line-height: 1.85;
}

.fg-link {
  color: var(--ac);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Buttons ---- */
.fg-btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fg-btn--dark {
  background: #111827;
  color: #fff;
}

.fg-btn--dark:hover {
  background: #1f2937;
}

.fg-btn--ghost {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

.fg-btn--ghost:hover {
  border-color: #9ca3af;
}

/* ---- Hero ---- */
.fg-hero {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px) 0;
}

.fg-hero__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.fg-hero__col {
  flex: 1 1 340px;
  min-width: 260px;
}

.fg-hero__media {
  flex: 1 1 300px;
  min-width: 260px;
}

.fg-eyebrow {
  font-family: var(--font-mono-jb);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ac);
}

.fg-h1 {
  margin: 22px 0 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #111827;
  text-transform: lowercase;
}

.fg-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.fg-hero__notice {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #9ca3af;
}

/* ---- Partners Strip ---- */
.fg-partners {
  --fg-logos-gap: clamp(26px, 4vw, 46px);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.fg-partners__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 34px) clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: nowrap;
}

.fg-partners__label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono-jb);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #6b7280;
  white-space: nowrap;
  flex: none;
}

.fg-partners__label .t-de,
.fg-partners__label .t-ar {
  font-family: var(--font-mono-jb);
}

.fg-partners__vp {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fg-partners__track {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-partners__logos {
  display: flex;
  align-items: center;
  gap: var(--fg-logos-gap);
  flex: none;
}

.fg-partners__logo {
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.fg-partners__logo:hover {
  opacity: 0.55;
}

.fg-partners__logo img {
  width: auto;
  max-width: none;
  display: block;
}

.fg-partners__logo--or img {
  height: 22px;
}

.fg-partners__logo--vc img {
  height: 60px;
  margin: -18px 0;
}

.fg-partners__logos--clone {
  display: none;
}

/* Partners strip modes */
.fg-partners[data-mode="stacked"] .fg-partners__inner,
.fg-partners[data-mode="grid"] .fg-partners__inner,
.fg-partners[data-mode="marquee"] .fg-partners__inner {
  flex-direction: column;
  gap: 20px;
}

.fg-partners[data-mode="grid"] .fg-partners__vp,
.fg-partners[data-mode="marquee"] .fg-partners__vp {
  width: 100%;
}

.fg-partners[data-mode="grid"] .fg-partners__track,
.fg-partners[data-mode="marquee"] .fg-partners__track {
  width: 100%;
}

.fg-partners[data-mode="grid"] .fg-partners__logos:not(.fg-partners__logos--clone) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 24px 32px;
  width: 100%;
}

.fg-partners[data-mode="marquee"] .fg-partners__vp {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.fg-partners[data-mode="marquee"] .fg-partners__track {
  width: max-content;
  justify-content: flex-start;
  animation: fg-pmarquee var(--fg-marquee-dur, 30s) linear infinite;
}

.fg-partners[data-mode="marquee"] .fg-partners__logos {
  padding-right: var(--fg-logos-gap);
}

.fg-partners[data-mode="marquee"] .fg-partners__logos--clone {
  display: flex;
}

.fg-partners[data-mode="marquee"]:hover .fg-partners__track {
  animation-play-state: paused;
}

@keyframes fg-pmarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fg-partners__track {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .fg-partners {
    --fg-logos-gap: 30px;
  }
  .fg-partners__inner {
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* ---- Grid Cells (Benefits / Features) ---- */
.fg-cells {
  display: grid;
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  margin-top: clamp(32px, 4vw, 48px);
}

.fg-cells--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fg-cells--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.fg-cell {
  background: #fff;
  padding: 26px 24px;
}

.fg-cell__n {
  font-family: var(--font-mono-jb);
  font-size: 14px;
  color: var(--ac);
  letter-spacing: 0.06em;
}

.fg-cell__t {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-top: 14px;
  line-height: 1.5;
}

.fg-cell__b {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #6b7280;
}

/* ---- Figures & Media ---- */
.fg-figure {
  margin: clamp(36px, 4vw, 52px) 0 0;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.fg-figure__pad {
  padding: clamp(20px, 3vw, 40px);
}

.fg-figure img {
  width: 100%;
  max-width: 640px;
  display: block;
  margin: 0 auto;
}

.fg-figcap {
  font-family: var(--font-mono-jb);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px;
}

/* ---- Research Foundations ---- */
.fg-foundations {
  margin-top: clamp(32px, 4vw, 48px);
  border: 1px solid #e5e7eb;
}

.fg-foundation {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid #e5e7eb;
}

.fg-foundation:last-child {
  border-bottom: 0;
}

.fg-foundation__img {
  flex: 1 1 320px;
  min-width: 240px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.fg-foundation__img img {
  width: 100%;
  display: block;
}

.fg-foundation__body {
  flex: 1 1 320px;
  min-width: 240px;
}

.fg-paper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono-jb);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ac);
  text-decoration: none;
  border-bottom: 1px solid var(--ac);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}

.fg-paper:hover {
  opacity: 0.8;
}

.fg-foundation__t {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.fg-foundation__t a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fg-foundation__t a:hover {
  color: var(--ac);
}

.fg-foundation__b {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #6b7280;
}

/* ---- Model Grid details ---- */
.fg-model__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.fg-model__name {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  color: #111827;
}

.fg-model__tag {
  font-family: var(--font-mono-jb);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ac);
  text-align: right;
}

.fg-model__b {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #6b7280;
}

/* ---- Benchmarks Table & Chart ---- */
.fg-benchlead {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: #6b7280;
  max-width: 680px;
}

.fg-benchchart {
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: clamp(12px, 2vw, 24px);
}

.fg-benchchart img {
  width: 100%;
  height: auto;
  display: block;
}

.fg-benchcap {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #6b7280;
}

.fg-note {
  margin: 24px 0 0;
  font-family: var(--font-mono-jb);
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.fg-tablewrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
}

.fg-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}

.fg-table thead tr {
  background: #111827;
}

.fg-table th {
  padding: 14px 18px;
  font-family: var(--font-mono-jb);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e5e7eb;
  text-align: center;
  white-space: nowrap;
}

.fg-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  text-align: center;
  color: #374151;
  font-family: var(--font-mono-jb);
  white-space: nowrap;
}

.fg-table tbody tr {
  border-top: 1px solid #eef2f6;
}

.fg-table tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.fg-table tbody tr:nth-child(even) {
  background: #fff;
}

.fg-table td.fg-th {
  padding: 13px 18px;
  font-size: 13px;
  text-align: left;
  color: #0f172a;
  font-family: var(--font-ar);
  font-weight: 600;
}

.fg-tint {
  background: rgba(225, 6, 0, 0.06);
}

.fg-best {
  font-weight: 700;
  color: #0f172a;
}

.fg-2nd {
  text-decoration: underline;
  text-decoration-color: #94a3b8;
  text-underline-offset: 3px;
}

.fg-tnote {
  margin: 16px 0 0;
  font-family: var(--font-mono-jb);
  font-size: 11px;
  line-height: 1.9;
  color: #9ca3af;
}

.fg-tnote p {
  margin: 0;
}

/* ---- Qualitative Carousel ---- */
.fg-exviewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.fg-extrack {
  grid-row: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.fg-extrack::-webkit-scrollbar {
  display: none;
}

.fg-exslide {
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.fg-exframe {
  position: relative;
  aspect-ratio: 900/380;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

.fg-exframe video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fg-exframe img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Video/Media error/warning overlay */
.fg-video-warning {
  position: absolute;
  inset: 0;
  background: #111827;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  font-family: var(--font-mono-jb);
  font-size: 13px;
}

.fg-video-warning svg {
  color: var(--ac);
  width: 32px;
  height: 32px;
}

.fg-extag {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  font-family: var(--font-mono-jb);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #111827;
}

.fg-excap {
  grid-row: 2;
  grid-column: 1;
  visibility: hidden;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.fg-excap[data-active="true"] {
  visibility: visible;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fg-excap p {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: #6b7280;
}

.fg-exnav {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.fg-exbtn {
  width: 44px;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.fg-exbtn:hover {
  border-color: #9ca3af;
}

.fg-exdots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fg-exdot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.fg-exdot[data-active="true"] {
  background: var(--ac);
}

/* ---- Field Notes ---- */
.fg-notes {
  border-top: 1px solid #e5e7eb;
  margin-top: clamp(28px, 3vw, 40px);
}

.fg-note-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid #e5e7eb;
}

.fg-note-row__n {
  font-family: var(--font-mono-jb);
  font-size: 15px;
  color: var(--ac);
}

.fg-note-row__role {
  font-family: var(--font-mono-jb);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.fg-note-row__t {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-top: 8px;
}

.fg-note-row__q {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: #374151;
  max-width: 760px;
}

/* ---- Pricing Plans ---- */
.fg-plan {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: clamp(22px, 3vw, 32px);
}

.fg-plan + .fg-plan {
  margin-top: 24px;
}

.fg-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.fg-plan__title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-left: 8px;
}

.fg-tag {
  font-family: var(--font-mono-jb);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #111827;
  color: #111827;
  white-space: nowrap;
}

.fg-tag--ac {
  border-color: var(--ac);
  color: var(--ac);
}

.fg-plan__desc {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #6b7280;
}

.fg-subcells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
  align-items: stretch;
}

.fg-subcell {
  padding: 20px;
  border: 1px solid #e5e7eb;
  background: #fafbfc;
  container-type: inline-size;
}

.fg-subcell__name {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.fg-subcell__sub {
  font-family: var(--font-mono-jb);
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.fg-subcell__lbl {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.fg-subcell__p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #6b7280;
}

.fg-pricegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  margin-top: 20px;
}

@container (max-width:380px) {
  .fg-pricegrid {
    grid-template-columns: 1fr;
  }
}

.fg-pricecell {
  background: #fff;
  padding: 18px 14px;
}

.fg-pricecell__l {
  font-size: 11px;
  color: #6b7280;
}

.fg-pricecell__p {
  font-family: var(--font-mono-jb);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  color: #111827;
  margin-top: 8px;
}

.fg-pricecell__n {
  font-size: 10px;
  line-height: 1.5;
  color: #9ca3af;
  margin-top: 10px;
}

.fg-gift {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 3px solid var(--ac);
  background: #f9fafb;
}

.fg-gift span:last-child {
  font-size: 13px;
  line-height: 1.7;
  color: #111827;
}

.fg-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  margin-top: 18px;
}

.fg-tier {
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.fg-tier__name {
  font-family: var(--font-mono-jb);
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.fg-tier__price {
  margin-top: 10px;
  font-family: var(--font-mono-jb);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
}

.fg-tier__price span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

.fg-tier__sub {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.fg-tier__desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #9ca3af;
  flex: 1;
}

.fg-tier__badge {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono-jb);
  color: var(--ac);
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

/* ---- FAQ Accordion ---- */
.fg-faqs {
  border-top: 1px solid #111827;
}

.fg-faq {
  border-bottom: 1px solid #e5e7eb;
}

.fg-faq__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 22px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.fg-faq__n {
  font-family: var(--font-mono-jb);
  font-size: 15px;
  color: var(--ac);
}

.fg-faq__q {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
}

.fg-faq__icon {
  color: var(--ac);
  display: flex;
  justify-content: center;
}

.fg-faq__icon .fg-minus {
  display: none;
}

[data-faq-item][data-open="true"] .fg-faq__icon .fg-minus {
  display: block;
}

[data-faq-item][data-open="true"] .fg-faq__icon .fg-plus {
  display: none;
}

.fg-faq__ans {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

[data-faq-answer][data-open="true"] {
  grid-template-rows: 1fr;
}

.fg-faq__ans p {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 4px 0 64px;
  font-size: 14px;
  line-height: 1.9;
  color: #6b7280;
  transition: padding-bottom 0.22s ease;
}

[data-faq-answer] p[data-open="true"] {
  padding-bottom: 24px;
}

/* ---- Footer ---- */
.fg-footer {
  background: #fff;
  padding: 48px clamp(20px, 4vw, 48px);
  border-top: 1px solid #e5e7eb;
}

.fg-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 500px);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "logo links"
    "copy links";
  column-gap: 64px;
  row-gap: 24px;
  min-height: 280px;
}

.fg-footer__logo {
  grid-area: logo;
  align-self: end;
}

.fg-footer__logo img {
  height: 45px;
  display: block;
  margin-left: -11px;
}

.fg-footer__links {
  grid-area: links;
  align-self: start;
  display: flex;
  flex-direction: column;
}

.fg-footer__links a {
  font-family: var(--font-ar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  transition: color 0.15s ease;
}

.fg-footer__links a:hover {
  color: var(--ac);
}

.fg-footer__links a svg {
  flex: none;
  stroke: #9ca3af;
  transition: stroke 0.15s ease;
}

.fg-footer__links a:hover svg {
  stroke: var(--ac);
}

.fg-footer__copy {
  grid-area: copy;
  align-self: end;
  font-family: var(--font-mono-jb);
  font-size: 12px;
  color: #9ca3af;
}

.fg-footer__copy .t-de,
.fg-footer__copy .t-ar {
  font-family: var(--font-mono-jb);
}

/* ---- Responsive Overrides ---- */
@media (max-width: 760px) {
  .fg-header__inner {
    min-height: 44px;
  }
  .fg-brand img {
    height: 40px;
  }
  .fg-langwrap {
    display: none;
  }
  .fg-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .fg-table {
    min-width: 560px;
  }
  .fg-hero__grid {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(24px, 5vw, 40px);
  }
  .fg-hero__col,
  .fg-hero__media {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  .fg-hero__cta {
    display: none;
  }
  .fg-benchchart {
    padding: 0;
    border: none;
  }
  .fg-aside {
    position: static;
    top: auto;
    margin-bottom: 16px;
  }
  .fg-sec {
    padding: 48px clamp(16px, 4vw, 20px);
  }
  .fg-hero {
    padding: 24px clamp(16px, 4vw, 20px) 0;
  }
  .fg-h1 {
    font-size: clamp(40px, 12vw, 52px);
  }
  .fg-note-row {
    grid-template-columns: 32px 1fr;
    gap: 12px;
  }
  .fg-pricegrid,
  .fg-tiers {
    grid-template-columns: 1fr;
  }
  .fg-faq__btn {
    grid-template-columns: 32px 1fr 24px;
    gap: 10px;
    padding: 18px 2px;
  }
  .fg-faq__ans p {
    padding-left: 44px;
  }
  .fg-mcta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .fg-footer {
    padding-bottom: 96px;
  }
  .fg-footer__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "logo"
      "links"
      "copy";
    min-height: 0;
    row-gap: 0;
  }
  .fg-footer__links {
    margin-top: 36px;
  }
  .fg-footer__copy {
    margin-top: 36px;
  }
  .fg-herolead {
    font-size: 13.5px;
    line-height: 1.6;
  }
  .fg-herosub {
    display: none;
  }
}

/* Bilingual content toggle utilities */
.t-de,
.t-ar,
html.lang-de .t-en,
html.lang-de .t-ar,
html.lang-ar .t-en,
html.lang-ar .t-de {
  display: none;
}
html.lang-de .t-de,
html.lang-ar .t-ar {
  display: revert;
}
html.lang-ar {
  direction: rtl;
}
html.lang-ar .t-ar {
  font-family: var(--font-ar);
}

/* Collapse mobile headers */
[data-site-header][data-nav-collapsed="true"] [data-desktop-nav] {
  display: none !important;
}
[data-site-header][data-nav-collapsed="true"] [data-mobile-menu-button] {
  display: inline-flex !important;
}
[data-site-header][data-nav-collapsed="true"] [data-mobile-menu][data-open="true"] {
  display: block !important;
}

/* Use-cases cells share one row grid, so the head divider sits at the
   same height whether the name wraps to one line or two. */
#use-cases .fg-cells {
  grid-template-rows: auto auto;
}

#use-cases .fg-cell {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
}

#use-cases .fg-model__b {
  align-self: start;
}

.fg-arch {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}
