:root {
  --fg-bg: #080b12;
  --fg-bg-deep: #050810;
  --fg-panel: rgba(13, 20, 31, 0.9);
  --fg-panel-soft: rgba(16, 25, 39, 0.76);
  --fg-blue: #2fa8ff;
  --fg-violet: #8f3dff;
  --fg-teal: #26c9b5;
  --fg-copper: #d6a36f;
  --fg-text: #f7f8fb;
  --fg-soft: #aeb8c8;
  --fg-muted: #788596;
  --fg-line: rgba(146, 168, 194, 0.18);
  --fg-line-bright: rgba(47, 168, 255, 0.42);
  --fg-shell: 1580px;
  --fg-radius: 22px;
  --fg-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.fg-home {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--fg-text);
  background:
    radial-gradient(circle at 72% 13%, rgba(143, 61, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 24% 42%, rgba(47, 168, 255, 0.1), transparent 32rem),
    linear-gradient(180deg, #060910, var(--fg-bg) 55%, #060910);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.fg-home::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.022;
  background: url("../img/fotografus/padrao-fotografus.png") center / 1180px auto repeat;
}

.fg-home img { display: block; max-width: 100%; }
.fg-home a { color: inherit; text-decoration: none; }
.fg-home button, .fg-home input { font: inherit; }
.fg-home :focus-visible { outline: 2px solid var(--fg-teal); outline-offset: 4px; }

.fg-shell {
  width: min(var(--fg-shell), calc(100% - 80px));
  margin-inline: auto;
}

.fg-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: #05101a;
  background: var(--fg-teal);
  font-weight: 800;
  transform: translateY(-170%);
}
.fg-skip-link:focus { transform: none; }

.fg-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(5, 9, 16, 0.84);
  backdrop-filter: blur(20px);
}

.fg-header-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 34px;
  width: min(1640px, calc(100% - 64px));
  min-height: 94px;
  margin-inline: auto;
}

.fg-brand,
.fg-hub-logo,
.fg-footer-brand {
  overflow: hidden;
  background: var(--fg-bg);
}

.fg-brand {
  width: 286px;
  height: 76px;
}

.fg-brand img,
.fg-hub-logo img,
.fg-footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-nav { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 68px); }
.fg-nav a {
  position: relative;
  padding: 34px 0 30px;
  color: #c8ced8;
  font-size: 15px;
  font-weight: 500;
}
.fg-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 23px;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--fg-blue), var(--fg-violet), var(--fg-teal));
  box-shadow: 0 0 14px rgba(47, 168, 255, 0.55);
  transition: right 180ms ease, left 180ms ease;
}
.fg-nav a:hover::after { right: 0; left: 0; }

.fg-header-actions { display: flex; justify-content: flex-end; }
.fg-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 30px;
  border: 1px solid var(--fg-line);
  border-radius: 14px;
  color: var(--fg-text);
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.fg-button:hover { transform: translateY(-2px); }
.fg-button-ghost { background: rgba(8, 14, 23, 0.42); }
.fg-button-ghost:hover { border-color: rgba(47, 168, 255, 0.46); }
.fg-button-primary {
  border-color: transparent;
  background: linear-gradient(100deg, var(--fg-blue), #4779ff 48%, var(--fg-violet));
  box-shadow: 0 16px 40px rgba(80, 83, 255, 0.26);
}
.fg-button-primary:hover { box-shadow: 0 18px 52px rgba(80, 83, 255, 0.36); }

.fg-menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--fg-line);
  border-radius: 12px;
  color: var(--fg-text);
  background: var(--fg-panel);
}
.fg-menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 99px; background: currentColor; }

.fg-hero {
  position: relative;
  min-height: 890px;
  overflow: hidden;
  isolation: isolate;
}

.fg-glow {
  position: absolute;
  z-index: -1;
  width: 540px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}
.fg-glow-blue { top: 210px; left: 28%; background: var(--fg-blue); }
.fg-glow-violet { top: 70px; right: 8%; background: var(--fg-violet); }

.fg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.9fr) minmax(650px, 1.1fr);
  min-height: 890px;
  align-items: center;
  gap: 30px;
  padding-block: 72px 210px;
}

