@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Nunito:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* =========================================================
   Site-wide — bright game-juice Material theme
   ========================================================= */

:root {
  --gff-ink: #1a2744;
  --gff-mute: #5b6b88;
  --gff-line: rgba(26, 39, 68, 0.1);
  --gff-sky: #f4f8ff;
  --gff-cloud: #ffffff;
  --gff-godot: #478cbf;
  --gff-teal: #2bb8a8;
  --gff-orange: #ff7a3d;
  --gff-lilac: #7b6fd4;
  --gff-display: "Space Grotesk", "Segoe UI", sans-serif;
  --gff-sans: "Nunito", "Segoe UI", sans-serif;
  --gff-mono: "JetBrains Mono", ui-monospace, monospace;
  --gff-pad: clamp(1.25rem, 4vw, 3.5rem);
  --gff-max: 1120px;
  --gff-shadow: 0 18px 40px rgba(45, 80, 140, 0.12);

  --md-text-font: "Nunito", "Segoe UI", sans-serif;
  --md-code-font: "JetBrains Mono", ui-monospace, monospace;
  --md-primary-fg-color: #2f6fad;
  --md-primary-fg-color--light: #478cbf;
  --md-primary-fg-color--dark: #1a4a7a;
  --md-accent-fg-color: #2bb8a8;
  --md-accent-fg-color--transparent: #2bb8a81a;
}

[data-md-color-scheme="default"] {
  --md-default-fg-color: #1a2744;
  --md-default-fg-color--light: #5b6b88;
  --md-default-fg-color--lighter: #8b9bb5;
  --md-default-fg-color--lightest: #c5d0e0;
  --md-default-bg-color: #f7fbff;
  --md-default-bg-color--light: #eef5ff;
  --md-default-bg-color--lighter: #ffffff;
  --md-default-bg-color--lightest: #ffffff;
  --md-typeset-color: #1a2744;
  --md-typeset-a-color: #2f6fad;
  --md-code-fg-color: #1f4f7a;
  --md-code-bg-color: rgba(71, 140, 191, 0.1);
  --md-code-hl-color: rgba(255, 122, 61, 0.18);
  --md-footer-bg-color: #eef4fc;
  --md-footer-bg-color--dark: #e4ecf8;
  --md-footer-fg-color: #1a2744;
  --md-footer-fg-color--light: #5b6b88;
  --md-footer-fg-color--lighter: #8b9bb5;
  --md-admonition-bg-color: #ffffff;
  --md-admonition-fg-color: #1a2744;
}

[data-md-color-scheme="slate"] {
  --gff-ink: #e8eef7;
  --gff-mute: #9aabbf;
  --gff-line: rgba(235, 240, 250, 0.12);
  --gff-sky: #121c2b;
  --gff-cloud: #162033;
  --gff-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --md-default-fg-color: #e8eef7;
  --md-default-fg-color--light: #9aabbf;
  --md-default-fg-color--lighter: #6b7c94;
  --md-default-fg-color--lightest: #3d4d66;
  --md-default-bg-color: #0f1724;
  --md-default-bg-color--light: #121c2b;
  --md-default-bg-color--lighter: #162033;
  --md-default-bg-color--lightest: #1a2438;
  --md-primary-fg-color: #6aa8d4;
  --md-accent-fg-color: #3ecfc0;
  --md-typeset-color: #e8eef7;
  --md-typeset-a-color: #7eb6de;
  --md-code-bg-color: rgba(255, 255, 255, 0.08);
  --md-code-fg-color: #d7e6f5;
  --md-code-hl-color: rgba(255, 122, 61, 0.22);
  --md-footer-bg-color: #0c1320;
  --md-footer-bg-color--dark: #0a101a;
  --md-footer-fg-color: #e8eef7;
  --md-footer-fg-color--light: #9aabbf;
  --md-footer-fg-color--lighter: #6b7c94;
  --md-admonition-bg-color: #162033;
  --md-admonition-fg-color: #e8eef7;
}

body {
  font-family: var(--gff-sans);
  -webkit-font-smoothing: antialiased;
}

