/* ==========================================================================
   FlutterGo.AI — marketing site design system
   Shared by: landing (/), features (/product), pricing, about, and the
   redesigned legal pages (terms / privacy / refund) + download.

   Goals: modern, design-heavy, 3D-friendly, with first-class light + dark
   theming. Theme is chosen by [data-theme] on <html> (set by the inline
   bootstrap in each page <head>) and falls back to prefers-color-scheme.
   ========================================================================== */

/* ----- Tokens : light (default) ----------------------------------------- */
:root {
  --brand-blue: #0a6cff;
  --brand-blue-strong: #0553c7;
  --brand-sky: #44d1fd;
  --brand-violet: #7c5cff;
  --brand-gradient: linear-gradient(105deg, #0a6cff 0%, #44d1fd 100%);
  --brand-gradient-tri: linear-gradient(115deg, #7c5cff 0%, #0a6cff 48%, #44d1fd 100%);

  --bg: #f6f7fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.86);
  --border: #e4e8f0;
  --border-soft: #eef1f6;
  --border-strong: #d6dbe6;

  --text: #15171c;
  --text-strong: #0a0c10;
  --text-muted: #5b6170;
  --text-soft: #878d9c;

  --shadow-sm: 0 1px 2px rgba(13, 18, 30, 0.06), 0 2px 8px rgba(13, 18, 30, 0.04);
  --shadow-md: 0 8px 30px rgba(13, 18, 30, 0.08), 0 2px 8px rgba(13, 18, 30, 0.05);
  --shadow-lg: 0 30px 70px -30px rgba(13, 24, 50, 0.32), 0 8px 24px -12px rgba(13, 24, 50, 0.18);
  --glow-blue: 0 24px 60px -20px rgba(10, 108, 255, 0.5);

  --ring: rgba(10, 108, 255, 0.16);
  --grid-line: rgba(13, 24, 50, 0.05);
  --dot: rgba(13, 24, 50, 0.10);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 66px;
  --max: 1200px;
  --max-prose: 760px;

  --hero-glow-1: rgba(10, 108, 255, 0.26);
  --hero-glow-2: rgba(68, 209, 253, 0.22);
  --hero-glow-3: rgba(124, 92, 255, 0.18);
  --hero-aurora-opacity: 0.92;
  --hero-orb-1: rgba(10, 108, 255, 0.24);
  --hero-orb-2: rgba(68, 209, 253, 0.20);
  --hero-orb-3: rgba(124, 92, 255, 0.18);
  --hero-orb-4: rgba(10, 108, 255, 0.14);
  --dot-spark: rgba(10, 108, 255, 0.28);
  --spark-blue: rgba(10, 108, 255, 0.55);
  --spark-sky: rgba(68, 209, 253, 0.5);
  --spark-violet: rgba(124, 92, 255, 0.48);

  color-scheme: light;
}

/* ----- Tokens : dark ----------------------------------------------------- */
:root[data-theme="dark"] {
  --bg: #06070d;
  --bg-2: #0a0c16;
  --surface: #0e1018;
  --surface-2: #121420;
  --surface-glass: rgba(16, 18, 28, 0.62);
  --surface-glass-strong: rgba(14, 16, 24, 0.82);
  --border: #20232f;
  --border-soft: #181a24;
  --border-strong: #2c3040;

  --text: #e7e9f0;
  --text-strong: #ffffff;
  --text-muted: #a3a8ba;
  --text-soft: #6f7588;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 30px 80px -24px rgba(10, 108, 255, 0.7);

  --ring: rgba(68, 209, 253, 0.22);
  --grid-line: rgba(120, 160, 255, 0.06);
  --dot: rgba(150, 180, 255, 0.10);

  --hero-glow-1: rgba(10, 108, 255, 0.38);
  --hero-glow-2: rgba(68, 209, 253, 0.30);
  --hero-glow-3: rgba(124, 92, 255, 0.34);
  --hero-aurora-opacity: 1;
  --hero-orb-1: rgba(10, 108, 255, 0.42);
  --hero-orb-2: rgba(68, 209, 253, 0.32);
  --hero-orb-3: rgba(124, 92, 255, 0.36);
  --hero-orb-4: rgba(10, 108, 255, 0.22);
  --dot-spark: rgba(150, 180, 255, 0.22);
  --spark-blue: rgba(68, 140, 255, 0.75);
  --spark-sky: rgba(68, 209, 253, 0.7);
  --spark-violet: rgba(160, 130, 255, 0.68);

  color-scheme: dark;
}

/* Honour the OS preference until a theme is explicitly chosen.
   The inline bootstrap sets data-theme ASAP; this is the no-JS fallback. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06070d;
    --bg-2: #0a0c16;
    --surface: #0e1018;
    --surface-2: #121420;
    --surface-glass: rgba(16, 18, 28, 0.62);
    --surface-glass-strong: rgba(14, 16, 24, 0.82);
    --border: #20232f;
    --border-soft: #181a24;
    --border-strong: #2c3040;
    --text: #e7e9f0;
    --text-strong: #ffffff;
    --text-muted: #a3a8ba;
    --text-soft: #6f7588;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --glow-blue: 0 30px 80px -24px rgba(10, 108, 255, 0.7);
    --ring: rgba(68, 209, 253, 0.22);
    --grid-line: rgba(120, 160, 255, 0.06);
    --dot: rgba(150, 180, 255, 0.10);
    --hero-glow-1: rgba(10, 108, 255, 0.38);
    --hero-glow-2: rgba(68, 209, 253, 0.30);
    --hero-glow-3: rgba(124, 92, 255, 0.34);
    --hero-aurora-opacity: 1;
    --hero-orb-1: rgba(10, 108, 255, 0.42);
    --hero-orb-2: rgba(68, 209, 253, 0.32);
    --hero-orb-3: rgba(124, 92, 255, 0.36);
    --hero-orb-4: rgba(10, 108, 255, 0.22);
    --dot-spark: rgba(150, 180, 255, 0.22);
    --spark-blue: rgba(68, 140, 255, 0.75);
    --spark-sky: rgba(68, 209, 253, 0.7);
    --spark-violet: rgba(160, 130, 255, 0.68);
    color-scheme: dark;
  }
}

/* ----- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Backstop against phantom horizontal overflow shifting/clipping centered
     layout on narrow viewports. `clip` avoids creating a scroll container. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.fgs {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection {
  background: color-mix(in srgb, var(--brand-blue) 28%, transparent);
  color: var(--text-strong);
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----- Page background : layered gradients + grid ----------------------- */
.fgs-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 95% 55% at 50% -8%, var(--hero-glow-2), transparent 58%),
    radial-gradient(60% 50% at 14% 8%, var(--hero-glow-1), transparent 60%),
    radial-gradient(55% 45% at 88% 4%, var(--hero-glow-2), transparent 62%),
    radial-gradient(60% 55% at 50% 108%, var(--hero-glow-3), transparent 64%),
    linear-gradient(168deg, var(--bg) 0%, color-mix(in srgb, var(--bg-2) 88%, var(--brand-sky) 12%) 48%, var(--bg) 100%);
  transition: background 0.5s var(--ease);
}
.fgs-bg::before {
  content: "";
  position: absolute;
  inset: -28%;
  background:
    radial-gradient(circle at 16% 22%, var(--hero-orb-1), transparent 38%),
    radial-gradient(circle at 84% 16%, var(--hero-orb-2), transparent 36%),
    radial-gradient(circle at 58% 82%, var(--hero-orb-3), transparent 42%),
    radial-gradient(circle at 24% 90%, var(--hero-orb-4), transparent 34%),
    radial-gradient(circle at 72% 48%, var(--hero-orb-2), transparent 30%);
  filter: blur(56px);
  opacity: var(--hero-aurora-opacity);
  animation: fgs-aurora-drift 34s var(--ease-in-out) infinite alternate;
  will-change: transform;
}
.fgs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--dot-spark) 1.1px, transparent 1.2px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 28%, #000 8%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 28%, #000 8%, transparent 74%);
  animation: fgs-grid-pulse 12s ease-in-out infinite alternate;
}
.fgs-bg__spark {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--sz, 6px);
  height: var(--sz, 6px);
  border-radius: 2px;
  background: var(--spark-color, var(--spark-blue));
  opacity: var(--spark-opacity, 0.45);
  transform: rotate(45deg);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--spark-color, var(--spark-blue)) 55%, transparent),
    0 0 2px color-mix(in srgb, var(--spark-color, var(--spark-blue)) 80%, transparent);
  animation: fgs-spark-float var(--dur, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.fgs-bg__ring {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--ring, 120px);
  height: var(--ring, 120px);
  margin-left: calc(var(--ring, 120px) / -2);
  margin-top: calc(var(--ring, 120px) / -2);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ring-color, var(--brand-blue)) 22%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--ring-color, var(--brand-blue)) 8%, transparent), transparent 68%);
  opacity: var(--ring-opacity, 0.55);
  animation: fgs-ring-breathe var(--dur, 24s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes fgs-aurora-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(2.5%, -2%, 0) scale(1.04); }
  66% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
  100% { transform: translate3d(1.5%, -1.5%, 0) scale(1.05); }
}
@keyframes fgs-grid-pulse {
  0% { opacity: 0.72; }
  100% { opacity: 1; }
}
@keyframes fgs-spark-float {
  0%, 100% { transform: rotate(45deg) translate3d(0, 0, 0); opacity: var(--spark-opacity, 0.45); }
  50% { transform: rotate(45deg) translate3d(0, -18px, 0); opacity: calc(var(--spark-opacity, 0.45) * 1.35); }
}
@keyframes fgs-ring-breathe {
  0%, 100% { transform: scale(0.92); opacity: calc(var(--ring-opacity, 0.55) * 0.85); }
  50% { transform: scale(1.08); opacity: var(--ring-opacity, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .fgs-bg::before,
  .fgs-bg::after,
  .fgs-bg__spark,
  .fgs-bg__ring {
    animation: none !important;
  }
}

/* ----- Layout primitives ------------------------------------------------- */
.fgs-container {
  width: min(var(--max), 100% - 44px);
  margin-inline: auto;
}
.fgs-container--wide {
  width: min(1580px, calc(100% - clamp(20px, 2.5vw, 40px)));
  margin-inline: auto;
}
.fgs-section {
  position: relative;
  padding: clamp(28px, 3.6vw, 54px) 0;
}
.fgs-section--tight { padding: clamp(14px, 2.2vw, 28px) 0; }

.fgs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  /* Brand gradient so section labels read as prominent brand chips instead of
     washed-out glass pills. */
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--brand-sky);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.fgs-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  /* Solid white reads against the gradient (the gradient dot disappeared). */
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.fgs-h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-strong);
}
.fgs-h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text-strong);
}
.fgs-h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text-strong);
}
.fgs-lead {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
}
.fgs-section-head {
  max-width: 720px;
  margin: 0 auto clamp(30px, 4vw, 48px);
  text-align: center;
}
.fgs-section-head .fgs-lead { margin-top: 18px; }