.fg-hero-copy { position: relative; z-index: 5; padding-left: clamp(8px, 2vw, 34px); }
.fg-eyebrow {
  margin: 0 0 22px;
  color: var(--fg-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.fg-hero h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(54px, 4.6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.06;
  white-space: nowrap;
}
.fg-dot { font-weight: 800; }
.fg-dot-blue { color: var(--fg-blue); }
.fg-dot-violet { color: var(--fg-violet); }
.fg-dot-copper { color: var(--fg-copper); }
.fg-hero-lead { margin: 30px 0 0; color: var(--fg-soft); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.5; }
.fg-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.fg-hero-visual { position: relative; align-self: stretch; min-height: 570px; }
.fg-main-photo {
  position: absolute;
  inset: 4% 22% 1% 4%;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border-radius: 44% 44% 18px 18px;
  background: #080d16;
  mask-image: linear-gradient(to bottom, #000 0%, #000 77%, transparent 100%);
}
.fg-main-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 11, 18, 0.25), transparent 45%, rgba(8, 11, 18, 0.18));
}
.fg-main-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; filter: saturate(0.78) contrast(1.05); }

.fg-photo-rail {
  position: absolute;
  top: 4%;
  right: 0;
  bottom: 4%;
  z-index: 3;
  display: grid;
  width: 27%;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.fg-photo-rail img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) contrast(1.08); }

.fg-orbit {
  position: absolute;
  z-index: 4;
  top: 39%;
  left: 2%;
  width: 77%;
  height: 25%;
  border: 3px solid transparent;
  border-top-color: rgba(143, 61, 255, 0.72);
  border-right-color: rgba(47, 168, 255, 0.68);
  border-bottom-color: rgba(38, 201, 181, 0.62);
  border-left-color: rgba(214, 163, 111, 0.65);
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(108, 67, 255, 0.44));
  transform: rotate(8deg);
}
.fg-orbit-two { top: 52%; left: 7%; width: 70%; height: 18%; opacity: 0.62; transform: rotate(-11deg); }

.fg-hero-cards {
  position: absolute;
  right: 8%;
  bottom: 55px;
  left: 8%;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 1.08fr 0.78fr;
  gap: 14px;
}
.fg-mini-card,
.fg-flow-card,
.fg-resource-card,
.fg-program-card,
.fg-hub-card,
.fg-orysia-strip,
.fg-cta-panel {
  border: 1px solid var(--fg-line);
  background: linear-gradient(145deg, rgba(17, 27, 41, 0.94), rgba(7, 13, 23, 0.92));
  box-shadow: var(--fg-shadow);
  backdrop-filter: blur(18px);
}
.fg-mini-card { min-width: 0; padding: 18px; border-radius: 18px; }
.fg-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.fg-card-heading strong { font-size: 15px; }
.fg-card-mark { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid var(--fg-line); border-radius: 50%; }
.fg-mini-card small, .fg-mini-card p { margin: 0; color: var(--fg-soft); font-size: 12px; }
.fg-mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 12px; }
.fg-mini-gallery img,
.fg-mini-gallery video { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.fg-icon-dot { display: inline-grid; width: 30px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.05); }
.fg-blue { color: var(--fg-blue); }
.fg-violet { color: var(--fg-violet); }
.fg-teal { color: var(--fg-teal); }
.fg-copper { color: var(--fg-copper); }
.fg-suite-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.fg-suite-icons span { display: grid; min-width: 0; place-items: center; gap: 5px; padding: 12px 3px; border: 1px solid var(--fg-line); border-radius: 11px; font-size: 10px; font-weight: 800; }
.fg-suite-icons b { font-size: 24px; }
.fg-wave { display: flex; height: 84px; align-items: center; justify-content: center; gap: 6px; }
.fg-wave i { display: block; width: 3px; height: 32%; border-radius: 99px; background: linear-gradient(var(--fg-violet), var(--fg-teal)); box-shadow: 0 0 18px var(--fg-violet); }
.fg-wave i:nth-child(2), .fg-wave i:nth-child(4) { height: 68%; }
.fg-wave i:nth-child(3) { height: 92%; }

.fg-section { position: relative; padding: clamp(88px, 9vw, 144px) 0; }
.fg-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 44px; }
.fg-section-heading > div { max-width: 900px; }
.fg-section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1.08;
}
.fg-section-heading > p { max-width: 520px; margin: 0 0 7px; color: var(--fg-soft); font-size: 19px; }
.fg-section-heading-wide { align-items: center; }
.fg-centered { display: grid; justify-items: center; text-align: center; }
.fg-centered > div { max-width: 1050px; }
.fg-centered > p { max-width: 650px; text-align: center; }