[data-md-color-scheme="default"] .md-main {
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(255, 122, 61, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 20%, rgba(43, 184, 168, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 50%, #f8fafc 100%);
}

[data-md-color-scheme="slate"] .md-main {
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(255, 122, 61, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 20%, rgba(43, 184, 168, 0.1), transparent 50%),
    linear-gradient(180deg, #0f1724 0%, #121c2b 55%, #101826 100%);
}

.md-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: none;
  border-bottom: 1px solid var(--gff-line);
  color: var(--gff-ink);
}

[data-md-color-scheme="slate"] .md-header {
  background: rgba(15, 23, 36, 0.92);
  border-bottom-color: rgba(235, 240, 250, 0.1);
}

.md-header__title,
.md-header .md-header__button,
.md-header .md-source,
.md-tabs__link {
  color: var(--gff-ink);
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.7rem;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(45, 80, 140, 0.2));
}

.md-header__topic {
  font-family: var(--gff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-tabs {
  background: rgba(238, 244, 252, 0.95);
  color: var(--gff-ink);
  border-bottom: 1px solid var(--gff-line);
}

[data-md-color-scheme="slate"] .md-tabs {
  background: rgba(18, 28, 43, 0.95);
}

.md-tabs__link {
  font-family: var(--gff-sans);
  font-weight: 700;
  font-size: 0.82rem;
  opacity: 0.72;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  opacity: 1;
  color: var(--gff-ink);
}

/* Search — light mode needs real contrast against white header */
.md-search__form {
  background-color: #e8eef8 !important;
  border: 1px solid rgba(26, 39, 68, 0.14);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.md-search__input {
  color: var(--gff-ink);
  background: transparent;
}

.md-search__input + .md-search__icon,
.md-search__input::placeholder {
  color: #5b6b88;
}

.md-search__input:hover,
.md-search__input:focus {
  background: transparent;
}

[data-md-color-scheme="slate"] .md-search__form {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(235, 240, 250, 0.16);
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-search__input + .md-search__icon,
[data-md-color-scheme="slate"] .md-search__input::placeholder {
  color: #9aabbf;
}

.md-nav__title,
.md-nav__link {
  font-family: var(--gff-sans);
  font-weight: 600;
}

.md-nav__item--nested > .md-nav__link {
  font-weight: 700;
}

.md-nav__link--active {
  color: #2f6fad !important;
  font-weight: 800;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
  color: #7eb6de !important;
}

.md-sidebar {
  background: transparent;
}

.md-typeset {
  font-family: var(--gff-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--gff-ink);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: var(--gff-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--gff-ink);
}

.md-typeset h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  margin-bottom: 0.75em;
}

.md-typeset h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  border-bottom: none;
  padding-top: 0.4em;
}

.md-typeset h3 {
  font-size: 1.12rem;
}

.md-typeset p,
.md-typeset li {
  color: var(--gff-ink);
}

.md-typeset a:hover {
  color: var(--gff-teal);
}

.md-typeset code {
  font-family: var(--gff-mono);
  font-size: 0.86em;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

.md-typeset pre > code {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.7;
}

.md-typeset .highlight,
.md-typeset pre {
  border-radius: 14px;
  border: 1px solid rgba(71, 140, 191, 0.14);
  box-shadow: 0 10px 24px rgba(45, 80, 140, 0.06);
}

[data-md-color-scheme="default"] .md-typeset .highlight,
[data-md-color-scheme="default"] .md-typeset pre:not(.gff-sheet) {
  background: #ffffff !important;
}

[data-md-color-scheme="default"] .md-typeset .highlight code,
[data-md-color-scheme="default"] .md-typeset pre:not(.gff-sheet) > code {
  background: transparent;
  color: #2a3a55;
}

.md-typeset table:not([class]) {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(71, 140, 191, 0.16);
  box-shadow: 0 10px 24px rgba(45, 80, 140, 0.06);
  font-size: 0.92rem;
}

.md-typeset table:not([class]) th {
  background: linear-gradient(180deg, #f3f8ff, #eaf2fc);
  color: var(--gff-ink);
  font-family: var(--gff-display);
  font-weight: 700;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
  border-color: rgba(235, 240, 250, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: linear-gradient(180deg, #1a2740, #162033);
}

[data-md-color-scheme="slate"] .md-typeset .highlight,
[data-md-color-scheme="slate"] .md-typeset pre:not(.gff-sheet) {
  border-color: rgba(235, 240, 250, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  background: #121c2b !important;
}

.md-typeset table:not([class]) td {
  font-weight: 600;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 14px;
  border-width: 0 0 0 0.2rem;
  box-shadow: 0 10px 24px rgba(45, 80, 140, 0.06);
  font-size: 0.92rem;
}

.md-typeset .admonition-title,
.md-typeset summary {
  font-family: var(--gff-display);
  font-weight: 700;
  border-radius: 14px 14px 0 0;
}

.md-typeset .md-button {
  border-radius: 12px;
  font-family: var(--gff-sans);
  font-weight: 800;
}

.md-typeset .md-button--primary {
  background: linear-gradient(135deg, #ff8a4a, #ff6b2c);
  border-color: transparent;
  color: #fff;
}

.md-footer {
  border-top: 1px solid var(--gff-line);
}

.md-footer-meta {
  background: transparent;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, rgba(43, 184, 168, 0.18), rgba(71, 140, 191, 0.16));
  color: #1a5a70;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  border: 1px solid rgba(43, 184, 168, 0.35);
}

[data-md-color-scheme="slate"] .pro-badge {
  color: #b8f3ec;
  background: linear-gradient(135deg, rgba(43, 184, 168, 0.22), rgba(71, 140, 191, 0.18));
}

h1 .pro-badge,
h2 .pro-badge {
  font-size: 0.6rem;
  position: relative;
  top: -0.2em;
  margin-left: 0.25rem;
}

/* =========================================================
   Homepage — bright, cool, game-feel
   ========================================================= */

.md-main:has(.gff-landing),
.md-content:has(.gff-landing),
.md-content__inner:has(.gff-landing) {
  background: transparent;
}

[data-md-color-scheme="default"] .md-main:has(.gff-landing) {
  background:
    radial-gradient(ellipse 70% 55% at 85% 8%, rgba(255, 122, 61, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 30%, rgba(43, 184, 168, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(71, 140, 191, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 45%, #f8fafc 100%);
}

[data-md-color-scheme="slate"] .md-main:has(.gff-landing) {
  background:
    radial-gradient(ellipse 70% 55% at 85% 8%, rgba(255, 122, 61, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 30%, rgba(43, 184, 168, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(71, 140, 191, 0.12), transparent 55%),
    linear-gradient(180deg, #0f1724 0%, #121c2b 45%, #101826 100%);
}

.md-content:has(.gff-landing) {
  max-width: none;
}

.md-typeset:has(.gff-landing) {
  font-size: 1rem;
}

.md-typeset .gff-landing > h1:first-child,
.md-typeset:has(.gff-landing) > h1:first-of-type {
  display: none;
}

.gff-landing {
  position: relative;
  color: var(--gff-ink);
  font-family: var(--gff-sans);
  line-height: 1.55;
  margin: -1.2rem -1.2rem -2rem;
  padding-bottom: 0.5rem;
  overflow: clip;
  -webkit-font-smoothing: antialiased;
}

.gff-landing a {
  color: var(--gff-godot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.gff-landing a:hover {
  color: #2f6fad;
}

.gff-landing code {
  font-family: var(--gff-mono);
  font-size: 0.9em;
  color: #1f4f7a;
  background: rgba(71, 140, 191, 0.1);
  padding: 0.08em 0.35em;
  border-radius: 6px;
  box-shadow: none;
}

.gff-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gff-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: gff-drift 14s ease-in-out infinite;
}

.gff-orb--a {
  width: min(42vw, 380px);
  aspect-ratio: 1;
  top: 4%;
  right: 6%;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.55), transparent 70%);
}

.gff-orb--b {
  width: min(36vw, 320px);
  aspect-ratio: 1;
  top: 28%;
  left: -4%;
  background: radial-gradient(circle, rgba(43, 184, 168, 0.5), transparent 70%);
  animation-delay: -4s;
}

.gff-orb--c {
  width: min(40vw, 360px);
  aspect-ratio: 1;
  bottom: 12%;
  right: 18%;
  background: radial-gradient(circle, rgba(123, 111, 212, 0.35), transparent 70%);
  animation-delay: -8s;
}

.gff-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(71, 140, 191, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 140, 191, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.gff-hero,
.gff-rail-wrap,
.gff-features,
.gff-code,
.gff-compare,
.gff-closing,
.gff-foot {
  position: relative;
  z-index: 1;
  max-width: var(--gff-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gff-pad);
  padding-right: var(--gff-pad);
}

/* ---- Hero ---- */
.gff-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(2.25rem, 6vw, 4.5rem);
  padding-bottom: 2.5rem;
}

.gff-chip {
  display: inline-flex;
  margin: 0 0 0.9rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(71, 140, 191, 0.22);
  color: #2f6fad;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(71, 140, 191, 0.08);
}

.gff-hero h1 {
  margin: 0;
  border: none;
  padding: 0;
}

.gff-brand {
  display: block;
  font-family: var(--gff-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  background: linear-gradient(115deg, #1a4a7a 0%, #2bb8a8 45%, #ff7a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gff-lede {
  margin: 1rem 0 0;
  max-width: 33rem;
  color: var(--gff-mute);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  line-height: 1.55;
}

.gff-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.gff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--gff-sans);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gff-btn:hover {
  transform: translateY(-2px);
}

.gff-btn:focus-visible {
  outline: 2px solid var(--gff-teal);
  outline-offset: 3px;
}

.gff-btn--primary {
  background: linear-gradient(135deg, #ff8a4a, #ff6b2c);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255, 122, 61, 0.35);
}

.gff-btn--primary:hover {
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(255, 122, 61, 0.42);
}

.gff-btn--secondary {
  background: #fff;
  border-color: rgba(71, 140, 191, 0.28);
  color: #1f4f7a !important;
  box-shadow: 0 8px 20px rgba(71, 140, 191, 0.1);
}

.gff-btn--secondary:hover {
  color: #143a5c !important;
  border-color: #478cbf;
}

.gff-btn--ghost {
  background: transparent;
  border-color: rgba(26, 39, 68, 0.16);
  color: var(--gff-ink) !important;
}

.gff-btn--ghost:hover {
  border-color: var(--gff-teal);
  color: #1a5a70 !important;
}

.gff-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--gff-mute);
  font-size: 0.9rem;
  font-weight: 500;
}

.gff-stats strong {
  color: var(--gff-ink);
  font-weight: 800;
  margin-right: 0.25rem;
}

.gff-hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  isolation: isolate;
}

.gff-pulse {
  position: absolute;
  width: min(72%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(43, 184, 168, 0.35);
  animation: gff-pulse 2.8s ease-out infinite;
}

.gff-pulse--delay {
  animation-delay: 1.1s;
  border-color: rgba(255, 122, 61, 0.28);
}

.gff-hero__icon {
  position: relative;
  z-index: 2;
  width: min(100%, 400px);
  height: auto;
  background: transparent;
  filter: drop-shadow(0 24px 40px rgba(45, 80, 140, 0.22));
  transition: transform 180ms ease-out;
  animation: gff-rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gff-floaters {
  position: absolute;
  inset: 8% 4%;
  z-index: 3;
  pointer-events: none;
}

.gff-tag {
  position: absolute;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--gff-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 39, 68, 0.18);
  animation: gff-bob 3.6s ease-in-out infinite;
}

.gff-tag--hit {
  top: 8%;
  left: 0;
  background: linear-gradient(135deg, #ff7a3d, #ff9a4a);
}

.gff-tag--shake {
  top: 42%;
  right: -2%;
  background: linear-gradient(135deg, #2bb8a8, #3ecfc0);
  animation-delay: -1.2s;
}

.gff-tag--freeze {
  bottom: 10%;
  left: 6%;
  background: linear-gradient(135deg, #478cbf, #6aa8d4);
  animation-delay: -2.1s;
}

/* ---- Flow rail ---- */
.gff-rail-wrap {
  padding-top: 0.25rem;
  padding-bottom: 2.5rem;
}

.gff-rail {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(71, 140, 191, 0.16);
  box-shadow: var(--gff-shadow);
}

.gff-rail > li:not(.gff-rail__arrow) {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 5.5rem;
  padding: 0.35rem 0.55rem;
}

.gff-rail__n {
  font-family: var(--gff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gff-teal);
  letter-spacing: 0.06em;
}

.gff-rail__t {
  font-family: var(--gff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gff-ink);
  letter-spacing: -0.02em;
}

.gff-rail__d {
  font-size: 0.78rem;
  color: var(--gff-mute);
  font-weight: 500;
}

.gff-rail__arrow {
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gff-orange), var(--gff-teal), var(--gff-godot));
  opacity: 0.7;
  margin-bottom: 0.9rem;
}

/* ---- Features ---- */
.gff-features,
.gff-code,
.gff-compare,
.gff-closing {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.gff-section-head {
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.gff-section-head h2 {
  margin: 0;
  font-family: var(--gff-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gff-ink);
  border: none;
  padding: 0;
}

.gff-section-head p {
  margin: 0.55rem 0 0;
  color: var(--gff-mute);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.gff-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gff-card {
  margin: 0;
  padding: 1.25rem 1.3rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(71, 140, 191, 0.14);
  box-shadow: 0 12px 28px rgba(45, 80, 140, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(45, 80, 140, 0.12);
}

.gff-card__mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  font-size: 1rem;
  color: #fff;
}

.gff-card__mark--orange { background: linear-gradient(135deg, #ff8a4a, #ff6b2c); }
.gff-card__mark--teal { background: linear-gradient(135deg, #3ecfc0, #2bb8a8); }
.gff-card__mark--blue { background: linear-gradient(135deg, #6aa8d4, #478cbf); }
.gff-card__mark--lilac { background: linear-gradient(135deg, #9b8fe0, #7b6fd4); }

.gff-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--gff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gff-ink);
  letter-spacing: -0.02em;
}

.gff-card p {
  margin: 0;
  color: var(--gff-mute);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---- Code sheet ---- */
.gff-sheet {
  margin: 0;
  padding: 1.25rem 1.35rem;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(71, 140, 191, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 255, 0.95)),
    #fff;
  color: #2a3a55;
  font-family: var(--gff-mono);
  font-size: 0.84rem;
  line-height: 1.75;
  box-shadow: var(--gff-shadow);
}

.gff-sheet .c { color: #7a889e; }
.gff-sheet .n { color: #d97706; }
.gff-sheet .s { color: #0d9488; }

/* ---- Compare table ---- */
.gff-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(71, 140, 191, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--gff-shadow);
}

.gff-table {
  width: 100%;
  margin: 0 !important;
  border: none !important;
  border-collapse: collapse;
  box-shadow: none !important;
  font-family: var(--gff-sans);
  font-size: 0.95rem;
}

.gff-table th,
.gff-table td {
  padding: 0.85rem 1.1rem !important;
  border: none !important;
  border-top: 1px solid var(--gff-line) !important;
  background: transparent !important;
  vertical-align: middle;
}

.gff-table thead th {
  border-top: none !important;
  background: linear-gradient(180deg, #f3f8ff, #eaf2fc) !important;
  color: var(--gff-ink) !important;
  font-family: var(--gff-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gff-table tbody th {
  color: var(--gff-ink) !important;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
}

.gff-table td {
  color: var(--gff-mute) !important;
  text-align: center;
  font-weight: 700;
}

.gff-table thead th:not(:first-child),
.gff-table td {
  text-align: center;
}

.gff-table tbody tr:last-child th,
.gff-table tbody tr:last-child td {
  background: rgba(255, 122, 61, 0.06) !important;
  color: var(--gff-ink) !important;
}

.gff-yes {
  display: inline-flex;
  min-width: 2.6rem;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(43, 184, 168, 0.16);
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 800;
}

.gff-no {
  color: #94a3b8;
  font-weight: 700;
}

/* ---- Closing ---- */
.gff-closing__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.5rem 1.6rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 122, 61, 0.12), rgba(43, 184, 168, 0.1) 50%, rgba(71, 140, 191, 0.12));
  border: 1px solid rgba(71, 140, 191, 0.18);
  box-shadow: var(--gff-shadow);
}

.gff-closing__card img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 10px 18px rgba(45, 80, 140, 0.2));
}

.gff-closing__card h2 {
  margin: 0;
  font-family: var(--gff-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--gff-ink);
  border: none;
  padding: 0;
  letter-spacing: -0.025em;
}

.gff-closing__card p {
  margin: 0.45rem 0 0;
  color: var(--gff-mute);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---- Footer ---- */
.gff-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2.75rem;
  color: var(--gff-mute);
  font-size: 0.88rem;
  border-top: 1px solid var(--gff-line);
  margin-top: 1rem;
}

.gff-foot a {
  color: var(--gff-mute);
}

.gff-foot a:hover {
  color: var(--gff-ink);
}

/* Landing — dark scheme surfaces */
[data-md-color-scheme="slate"] .gff-landing a {
  color: #7eb6de;
}

[data-md-color-scheme="slate"] .gff-landing a:hover {
  color: #a8d4f0;
}

[data-md-color-scheme="slate"] .gff-landing code {
  color: #b8d9f2;
  background: rgba(106, 168, 212, 0.16);
}

[data-md-color-scheme="slate"] .gff-chip {
  background: rgba(22, 32, 51, 0.9);
  border-color: rgba(106, 168, 212, 0.28);
  color: #7eb6de;
  box-shadow: none;
}

[data-md-color-scheme="slate"] .gff-brand {
  background: linear-gradient(115deg, #7eb6de 0%, #3ecfc0 45%, #ff9a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-md-color-scheme="slate"] .gff-btn--secondary {
  background: #162033;
  border-color: rgba(106, 168, 212, 0.35);
  color: #d7e6f5 !important;
  box-shadow: none;
}

[data-md-color-scheme="slate"] .gff-btn--ghost {
  border-color: rgba(235, 240, 250, 0.2);
  color: #e8eef7 !important;
}

[data-md-color-scheme="slate"] .gff-rail,
[data-md-color-scheme="slate"] .gff-card,
[data-md-color-scheme="slate"] .gff-table-wrap {
  background: rgba(22, 32, 51, 0.88);
  border-color: rgba(235, 240, 250, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

[data-md-color-scheme="slate"] .gff-sheet {
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.95), rgba(18, 28, 43, 0.98));
  border-color: rgba(235, 240, 250, 0.12);
  color: #d7e6f5;
}

[data-md-color-scheme="slate"] .gff-sheet .c { color: #8b9bb5; }
[data-md-color-scheme="slate"] .gff-sheet .n { color: #f0b429; }
[data-md-color-scheme="slate"] .gff-sheet .s { color: #3ecfc0; }

[data-md-color-scheme="slate"] .gff-table thead th {
  background: linear-gradient(180deg, #1a2740, #162033) !important;
}

[data-md-color-scheme="slate"] .gff-table tbody tr:last-child th,
[data-md-color-scheme="slate"] .gff-table tbody tr:last-child td {
  background: rgba(255, 122, 61, 0.12) !important;
}

[data-md-color-scheme="slate"] .gff-yes {
  background: rgba(62, 207, 192, 0.18);
  color: #9af0e4;
}

[data-md-color-scheme="slate"] .gff-closing__card {
  background:
    linear-gradient(135deg, rgba(255, 122, 61, 0.14), rgba(43, 184, 168, 0.12) 50%, rgba(71, 140, 191, 0.14));
  border-color: rgba(235, 240, 250, 0.14);
}

@keyframes gff-rise-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gff-pulse {
  0% { transform: scale(0.82); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes gff-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gff-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.06); }
}

@media (max-width: 860px) {
  .gff-hero {
    grid-template-columns: 1fr;
  }

  .gff-hero__stage {
    order: -1;
  }

  .gff-hero__icon {
    width: min(70vw, 280px);
  }

  .gff-cards {
    grid-template-columns: 1fr;
  }

  .gff-rail__arrow {
    display: none;
  }

  .gff-closing__card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gff-hero__icon,
  .gff-pulse,
  .gff-tag,
  .gff-orb,
  .gff-btn,
  .gff-card {
    animation: none !important;
    transition: none !important;
  }
}
