/* ==========================================================================
   FlutterGo final CTA — floating glass conversion stage
   ========================================================================== */

.fgc {
  position: relative;
  padding: 20px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

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

.fgc__mesh {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 50% 45% at 50% 40%, rgba(10, 108, 255, 0.22), transparent 62%),
    radial-gradient(ellipse 40% 35% at 18% 70%, rgba(56, 189, 248, 0.1), transparent 60%),
    radial-gradient(ellipse 35% 30% at 85% 30%, rgba(10, 108, 255, 0.12), transparent 58%);
  animation: fgc-mesh 24s ease-in-out infinite alternate;
}

.fgc__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.fgc__orb--a {
  width: 480px;
  height: 480px;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  background: rgba(10, 108, 255, 0.32);
  animation: fgc-orb-a 18s ease-in-out infinite alternate;
}

.fgc__orb--b {
  width: 320px;
  height: 320px;
  right: 8%;
  bottom: 8%;
  background: rgba(56, 189, 248, 0.18);
  animation: fgc-orb-b 22s ease-in-out infinite alternate;
}

@keyframes fgc-mesh {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -2%, 0) scale(1.04); }
}

@keyframes fgc-orb-a {
  from { transform: translateX(-50%) translate3d(0, 0, 0); }
  to { transform: translateX(-50%) translate3d(0, 24px, 0); }
}

@keyframes fgc-orb-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-28px, -18px, 0); }
}

.fgc > .fgs-container {
  position: relative;
  z-index: 1;
}

.fgc__stage {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
}

/* ---- Floating ornaments ------------------------------------------------ */

.fgc__float {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

.fgc__float--phone {
  left: -2%;
  top: 8%;
  animation: fgc-float-y 7s ease-in-out infinite;
}

.fgc__float--code {
  right: -4%;
  top: 18%;
  animation: fgc-float-y 8.5s ease-in-out infinite reverse;
}

.fgc__float--toast {
  left: 4%;
  bottom: 14%;
  animation: fgc-float-y 6.5s ease-in-out infinite 0.6s;
}

.fgc__float--flow {
  right: 2%;
  bottom: 10%;
  animation: fgc-float-y 9s ease-in-out infinite 0.3s;
}

@keyframes fgc-float-y {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.fgc-mini-phone {
  width: 72px;
  height: 128px;
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(165deg, #1a2230, #0c1018);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fgc-mini-phone__bar {
  height: 6px;
  width: 55%;
  border-radius: 3px;
  background: #0a6cff;
  box-shadow: 0 0 10px rgba(10, 108, 255, 0.5);
}

.fgc-mini-phone__hero {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(10, 108, 255, 0.45), rgba(56, 189, 248, 0.1));
}

.fgc-mini-phone__row {
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.fgc-chip-code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(230, 237, 245, 0.88);
  background: rgba(12, 16, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fgc-chip-code .k { color: #c792ea; }
.fgc-chip-code .t { color: #82aaff; }
.fgc-chip-code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.fgc-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #b8f5d8;
  background: rgba(8, 40, 28, 0.85);
  border: 1px solid rgba(80, 220, 160, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fgc-toast i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  animation: fgc-pulse 2s ease-in-out infinite;
}

@keyframes fgc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.fgc-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(244, 247, 251, 0.85);
  background: rgba(12, 16, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fgc-flow b {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #7eb6ff, transparent);
  background-size: 200% 100%;
  animation: fgc-beam 2s linear infinite;
}

@keyframes fgc-beam {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* ---- Glass panel ------------------------------------------------------- */

.fgc__panel {
  position: relative;
  z-index: 3;
  border-radius: 32px;
  overflow: hidden;
  transform: translateZ(0);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(10, 108, 255, 0.08) 100%);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 40px 80px -32px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(10, 108, 255, 0.12),
    0 0 80px -20px rgba(10, 108, 255, 0.35);
}

.fgc__border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.35),
    rgba(10, 108, 255, 0.55),
    rgba(56, 189, 248, 0.25),
    rgba(255, 255, 255, 0.08),
    rgba(10, 108, 255, 0.45)
  );
  background-size: 240% 240%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: fgc-border 12s linear infinite;
}

@keyframes fgc-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fgc__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.1) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: fgc-sheen 8s ease-in-out infinite;
}

@keyframes fgc-sheen {
  0%, 100% { background-position: 130% 0; opacity: 0.35; }
  50% { background-position: -30% 0; opacity: 0.7; }
}

.fgc__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(48px, 7vw, 72px) clamp(24px, 5vw, 64px) clamp(40px, 5vw, 56px);
}

.fgc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.9);
  background: rgba(10, 108, 255, 0.16);
  border: 1px solid rgba(10, 108, 255, 0.28);
  box-shadow: 0 0 24px rgba(10, 108, 255, 0.2);
}