.fgs-gradient-text {
  background: var(--brand-gradient-tri);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Buttons ----------------------------------------------------------- */
.fgs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--glow-blue);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.2s var(--ease);
}
.fgs-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow: 0 34px 80px -22px rgba(10, 108, 255, 0.75);
}
.fgs-btn:active { transform: translateY(0); }
.fgs-btn .arrow { transition: transform 0.25s var(--ease); }
.fgs-btn:hover .arrow { transform: translateX(4px); }

.fgs-btn--ghost {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--border-strong);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}
.fgs-btn--ghost:hover {
  border-color: var(--brand-blue);
  filter: none;
  box-shadow: 0 8px 24px -10px var(--ring);
}
.fgs-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.fgs-btn--lg { min-height: 56px; padding: 0 32px; font-size: 16.5px; }
.fgs-btn--block { width: 100%; }
button.fgs-btn {
  font: inherit;
  font-family: inherit;
  cursor: pointer;
}

/* ----- Navigation -------------------------------------------------------- */
.fgs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.fgs-nav.is-stuck {
  background: var(--surface-glass-strong);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.fgs-nav__inner {
  width: min(var(--max), 100% - 44px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fgs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.fgs-brand__mark {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--brand-gradient);
  -webkit-mask: url(/brand-icon.svg) center / 70% no-repeat;
  mask: url(/brand-icon.svg) center / 70% no-repeat;
  /* mask shows brand chevrons knocked out of the gradient tile */
}
.fgs-brand__mark--tile {
  -webkit-mask: none; mask: none;
  display: grid; place-items: center;
  box-shadow: var(--glow-blue);
}
.fgs-brand__mark--tile svg { width: 64%; height: 64%; }
.fgs-brand b { font-weight: 750; }
.fgs-brand .ai { color: var(--brand-blue); }

.fgs-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.fgs-nav__links a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 550;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.fgs-nav__links a:hover { color: var(--text-strong); background: var(--bg-2); }
.fgs-nav__links a[aria-current="page"] { color: var(--text-strong); }

.fgs-nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fgs-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 196px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.fgs-user-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-2);
}
.fgs-user-chip__avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a6cff, #38bdf8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.fgs-user-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fgs-user-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fgs-mobile-user {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, #0a6cff 10%, var(--bg-panel));
  border: 1px solid color-mix(in srgb, #0a6cff 22%, var(--border));
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}