.fg-platform { border-block: 1px solid rgba(255, 255, 255, 0.045); background: rgba(5, 9, 16, 0.45); }
.fg-flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fg-flow-card { min-height: 320px; padding: 24px; border-radius: var(--fg-radius); }
.fg-flow-card > span { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; }
.fg-flow-card h3 { margin: 7px 0 22px; font-size: 28px; }
.fg-flow-card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--fg-soft); }
.fg-flow-card li { padding: 9px 12px; border: 1px solid var(--fg-line); border-radius: 9px; }
.fg-flow-blue { --card-accent: var(--fg-blue); }
.fg-flow-violet { --card-accent: var(--fg-violet); }
.fg-flow-teal { --card-accent: var(--fg-teal); }
.fg-flow-copper { --card-accent: var(--fg-copper); }
.fg-flow-card, .fg-program-card { border-top-color: color-mix(in srgb, var(--card-accent) 68%, transparent); }
.fg-flow-card > span, .fg-flow-card h3, .fg-program-card h3, .fg-program-card > b { color: var(--card-accent); }
.fg-program-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.fg-program-list strong { padding: 15px; border: 1px solid var(--fg-line); border-radius: 12px; text-align: center; }
.fg-flow-card > img { width: 100%; height: 190px; object-fit: cover; border-radius: 13px; }
.fg-flow-card dl { display: grid; gap: 12px; margin: 0; }
.fg-flow-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 12px; border-bottom: 1px solid var(--fg-line); }
.fg-flow-card dt { color: var(--fg-soft); }
.fg-flow-card dd { margin: 0; color: var(--fg-text); font-size: 21px; font-weight: 700; }

.fg-orysia-strip { display: grid; grid-template-columns: minmax(250px, 0.6fr) 1.4fr; gap: 36px; margin-top: 18px; padding: 24px 28px; border-radius: 18px; }
.fg-orysia-strip > div { display: grid; gap: 2px; }
.fg-orysia-strip strong { font-size: 22px; }
.fg-orysia-strip span { color: var(--fg-soft); font-size: 13px; }
.fg-orysia-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fg-orysia-strip li { position: relative; padding-left: 18px; color: var(--fg-soft); font-size: 13px; }
.fg-orysia-strip li::before { position: absolute; top: 7px; left: 0; width: 7px; height: 7px; border-radius: 50%; content: ""; background: linear-gradient(var(--fg-blue), var(--fg-violet)); box-shadow: 0 0 10px var(--fg-violet); }

.fg-resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fg-resource-card { position: relative; min-height: 220px; overflow: hidden; padding: 24px; border-radius: var(--fg-radius); }
.fg-resource-card h3 { margin: 16px 0 8px; font-size: 22px; }
.fg-resource-card p { margin: 0; color: var(--fg-soft); }
.fg-resource-gallery { grid-column: span 2; grid-row: span 2; min-height: 460px; padding: 0; }
.fg-resource-album { grid-column: span 2; min-height: 300px; padding: 0; }
.fg-resource-gallery > div, .fg-resource-album > div { position: absolute; inset: 0; z-index: 2; display: grid; align-content: start; padding: 28px; background: linear-gradient(180deg, rgba(4, 9, 17, 0.82), transparent 50%, rgba(4, 9, 17, 0.68)); }
.fg-resource-gallery img, .fg-resource-album img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.76); }
.fg-pill { width: max-content; padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.fg-programs { background: radial-gradient(circle at 50% 50%, rgba(69, 61, 163, 0.12), transparent 35rem); }
.fg-hub-card { display: grid; width: min(760px, 100%); justify-items: center; margin: 0 auto 42px; padding: 22px; border-top-color: rgba(47, 168, 255, 0.52); border-right-color: rgba(214, 163, 111, 0.42); border-bottom-color: rgba(38, 201, 181, 0.42); border-left-color: rgba(143, 61, 255, 0.48); border-radius: 20px; }
.fg-hub-logo { width: min(620px, 100%); height: 160px; }
.fg-hub-card p { margin: -18px 0 7px; color: var(--fg-soft); }
.fg-program-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fg-program-card { display: grid; min-height: 250px; align-content: center; justify-items: center; gap: 6px; padding: 26px 14px; border-radius: 18px; text-align: center; }
.fg-program-card > b { font-size: 42px; }
.fg-program-card h3 { margin: 5px 0 0; font-size: 20px; letter-spacing: 0.06em; }
.fg-program-card p { margin: 0; color: var(--fg-soft); }
.fg-program-card span { margin-top: 17px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--card-accent) 48%, transparent); border-radius: 999px; color: var(--card-accent); font-size: 10px; }
.fg-center-action { display: flex; justify-content: center; margin-top: 34px; }

.fg-plans-preview { padding-top: 30px; }
.fg-cta-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr) auto; align-items: center; gap: 36px; padding: clamp(30px, 4vw, 54px); border-radius: 26px; }
.fg-cta-panel h2 { max-width: 780px; margin: 0; font-size: clamp(36px, 4vw, 60px); line-height: 1.08; letter-spacing: -0.045em; }
.fg-cta-panel > p { margin: 0; color: var(--fg-soft); font-size: 18px; }

