/* The Godfather Offer page, first half: page bar, hero, the revenue leak,
   the system journey and the working mockup. Site tokens only. */

.gf-wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.gf-wrap--narrow { max-width: 820px; }
.gf-sec { position: relative; padding-block: clamp(64px, 8vw, 120px); }
.gf-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); display: grid; gap: 14px; }
.gf-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.gf-h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 900; line-height: 1.06; letter-spacing: -.03em; margin: 0; }
.gf-big { font-size: clamp(24px, 2.8vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--text); }
.gf-btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- reveal on scroll (only once the script has run) ---------- */
.gf-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.gf-js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.gf-hero { position: relative; padding-block: clamp(24px, 3vw, 44px) clamp(40px, 6vw, 80px); min-height: calc(100svh - var(--nav-h)); display: grid; align-items: start; }
/* the hero column spans the full page width; as a lone grid item it would otherwise shrink to its content and sit centred */
.gf-hero > .gf-wrap { width: 100%; max-width: 1440px; }   /* as wide as the home page hero */
.gf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.gf-hero__copy { display: grid; gap: 22px; justify-items: start; }
.gf-hero__h { font-size: clamp(33px, 4.1vw, 66px); max-width: 22ch; margin: 0; }
.gf-hero__copy .lede { max-width: 52ch; }
.gf-hero__cta { display: grid; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) {
  .gf-hero { min-height: 0; }
  .gf-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .gf-hero__cta .btn { width: 100%; } .gf-hero__cta { width: 100%; } }

/* the operating panel */
.gf-panel {
  position: relative; padding: 18px 20px 22px;
  border: 1px solid var(--border-glow); border-radius: 20px;
  background: linear-gradient(180deg, var(--card) 0%, var(--well) 100%);
  box-shadow: var(--sh-card), 0 0 60px rgba(157, 92, 255, .12);
}
.gf-panel__top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.gf-dots { display: inline-flex; gap: 6px; }
.gf-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--chrome-dot); }
.gf-panel__title { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gf-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--live); }
.gf-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: gf-blink 1.6s infinite; }
@keyframes gf-blink { 50% { opacity: .3; } }

.gf-flow { position: relative; display: grid; gap: 12px; }
.gf-flow::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--cyan) 20%, var(--purple) 50%, var(--pink) 80%, transparent 100%) 0 0 / 100% 200%;
  opacity: .8; animation: gf-flowline 3s linear infinite;
}
@keyframes gf-flowline { to { background-position: 0 -200%; } }
.gf-flow__step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: center; }
.gf-flow__node {
  width: 24px; height: 24px; border-radius: 50%; z-index: 1;
  background: var(--well); border: 2px solid var(--border-glow);
  animation: gf-node 10s infinite; animation-delay: calc(var(--i) * 1.2s);
}
.gf-flow__body {
  display: grid; gap: 2px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 55%, transparent);
  animation: gf-card 10s infinite; animation-delay: calc(var(--i) * 1.2s);
}
.gf-flow__k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.gf-flow__step:last-child .gf-flow__k { color: var(--live); }
.gf-flow__t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.gf-flow__d { font-size: 13px; color: var(--muted-2); }
@keyframes gf-node {
  0%, 100% { border-color: var(--border-glow); box-shadow: none; background: var(--well); }
  6%, 55% { border-color: var(--purple); background: var(--purple); box-shadow: 0 0 0 5px rgba(157, 92, 255, .22); }
  65% { border-color: var(--border-glow); box-shadow: none; background: var(--well); }
}
@keyframes gf-card {
  0%, 100% { border-color: var(--border); }
  6%, 55% { border-color: var(--border-glow); }
  65% { border-color: var(--border); }
}
.gf-flow__step:last-child .gf-flow__node { animation-name: gf-node-done; }
@keyframes gf-node-done {
  0%, 100% { border-color: var(--border-glow); box-shadow: none; background: var(--well); }
  6%, 55% { border-color: var(--live); background: var(--live); box-shadow: 0 0 0 5px rgba(127, 227, 176, .22); }
  65% { border-color: var(--border-glow); box-shadow: none; background: var(--well); }
}
.gf-flow__pulse { display: none; }