.fgs-theme-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-glass);
  color: var(--text-muted);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.3s var(--ease);
}
.fgs-theme-toggle:hover { color: var(--text-strong); border-color: var(--border-strong); }
.fgs-theme-toggle svg { width: 19px; height: 19px; }
.fgs-theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .fgs-theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .fgs-theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fgs-theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .fgs-theme-toggle .icon-moon { display: none; }
}

.fgs-burger {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-glass);
  color: var(--text-strong);
}
.fgs-burger svg { width: 20px; height: 20px; }

/* mobile drawer */
.fgs-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 40px;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.fgs-mobile.is-open { display: flex; opacity: 1; transform: none; }
.fgs-mobile a {
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  border-bottom: 1px solid var(--border-soft);
}
.fgs-mobile a:hover { background: var(--bg-2); }
.fgs-mobile .fgs-btn { margin-top: 14px; }

/* ----- Hero -------------------------------------------------------------- */
.fgs-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(40px, 5.5vw, 76px);
  overflow: hidden;
}
.fgs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, color-mix(in srgb, var(--brand-blue) 14%, transparent), transparent 68%),
    radial-gradient(ellipse 45% 35% at 18% 62%, color-mix(in srgb, var(--brand-violet) 10%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 35% at 82% 58%, color-mix(in srgb, var(--brand-sky) 12%, transparent), transparent 70%);
  opacity: 0.95;
}
.fgs-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.fgs-hero__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fgs-hero .fgs-h1 { max-width: 16ch; }
.fgs-hero .fgs-lead { max-width: 56ch; margin-top: 24px; }
.fgs-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}
.fgs-hero__note {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 13.5px;
}
.fgs-hero__note strong { color: var(--text-muted); font-weight: 600; }