.fg-footer { margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.055); background: rgba(4, 8, 14, 0.88); }
.fg-footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; min-height: 170px; padding-block: 24px; }
.fg-footer-brand { width: 260px; height: 72px; }
.fg-footer-brand p { margin: -8px 0 0; color: var(--fg-muted); font-size: 11px; }
.fg-footer nav { display: flex; gap: 30px; color: var(--fg-soft); font-size: 13px; }
.fg-footer-inner > p { justify-self: end; color: var(--fg-muted); font-size: 12px; }

@media (max-width: 1260px) {
  .fg-header-inner { grid-template-columns: 245px auto 150px; gap: 20px; }
  .fg-brand { width: 245px; }
  .fg-nav { gap: 28px; }
  .fg-hero-grid { grid-template-columns: minmax(460px, 0.88fr) minmax(520px, 1.12fr); }
  .fg-flow-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-program-grid { grid-template-columns: repeat(3, 1fr); }
  .fg-program-card:last-child { grid-column: 2; }
  .fg-resource-grid { grid-template-columns: repeat(3, 1fr); }
  .fg-resource-gallery { grid-column: span 2; }
  .fg-resource-album { grid-column: span 2; }
  .fg-cta-panel { grid-template-columns: 1fr auto; }
  .fg-cta-panel > p { grid-column: 1; }
  .fg-cta-panel > a { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 980px) {
  .fg-shell { width: min(100% - 40px, var(--fg-shell)); }
  .fg-header-inner { grid-template-columns: 1fr auto auto; width: calc(100% - 34px); min-height: 82px; }
  .fg-brand { width: 235px; height: 66px; }
  .fg-menu-toggle { display: grid; }
  .fg-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--fg-line);
    border-radius: 16px;
    background: rgba(6, 11, 19, 0.98);
    box-shadow: var(--fg-shadow);
  }
  .reference-header.menu-open .fg-nav { display: grid; }
  .fg-nav a { padding: 14px; border-radius: 10px; }
  .fg-nav a::after { display: none; }
  .fg-nav a:hover { background: rgba(47, 168, 255, 0.08); }
  .fg-header-actions .fg-button { min-height: 44px; padding-inline: 20px; }
  .fg-hero { min-height: auto; }
  .fg-hero-grid { display: grid; grid-template-columns: 1fr; min-height: auto; gap: 20px; padding-block: 70px 60px; }
  .fg-hero-copy { max-width: 700px; padding-left: 0; }
  .fg-hero h1 { white-space: normal; }
  .fg-hero-visual { min-height: 600px; }
  .fg-hero-cards { position: relative; right: auto; bottom: auto; left: auto; grid-template-columns: repeat(2, 1fr); margin-top: -70px; }
  .fg-ai-mini { grid-column: span 2; }
  .fg-section-heading { display: grid; gap: 20px; }
  .fg-section-heading > p { max-width: 720px; }
  .fg-orysia-strip { grid-template-columns: 1fr; }
  .fg-orysia-strip ul { grid-template-columns: repeat(2, 1fr); }
  .fg-resource-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-resource-gallery, .fg-resource-album { grid-column: span 2; }
  .fg-program-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-program-card:last-child { grid-column: auto; }
  .fg-footer-inner { grid-template-columns: 1fr 1fr; }
  .fg-footer-inner > p { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 660px) {
  .fg-shell { width: calc(100% - 28px); }
  .fg-header-inner { grid-template-columns: 1fr auto; }
  .fg-brand { width: 210px; height: 60px; }
  .fg-header-actions { display: none; }
  .fg-hero-grid { padding-top: 46px; }
  .fg-hero h1 { font-size: clamp(44px, 13vw, 64px); white-space: normal; }
  .fg-hero-lead { font-size: 18px; }
  .fg-actions { display: grid; }
  .fg-hero-visual { min-height: 470px; margin-inline: -14px; }
  .fg-main-photo { inset: 4% 18% 1% 0; }
  .fg-photo-rail { width: 27%; }
  .fg-hero-cards { grid-template-columns: 1fr; margin-top: -42px; }
  .fg-ai-mini { grid-column: auto; }
  .fg-section { padding-block: 82px; }
  .fg-section-heading h2 { font-size: 42px; }
  .fg-flow-grid, .fg-resource-grid, .fg-program-grid { grid-template-columns: 1fr; }
  .fg-resource-gallery, .fg-resource-album { grid-column: auto; min-height: 360px; }
  .fg-orysia-strip ul { grid-template-columns: 1fr; }
  .fg-hub-logo { height: 120px; }
  .fg-cta-panel { grid-template-columns: 1fr; }
  .fg-cta-panel > p, .fg-cta-panel > a { grid-column: 1; grid-row: auto; }
  .fg-footer-inner { grid-template-columns: 1fr; }
  .fg-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fg-button { transition: none; }
}