/* ---------- the revenue leak ---------- */
.gf-leak {
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255, 61, 184, .14), transparent 70%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--well) 70%, transparent) 30%, color-mix(in srgb, var(--well) 70%, transparent) 70%, transparent);
}
.gf-leak__cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gf-leak__card {
  position: relative; padding: 22px 18px;
  border: 1px solid color-mix(in srgb, var(--pink) 30%, var(--border)); border-radius: 16px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
}
.gf-leak__card::after {
  content: ""; position: absolute; left: 50%; bottom: -29px; width: 1px; height: 28px;
  background: color-mix(in srgb, var(--pink) 55%, transparent);
}
.gf-leak__drop { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px rgba(255, 61, 184, .16); margin-bottom: 14px; }
.gf-leak__card h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.gf-leak__card p { font-size: 14px; color: var(--muted); margin: 0; }
.gf-leak__join { position: relative; height: 72px; margin-top: 28px; }
.gf-leak__join::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: color-mix(in srgb, var(--pink) 55%, transparent); }
.gf-leak__join::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: color-mix(in srgb, var(--pink) 55%, transparent); }
.gf-leak__join span {
  position: absolute; left: calc(50% - 4px); top: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 14px var(--pink); animation: gf-drip 2.2s ease-in infinite;
}
@keyframes gf-drip { from { transform: translateY(0); opacity: 1; } to { transform: translateY(64px); opacity: .2; } }
.gf-leak__lost {
  width: fit-content; margin: 0 auto; padding: 16px 34px; border-radius: 60px;
  font-size: clamp(18px, 2vw, 24px); font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink); border: 1px solid var(--pink);
  background: rgba(255, 61, 184, .08); box-shadow: 0 0 50px rgba(255, 61, 184, .25);
}
@media (max-width: 1023px) {
  .gf-leak__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-leak__card:last-child { grid-column: 1 / -1; }
  .gf-leak__card::after, .gf-leak__join::before { display: none; }
  .gf-leak__join { margin-top: 0; }
}
@media (max-width: 560px) { .gf-leak__cards { grid-template-columns: 1fr; } }

/* ---------- the system journey ---------- */
.gf-track { position: relative; }
.gf-track__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; }
.gf-track__line { position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--border-glow); overflow: hidden; }
.gf-track__line i {
  position: absolute; inset: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--pink), transparent);
  animation: gf-travel 4.5s linear infinite;
}
@keyframes gf-travel { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.gf-track__stage { position: relative; display: grid; gap: 8px; align-content: start; }
.gf-track__n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-glow); box-shadow: 0 0 0 6px var(--bg);
  margin-bottom: 10px;
}
.gf-track__stage:last-child .gf-track__n { background: var(--grad-btn); border-color: transparent; }
.gf-track__stage h3 { margin: 0; font-size: 19px; font-weight: 800; }
.gf-track__stage p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 1023px) {
  .gf-track__list { grid-template-columns: 1fr; gap: 26px; }
  .gf-track__line { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .gf-track__line i { width: 100%; height: 30%; background: linear-gradient(180deg, transparent, var(--cyan), var(--purple), var(--pink), transparent); animation-name: gf-travel-v; }
  .gf-track__stage { grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; }
  .gf-track__n { grid-row: 1 / span 2; margin: 0; }
}
@keyframes gf-travel-v { from { transform: translateY(-100%); } to { transform: translateY(340%); } }

/* ---------- the system working ---------- */
.gf-stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gf-window { margin: 0; border: 1px solid var(--border-glow); border-radius: 18px; overflow: hidden; background: var(--well); box-shadow: var(--sh-card); }
.gf-window__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--chrome); border-bottom: 1px solid var(--border); }
.gf-window__url { flex: 1; max-width: 320px; margin-inline: auto; text-align: center; padding: 5px 12px; border-radius: 8px; background: var(--bg); font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.gf-window__body { padding: 18px clamp(14px, 3vw, 28px) 24px; }
.gf-window figcaption, .gf-mini figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--border); }
.gf-chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.gf-chat__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-weight: 900; }
.gf-chat__head b { display: block; font-size: 15px; }
.gf-chat__head span { font-size: 12.5px; color: var(--live); }
.gf-chat { display: grid; gap: 12px; }
.gf-chat__msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; }
.gf-chat__msg p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }
.gf-chat__who { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.gf-chat__msg--customer { justify-self: start; background: var(--card-2); border-bottom-left-radius: 4px; }
.gf-chat__msg--system { justify-self: end; background: linear-gradient(135deg, rgba(109, 42, 224, .55), rgba(208, 35, 143, .4)); border: 1px solid var(--border-glow); border-bottom-right-radius: 4px; }
.gf-chat__msg--system .gf-chat__who { color: #E9DDFF; }
.gf-chat__event { justify-self: center; }
.gf-chat__event span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 700; color: var(--live); border: 1px solid color-mix(in srgb, var(--live) 40%, transparent); background: rgba(127, 227, 176, .08); }
.gf-chat__event span::before { content: "✓"; }
.gf-js [data-chat] > li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 650ms + 300ms); }
.gf-js [data-chat].is-in > li { opacity: 1; transform: none; }

.gf-side { display: grid; gap: 20px; }
.gf-mini { margin: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--card); }
.gf-slot {
  aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(157, 92, 255, .05) 12px 24px), var(--well);
  border-bottom: 1px dashed var(--border-glow);
}
.gf-slot span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.gf-slot b { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .gf-stage { grid-template-columns: 1fr; }
  .gf-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gf-side { grid-template-columns: 1fr; }
  .gf-chat__msg { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  .gf-js .reveal, .gf-js [data-chat] > li { opacity: 1; transform: none; transition: none; }
  .gf-flow::before, .gf-flow__node, .gf-flow__body, .gf-track__line i, .gf-leak__join span, .gf-live::before { animation: none; }
}
.gf-shot { display: block; width: 100%; height: auto; aspect-ratio: 850 / 402; object-fit: cover; background: #151515; border-bottom: 1px solid var(--border); }