/* floating 3D device mockup (CSS, layered above the canvas) */
.fgs-hero__stage {
  position: relative;
  width: min(960px, 100%);
  margin: clamp(48px, 7vw, 84px) auto 0;
  perspective: 1600px;
}
.fgs-device {
  position: relative;
  width: min(290px, 74vw);
  margin-inline: auto;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2030, #06070d);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: rotateX(8deg) rotateY(-14deg) rotateZ(2deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.fgs-device__screen {
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(10,108,255,0.25), transparent 60%),
    linear-gradient(180deg, #0b1020, #0a0d18);
  display: flex;
  flex-direction: column;
}
.fgs-device__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.fgs-device__notch {
  position: relative;
  z-index: 2;
  width: 38%; height: 22px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #04060c;
}
.fgs-device .scr {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.scr-appbar { display: flex; align-items: center; justify-content: space-between; }
.scr-appbar .t { width: 90px; height: 11px; border-radius: 6px; background: rgba(255,255,255,0.85); }
.scr-appbar .c { width: 26px; height: 26px; border-radius: 9px; background: var(--brand-gradient); }
.scr-banner {
  height: 92px; border-radius: 16px;
  background: var(--brand-gradient-tri);
  box-shadow: 0 12px 24px -12px rgba(10,108,255,0.8);
}
.scr-row { display: flex; gap: 10px; }
.scr-card { flex: 1; height: 64px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); }
.scr-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.14); }
.scr-line.w70 { width: 70%; } .scr-line.w50 { width: 50%; } .scr-line.w85 { width: 85%; }
.scr-nav {
  margin-top: auto; height: 54px; border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-around;
}
.scr-nav i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,0.18); display:block; }
.scr-nav i:first-child { background: var(--brand-gradient); }

/* floating chips that orbit the device */
.fgs-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 15px;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  will-change: transform;
}
.fgs-float .ic {
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-blue) 14%, transparent);
  color: var(--brand-blue);
}
.fgs-float .ic svg { width: 16px; height: 16px; }
.fgs-float--a { top: 12%; left: 2%; }
.fgs-float--b { top: 30%; right: 1%; }
.fgs-float--c { bottom: 20%; left: 6%; }
.fgs-float--d { bottom: 8%; right: 8%; }
@media (max-width: 760px) {
  .fgs-float--a, .fgs-float--c { left: -4px; }
  .fgs-float--b, .fgs-float--d { right: -4px; }
  .fgs-float { font-size: 12px; padding: 9px 12px; }
}

/* ----- Logo / trust strip ----------------------------------------------- */
.fgs-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vw, 56px);
  opacity: 0.85;
}
.fgs-trust span {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-muted);
  font-size: 14px; font-weight: 600;
}
.fgs-trust svg { width: 20px; height: 20px; opacity: 0.9; }

/* ----- Cards / bento ----------------------------------------------------- */
.fgs-grid { display: grid; gap: 18px; }
.fgs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fgs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fgs-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.fgs-bento > .span-3 { grid-column: span 3; }
.fgs-bento > .span-2 { grid-column: span 2; }
.fgs-bento > .span-4 { grid-column: span 4; }
.fgs-bento > .span-6 { grid-column: span 6; }