.fgc__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7eb6ff;
  box-shadow: 0 0 10px #0a6cff;
  animation: fgc-pulse 2.4s ease-in-out infinite;
}

.fgc__title {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #f7f9fc;
  text-wrap: balance;
}

.fgc__lead {
  margin: 18px auto 0;
  max-width: 42ch;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: rgba(230, 237, 245, 0.72);
}

/* ---- Actions ----------------------------------------------------------- */

.fgc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.fgc__primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #1a7fff 0%, #0a6cff 45%, #38bdf8 100%);
  background-size: 180% 180%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 16px 40px -12px rgba(10, 108, 255, 0.75),
    0 0 0 1px rgba(10, 108, 255, 0.35);
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 420ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 420ms cubic-bezier(0.23, 1, 0.32, 1);
  animation: fgc-btn-gradient 7s ease infinite;
  will-change: transform;
}

.fgc__primary-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: fgc-btn-glow 3.6s ease-in-out infinite;
}

.fgc__primary-label {
  position: relative;
  z-index: 1;
}

.fgc__primary:hover,
.fgc__primary.is-magnet {
  transform: translate3d(0, -3px, 0) scale(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 22px 48px -10px rgba(10, 108, 255, 0.9),
    0 0 0 1px rgba(126, 182, 255, 0.55),
    0 0 36px rgba(10, 108, 255, 0.45);
}

.fgc__primary:active {
  transform: translate3d(0, -1px, 0) scale(0.985);
  transition-duration: 120ms;
}

@keyframes fgc-btn-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fgc-btn-glow {
  0%, 100% { opacity: 0.35; transform: translate3d(-8%, -4%, 0); }
  50% { opacity: 0.6; transform: translate3d(8%, 4%, 0); }
}

.fgc__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(244, 247, 251, 0.92);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition:
    transform 360ms cubic-bezier(0.23, 1, 0.32, 1),
    background 360ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 360ms cubic-bezier(0.23, 1, 0.32, 1);
}

.fgc__secondary:hover {
  transform: translate3d(0, -2px, 0);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Trust row --------------------------------------------------------- */

.fgc__trust {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.fgc__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(220, 230, 245, 0.7);
}

.fgc__trust svg {
  width: 14px;
  height: 14px;
  color: #7eb6ff;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(10, 108, 255, 0.45));
}

/* ---- Stagger reveal polish --------------------------------------------- */

.fgc__stage.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition:
    opacity 700ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.fgc__stage.reveal.is-in {
  opacity: 1;
  transform: none;
}

.fgc__stage.reveal.is-in .fgc__float--phone { animation-delay: 0s; }
.fgc__stage.reveal.is-in .fgc__eyebrow {
  animation: fgc-rise 700ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.fgc__stage.reveal.is-in .fgc__title {
  animation: fgc-rise 780ms 60ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.fgc__stage.reveal.is-in .fgc__lead {
  animation: fgc-rise 780ms 120ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.fgc__stage.reveal.is-in .fgc__actions {
  animation: fgc-rise 780ms 180ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.fgc__stage.reveal.is-in .fgc__trust {
  animation: fgc-rise 780ms 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes fgc-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 900px) {
  .fgc__float { display: none; }
  .fgc__stage { padding: 0; }
}

@media (max-width: 640px) {
  .fgc { padding: 12px 0 56px; }
  .fgc__panel { border-radius: 24px; }
  .fgc__actions { flex-direction: column; align-items: stretch; }
  .fgc__primary,
  .fgc__secondary { width: 100%; }
  .fgc__trust { gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .fgc__mesh,
  .fgc__orb,
  .fgc__float,
  .fgc__border,
  .fgc__sheen,
  .fgc__primary,
  .fgc__primary-glow,
  .fgc-toast i,
  .fgc-flow b,
  .fgc__eyebrow .dot,
  .fgc__stage.reveal.is-in .fgc__eyebrow,
  .fgc__stage.reveal.is-in .fgc__title,
  .fgc__stage.reveal.is-in .fgc__lead,
  .fgc__stage.reveal.is-in .fgc__actions,
  .fgc__stage.reveal.is-in .fgc__trust {
    animation: none !important;
  }

  .fgc__stage.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fgc__primary,
  .fgc__secondary {
    transition: none;
  }
}