.fgs-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.fgs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.fgs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, var(--ring), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.fgs-card:hover::before { opacity: 1; }
.fgs-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
  color: var(--brand-blue);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-blue) 22%, transparent);
}
.fgs-card__icon svg { width: 24px; height: 24px; }
.fgs-card--violet .fgs-card__icon { background: color-mix(in srgb, var(--brand-violet) 14%, transparent); color: var(--brand-violet); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-violet) 24%, transparent); }
.fgs-card--sky .fgs-card__icon { background: color-mix(in srgb, var(--brand-sky) 16%, transparent); color: color-mix(in srgb, var(--brand-sky) 78%, var(--text-strong)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-sky) 30%, transparent); }
.fgs-card h3 { margin: 0 0 9px; font-size: 19px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.fgs-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.62; }
.fgs-card code {
  padding: 1px 6px; border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-strong);
}

/* feature card with mini visual */
.fgs-card--feature { padding: 0; }
.fgs-card--feature .viz {
  height: 190px;
  background:
    radial-gradient(80% 80% at 50% 0%, var(--ring), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.fgs-card--feature .body { padding: 26px 28px 30px; }

/* ----- Steps / how it works --------------------------------------------- */
.fgs-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 16px;
}
.fgs-step {
  counter-increment: step;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Oversized ghost numeral watermark behind each card */
.fgs-step::before {
  content: counter(step);
  position: absolute;
  z-index: -1;
  top: -0.3em;
  right: 0.06em;
  font-size: 118px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand-blue);
  opacity: 0.08;
  pointer-events: none;
}
.fgs-step:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-blue) 45%, var(--border));
  box-shadow: var(--shadow-md);
}
.fgs-step__num {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--glow-blue);
}
.fgs-step h3 { margin: 0 0 7px; font-size: 17px; }
.fgs-step p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ----- Stats ------------------------------------------------------------- */
.fgs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  /* Brand gradient (same as the "Compare all plans" CTA) so the stats read as a
     prominent brand band instead of a plain white card. */
  background: var(--brand-gradient);
  box-shadow: var(--shadow-md);
}
.fgs-stat { text-align: center; }
.fgs-stat .n {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
  /* Solid white — the previous gradient-clipped text would vanish on a blue bg. */
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
  color: #fff;
}
.fgs-stat .l {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 550;
}

/* ----- Marquee ----------------------------------------------------------- */
.fgs-marquee {
  display: flex;
  overflow: hidden;
  gap: 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fgs-marquee__track {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  animation: fgs-marquee 38s linear infinite;
  flex: none;
}
.fgs-marquee:hover .fgs-marquee__track { animation-play-state: paused; }
@keyframes fgs-marquee { to { transform: translateX(-100%); } }
.fgs-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.fgs-chip .ic { color: var(--brand-blue); display: inline-flex; }
.fgs-chip .ic svg { width: 17px; height: 17px; }

/* ----- Split / showcase -------------------------------------------------- */
.fgs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.fgs-split--reverse .fgs-split__media { order: -1; }
/* Let grid/flex children shrink below their content's min-content size so a
   code window's long unwrappable lines scroll internally instead of forcing
   the whole column (and the page) wider than the viewport. */
.fgs-split > *,
.fgs-bento > *,
.fgs-grid > * { min-width: 0; }
.fgs-split__media {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 320px;
}
.fgs-feature-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.fgs-feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 15.5px; }
.fgs-feature-list li > span:not(.tick) { flex: 1; min-width: 0; line-height: 1.55; }
.fgs-feature-list a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.fgs-feature-list a:hover { text-decoration: underline; }
.fgs-feature-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-blue) 14%, transparent);
  color: var(--brand-blue);
  margin-top: 1px;
}
.fgs-feature-list .tick svg { width: 14px; height: 14px; }
.fgs-feature-list b { color: var(--text-strong); font-weight: 650; }

/* code window mock */
.fgs-codewin {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  background: #0a0d18;
  color: #cdd6f4;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 100%;
}
.fgs-codewin__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #0d1120; border-bottom: 1px solid #1b2236; }
.fgs-codewin__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.fgs-codewin__bar i:nth-child(1){ background:#ff5f57; } .fgs-codewin__bar i:nth-child(2){ background:#febc2e; } .fgs-codewin__bar i:nth-child(3){ background:#28c840; }
.fgs-codewin__bar .fn { margin-left: 10px; color: #6b7394; font-size: 12px; }
.fgs-codewin pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.fgs-codewin .k { color: #82aaff; } .fgs-codewin .s { color: #c3e88d; } .fgs-codewin .c { color: #5b6494; } .fgs-codewin .t { color: #f78c6c; } .fgs-codewin .p { color: #c792ea; }

/* ----- Pricing ----------------------------------------------------------- */
.fgs-billing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  margin: 0 auto 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.fgs-billing button {
  border: 0; background: transparent;
  padding: 9px 20px; border-radius: var(--radius-pill);
  color: var(--text-muted); font-weight: 600; font-size: 14.5px;
  transition: color 0.2s var(--ease), background 0.25s var(--ease);
}
.fgs-billing button.is-active { background: var(--brand-gradient); color: #fff; box-shadow: var(--glow-blue); }
.fgs-billing .save { font-size: 12px; color: var(--brand-violet); font-weight: 700; }

.fgs-billing-notice {
  max-width: 640px;
  margin: -8px auto 24px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.fgs-billing-notice[hidden] { display: none; }
.fgs-billing-notice.is-error {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.2);
}
.fgs-billing-notice.is-info {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.fgs-btn.is-loading { opacity: 0.7; pointer-events: none; }

.fgs-plan__save {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-violet);
  text-align: center;
}
.fgs-plan__save[hidden] { display: none; }

.fgs-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
/* Full pricing page: five credit-based tiers */
.fgs-pricing-stage {
  position: relative;
  overflow: clip;
}
.fgs-pricing-stage__glow {
  position: absolute;
  inset: -48px 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 24% 72% at 0% 48%, var(--hero-glow-1), transparent 74%),
    radial-gradient(ellipse 24% 72% at 100% 48%, var(--hero-glow-3), transparent 74%);
  opacity: 0.6;
}
.fgs-pricing-stage > .fgs-container {
  position: relative;
  z-index: 1;
}

.fgs-plans--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.15vw, 18px);
  padding-top: 16px;
}
.fgs-plans--five .fgs-plan {
  padding: clamp(20px, 2vw, 26px) clamp(16px, 1.4vw, 22px) clamp(22px, 2vw, 28px);
}
.fgs-plans--five .fgs-plan__desc {
  font-size: 12.5px;
  min-height: 3.2em;
  line-height: 1.45;
}
.fgs-plans--five .fgs-plan__price {
  margin: 14px 0 4px;
}
.fgs-plans--five .fgs-plan__price .amt {
  font-size: clamp(32px, 2.8vw, 44px);
}
.fgs-plans--five .fgs-plan__price--custom .amt {
  font-size: clamp(26px, 2.2vw, 36px);
}
.fgs-plans--five .fgs-plan__note {
  font-size: 12px;
  margin-bottom: 16px;
  min-height: auto;
}
.fgs-plans--five .fgs-plan ul {
  gap: 9px;
  margin-bottom: 20px;
}
.fgs-plans--five .fgs-plan li {
  font-size: 13px;
  padding-left: 26px;
  line-height: 1.45;
}
.fgs-plans--five .fgs-plan li::before {
  width: 18px;
  height: 18px;
  top: 1px;
  background-size: 11px;
}
.fgs-plans--five .fgs-plan .fgs-btn {
  padding: 11px 14px;
  font-size: 13.5px;
}
.fgs-plans--five .fgs-plan--featured {
  border-color: color-mix(in srgb, var(--brand-blue) 58%, var(--border));
  box-shadow: var(--glow-blue), var(--shadow-lg);
  transform: scale(1.035);
  z-index: 2;
}
.fgs-plans--five .fgs-plan--featured:hover {
  transform: scale(1.035) translateY(-4px);
}
@media (max-width: 1400px) {
  .fgs-plans--five { grid-template-columns: repeat(3, 1fr); }
  .fgs-plans--five .fgs-plan--featured { transform: none; }
  .fgs-plans--five .fgs-plan--featured:hover { transform: translateY(-4px); }
}
@media (max-width: 900px) {
  .fgs-plans--five { grid-template-columns: repeat(2, 1fr); }
}

/* Landing: compact plan strip → full detail on /pricing/ */
.fgs-plan-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
  margin-bottom: 28px;
}
.fgs-plan-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(16px, 2vw, 20px) clamp(14px, 1.5vw, 18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.fgs-plan-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand-blue) 40%, var(--border));
}
.fgs-plan-chip--featured {
  border-color: color-mix(in srgb, var(--brand-blue) 55%, var(--border));
  background:
    radial-gradient(120% 80% at 50% 0%, var(--ring), transparent 65%),
    var(--surface);
  box-shadow: var(--glow-blue), var(--shadow-sm);
}
.fgs-plan-chip__name { font-size: 13px; font-weight: 700; color: var(--text-strong); letter-spacing: 0.02em; text-transform: uppercase; }
.fgs-plan-chip__price { font-size: 28px; font-weight: 850; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1.1; }
.fgs-plan-chip__meta { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.fgs-pricing-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.fgs-pricing-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}
.fgs-pricing-note a { color: var(--brand-blue); font-weight: 600; }
.fgs-pricing-footnote {
  max-width: 880px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}
.fgs-plan__credits {
  display: inline-flex;
  align-items: center;
  margin: 12px 0 0;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand-blue) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-blue) 22%, var(--border));
  color: var(--brand-blue-strong);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
}
:root[data-theme="dark"] .fgs-plan__credits {
  color: var(--brand-sky);
  background: color-mix(in srgb, var(--brand-blue) 18%, var(--surface));
}
.fgs-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fgs-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fgs-plan--featured {
  border-color: color-mix(in srgb, var(--brand-blue) 50%, var(--border));
  box-shadow: var(--glow-blue), var(--shadow-md);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--ring), transparent 60%),
    var(--surface);
}
.fgs-plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: var(--radius-pill);
  background: var(--brand-gradient); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  box-shadow: var(--glow-blue); white-space: nowrap;
}
.fgs-plan__name { font-size: 15px; font-weight: 700; color: var(--text-strong); letter-spacing: 0.01em; }
.fgs-plan__desc { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; min-height: 40px; }
.fgs-plan__price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.fgs-plan__price .amt { font-size: 52px; font-weight: 850; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1; }
.fgs-plan__price .per { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.fgs-plan__note { margin: 0 0 22px; color: var(--text-soft); font-size: 13px; min-height: 18px; }
.fgs-plan ul { list-style: none; margin: 4px 0 26px; padding: 0; display: grid; gap: 12px; }
.fgs-plan li { position: relative; padding-left: 30px; color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }
.fgs-plan li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background:
    color-mix(in srgb, var(--brand-blue) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a6cff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.fgs-plan li b { color: var(--text-strong); font-weight: 650; }
.fgs-plan .fgs-btn { margin-top: auto; }

/* ----- FAQ accordion ----------------------------------------------------- */
.fgs-faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.fgs-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fgs-faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.fgs-faq__q {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-size: 16.5px; font-weight: 650; color: var(--text-strong);
  cursor: pointer;
}
.fgs-faq__q::-webkit-details-marker { display: none; }
.fgs-faq__q .pm {
  flex: none; width: 26px; height: 26px; position: relative; transition: transform 0.3s var(--ease);
}
.fgs-faq__q .pm::before, .fgs-faq__q .pm::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--text-muted); border-radius: 2px;
}
.fgs-faq__q .pm::before { width: 14px; height: 2.4px; }
.fgs-faq__q .pm::after { width: 2.4px; height: 14px; transition: transform 0.3s var(--ease); }
.fgs-faq__item[open] .pm::after { transform: rotate(90deg); opacity: 0; }
.fgs-faq__a { padding: 0 22px 22px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.fgs-faq__a a { color: var(--brand-blue); }

/* ----- CTA band ---------------------------------------------------------- */
.fgs-cta {
  position: relative;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255,255,255,0.16), transparent 55%),
    var(--brand-gradient-tri);
  color: #fff;
  box-shadow: var(--glow-blue);
}
.fgs-cta::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
}
.fgs-cta h2 { position: relative; margin: 0; font-size: clamp(28px, 4.4vw, 48px); font-weight: 850; letter-spacing: -0.025em; }
.fgs-cta p { position: relative; margin: 16px auto 0; max-width: 56ch; font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,0.9); }
.fgs-cta__row { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.fgs-cta .fgs-btn { background: #fff; color: var(--brand-blue-strong); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.45); }
.fgs-cta .fgs-btn:hover { filter: none; transform: translateY(-2px); }
.fgs-cta .fgs-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); backdrop-filter: blur(6px); }

/* ----- Footer ------------------------------------------------------------ */
.fgs-footer {
  position: relative;
  border-top: 1px solid var(--border-soft);
  padding: clamp(48px, 6vw, 76px) 0 36px;
  background: var(--surface);
}
.fgs-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px 24px;
}
.fgs-footer__brand { max-width: 320px; }
.fgs-footer__brand p { margin: 16px 0 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.fgs-social { display: flex; gap: 10px; flex-wrap: wrap; }
.fgs-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 11px;
  color: var(--text-muted); background: var(--surface-2);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.fgs-social a:hover { color: var(--text-strong); border-color: var(--brand-blue); transform: translateY(-2px); }
.fgs-social svg { width: 18px; height: 18px; }
.fgs-footer__col h4 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.fgs-footer__col a { display: block; padding: 6px 0; color: var(--text-muted); font-size: 14.5px; transition: color 0.16s var(--ease); }
.fgs-footer__col a:hover { color: var(--text-strong); }
.fgs-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft); font-size: 13px;
}
.fgs-footer__bottom a { color: var(--text-soft); }
.fgs-footer__bottom a:hover { color: var(--text-strong); }

/* ----- Legal / prose layout --------------------------------------------- */
.fgs-legal { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px)); padding-bottom: clamp(60px, 8vw, 110px); }
.fgs-legal__head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 54px); }
.fgs-legal__head .fgs-h1 { font-size: clamp(34px, 5vw, 54px); }
.fgs-legal__head .fgs-lead { margin-top: 14px; }
.fgs-legal__updated {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-muted);
  font-size: 13px; font-weight: 550;
}
.fgs-legal__layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.fgs-legal__layout--solo { grid-template-columns: 1fr; max-width: var(--max-prose); margin-inline: auto; }
.fgs-toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 22px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.fgs-toc strong { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.fgs-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.fgs-toc a {
  display: block; padding: 7px 10px; border-radius: 9px;
  color: var(--text-muted); font-size: 13.5px; line-height: 1.4;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.fgs-toc a:hover, .fgs-toc a.is-active { color: var(--text-strong); background: var(--bg-2); }

.fgs-prose {
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 4vw, 48px);
}
.fgs-legal__layout--solo .fgs-prose { max-width: none; }
.fgs-prose > :first-child { margin-top: 0; }
.fgs-prose h2 {
  margin: 40px 0 12px; padding-top: 8px;
  font-size: 22px; font-weight: 750; letter-spacing: -0.01em; color: var(--text-strong);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.fgs-prose h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; color: var(--text-strong); scroll-margin-top: calc(var(--nav-h) + 20px); }
.fgs-prose p { margin: 0 0 15px; color: var(--text); font-size: 15.5px; line-height: 1.75; }
.fgs-prose ul, .fgs-prose ol { margin: 0 0 16px; padding-left: 24px; color: var(--text); font-size: 15.5px; line-height: 1.75; }
.fgs-prose li { margin: 7px 0; }
.fgs-prose a { color: var(--brand-blue); font-weight: 500; }
.fgs-prose a:hover { text-decoration: underline; }
.fgs-prose strong { color: var(--text-strong); }
.fgs-prose code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.fgs-prose .small {
  display: block; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted); font-size: 13px; line-height: 1.6;
}
.fgs-prose .callout {
  margin: 22px 0; padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand-blue) 7%, var(--surface-2));
}
.fgs-prose .callout strong { color: var(--text-strong); }

/* ----- Scroll reveal ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }
.reveal[data-delay="5"] { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .fgs-marquee__track { animation: none; }
  .fgs-device { transform: rotateX(4deg) rotateY(-8deg); }
}

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 960px) {
  .fgs-bento { grid-template-columns: repeat(2, 1fr); }
  .fgs-bento > .span-3, .fgs-bento > .span-4, .fgs-bento > .span-2 { grid-column: span 1; }
  .fgs-bento > .span-6 { grid-column: span 2; }
  .fgs-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .fgs-stats { grid-template-columns: repeat(2, 1fr); }
  .fgs-split { grid-template-columns: 1fr; }
  .fgs-split--reverse .fgs-split__media { order: 0; }
  .fgs-plans:not(.fgs-plans--five) { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .fgs-plan-strip { grid-template-columns: 1fr 1fr; }
  .fgs-legal__layout { grid-template-columns: 1fr; }
  .fgs-toc { display: none; }
  .fgs-footer__grid { grid-template-columns: 1fr 1fr; }
  .fgs-footer__brand { grid-column: span 2; }
}
@media (max-width: 720px) {
  .fgs-nav__links { display: none; }
  .fgs-burger { display: grid; }
  .fgs-nav__right .fgs-btn { display: none; }
  .fgs-nav__right .fgs-user-chip { display: inline-flex; }
}
@media (max-width: 600px) {
  .fgs-plans--five { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .fgs-grid--3, .fgs-grid--2, .fgs-bento { grid-template-columns: 1fr; }
  .fgs-bento > .span-6 { grid-column: span 1; }
  .fgs-stats { grid-template-columns: 1fr 1fr; padding: 24px; }
  .fgs-plan-strip { grid-template-columns: 1fr; }
  .fgs-footer__grid { grid-template-columns: 1fr; }
  .fgs-footer__brand { grid-column: span 1; }
}

/* ----- Contact sales modal ------------------------------------------------ */
.fgs-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fgs-contact-backdrop[hidden] { display: none !important; }
.fgs-contact-modal {
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.fgs-contact-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.fgs-contact-modal__lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.fgs-contact-form { display: grid; gap: 12px; }
.fgs-contact-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.fgs-contact-field input,
.fgs-contact-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--surface-glass);
  color: var(--text-strong);
}
.fgs-contact-field textarea { resize: vertical; min-height: 120px; }
.fgs-contact-error {
  margin: 0;
  font-size: 13px;
  color: #e03131;
}
.fgs-contact-error[hidden] { display: none; }
.fgs-contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
