/* ==========================================================================
   Hub Home template styles (templates/hub-home.php). Scoped under .gpm-*.
   ========================================================================== */

.gpm-main { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", sans-serif; color: var(--gpb-ink); font-size: 16px; line-height: 1.6; }
.gpm-main *, .gpm-main *::before, .gpm-main *::after { box-sizing: border-box; }
.gpm-main a { text-decoration: none; color: inherit; }
.gpm-main img { max-width: 100%; }
.gpm-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--gpb-red); margin-bottom: 4px; }
.gpm-eyebrow-light { color: #FF6B6E; }
.gpm-ghost { background: transparent !important; color: var(--gpb-ink) !important; border: 1.5px solid var(--gpb-line) !important; }
.gpm-ghost:hover { border-color: var(--gpb-red) !important; color: var(--gpb-red) !important; }
.gpm-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.gpm-center { justify-content: center; }
.gpm-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.gpm-reveal.gpm-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .gpm-reveal { opacity: 1; transform: none; transition: none; } }

/* hero */
.gpm-hero {
  background:
    radial-gradient(640px 360px at 88% -12%, rgba(206,20,24,.32), transparent 65%),
    radial-gradient(520px 320px at -10% 110%, rgba(206,20,24,.16), transparent 60%),
    linear-gradient(180deg, #1C2026 0%, #171A1F 100%);
  color: #F2EFED; position: relative; overflow: hidden;
}
.gpm-dev { position: absolute; right: 64px; top: 36px; font-size: 200px; font-weight: 800; color: #fff; opacity: .05; line-height: 1; pointer-events: none; user-select: none; }
.gpm-hero-inner { padding: 92px 24px 76px; position: relative; }
.gpm-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .05em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.gpm-badge b { color: #FF6B6E; }
.gpm-hero h1 { font-size: clamp(40px, 5.8vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; color: #fff; margin: 0; max-width: 16ch; }
.gpm-hero h1 em { font-style: normal; background: linear-gradient(90deg, #FF6B6E, #FFB199); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gpm-punch { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; color: #FF6B6E; margin: 18px 0 8px; font-style: italic; }
.gpm-sub { max-width: 58ch; color: #A9A29E; font-size: 17.5px; margin: 0 0 30px; }
.gpm-hero .gpm-ghost { color: #fff !important; border-color: rgba(255,255,255,.25) !important; }
.gpm-hero .gpm-ghost:hover { border-color: #fff !important; }
.gpm-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.gpm-route {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 18px 20px; transition: border-color .15s, background .15s, transform .15s;
}
.gpm-route:hover { border-color: #FF6B6E; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.gpm-who { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #FF9B9D; }
.gpm-route h3 { font-size: 17.5px; font-weight: 800; color: #fff; margin: 5px 0 3px; }
.gpm-route p { margin: 0; font-size: 13.5px; color: #A9A29E; }
.gpm-route .gpm-go { display: block; margin-top: 10px; color: #FF6B6E; }
.gpm-go { font-weight: 700; color: var(--gpb-red); font-size: 14px; }
.gpm-go::after { content: " \2192"; }

/* stats */
.gpm-stats { padding: 0 0 8px; position: relative; z-index: 5; }
.gpm-stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center;
  background:
    radial-gradient(460px 220px at 85% -30%, rgba(206,20,24,.3), transparent 60%),
    linear-gradient(135deg, #20242B, #171A1F);
  border: 1px solid rgba(255,255,255,.09); border-radius: 20px;
  padding: 30px 16px; margin-top: -36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.gpm-st { position: relative; padding: 6px 10px; }
.gpm-st + .gpm-st::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: rgba(255,255,255,.12); }
.gpm-st b { display: block; font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.gpm-st b i { font-style: normal; color: #FF6B6E; font-size: .62em; vertical-align: super; margin-left: 2px; }
.gpm-lb { display: block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #A9A29E; margin-top: 6px; }

/* sections */
.gpm-section { padding: 60px 0; }
.gpm-tight { padding-top: 0; }
.gpm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.gpm-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.gpm-head p { margin: 6px 0 0; color: var(--gpb-muted); }
.gpm-all { font-weight: 700; color: var(--gpb-red); white-space: nowrap; }
.gpm-all::after { content: " \2192"; }

/* courses */
.gpm-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gpm-course {
  border: 1.5px solid var(--gpb-line); border-radius: 16px; background: var(--gpb-paper);
  overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.gpm-course:hover { border-color: var(--gpb-red); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.gpm-cover {
  height: 92px; background: linear-gradient(120deg, #1C2026 0%, #3A2528 55%, #A50F12 130%);
  display: flex; align-items: flex-end; padding: 14px 18px; position: relative; overflow: hidden;
}
.gpm-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px); background-size: 14px 14px; }
.gpm-cvi { position: absolute; right: 12px; bottom: -10px; font-size: 62px; line-height: 1; transform: rotate(-8deg); filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); pointer-events: none; }
.gpm-tag {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; position: relative; z-index: 1;
}
.gpm-cbody { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gpm-cbody h3 { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0; }
.gpm-cbody p { margin: 0; font-size: 13.5px; color: var(--gpb-muted); flex: 1; }

/* classroom band */
.gpm-class-band {
  background:
    radial-gradient(480px 260px at 90% 0%, rgba(206,20,24,.32), transparent 60%),
    linear-gradient(135deg, #1C2026, #242932);
  color: #F2EFED; border-radius: 22px; padding: 44px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; overflow: hidden;
}
.gpm-class-band h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; }
.gpm-punch2 { color: #FF9B9D; font-weight: 700; font-style: italic; margin: 0 0 10px; }
.gpm-d { color: #A9A29E; margin: 0 0 18px; max-width: 52ch; }
.gpm-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.gpm-chips span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.gpm-class-band .gpm-ghost { color: #fff !important; border-color: rgba(255,255,255,.25) !important; }
.gpm-feat { display: grid; gap: 12px; }
.gpm-feat div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; font-weight: 600; color: #fff; }
.gpm-feat span { display: block; font-weight: 400; font-size: 13px; color: #A9A29E; }

/* tutorials */
.gpm-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gpm-lang {
  border: 1.5px solid var(--gpb-line); border-radius: 14px; padding: 20px 14px; text-align: center;
  font-weight: 700; font-size: 15px; background: var(--gpb-paper);
  transition: border-color .15s, transform .15s; display: block;
}
.gpm-lang:hover { border-color: var(--gpb-red); color: var(--gpb-red); transform: translateY(-2px); }
.gpm-lang small { display: block; font-weight: 500; font-size: 11.5px; color: var(--gpb-muted); margin-top: 3px; }

/* video band */
.gpm-vid { background: var(--gpb-tint); border-top: 1px solid var(--gpb-line); border-bottom: 1px solid var(--gpb-line); padding: 60px 0; }
.gpm-founder {
  background:
    radial-gradient(420px 240px at 85% 0%, rgba(206,20,24,.32), transparent 60%),
    linear-gradient(135deg, #1C2026, #242932);
  border-radius: 20px; padding: 38px; color: #fff;
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
  margin: 26px 0 34px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
.gpm-fph { width: 176px; height: 176px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid rgba(255,255,255,.28); box-shadow: 0 0 0 6px rgba(206,20,24,.35); }
.gpm-founder blockquote { margin: 0 0 14px; font-size: clamp(17px, 2.1vw, 22px); font-weight: 600; line-height: 1.5; color: #fff; border: 0; padding: 0; background: none; }
.gpm-founder blockquote::before { content: "\201C"; color: #FF6B6E; font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.gpm-who b { display: block; font-size: 16.5px; }
.gpm-founder .gpm-who span { font-size: 13.5px; color: #A9A29E; }
.gpm-fhook { margin: 12px 0 0; color: #FF9B9D; font-size: 15px; font-weight: 600; font-style: italic; }

.gpm-car { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gpm-car::-webkit-scrollbar { display: none; }
.gpm-track { display: flex; gap: 16px; }
.gpm-pl {
  flex: 0 0 calc(25% - 12px); scroll-snap-align: start;
  background: var(--gpb-paper); border: 1.5px solid var(--gpb-line); border-radius: 14px;
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.gpm-pl:hover { border-color: var(--gpb-red); transform: translateY(-3px); }
.gpm-th { display: block; position: relative; padding-top: 56.25%; background: #0F1114; }
.gpm-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gpm-ct { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.gpm-ply { position: absolute; inset: 0; display: grid; place-items: center; }
.gpm-ply::before {
  content: ""; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); opacity: 0; transform: scale(.7);
  transition: opacity .15s, transform .15s;
}
.gpm-pl:hover .gpm-ply::before { opacity: 1; transform: scale(1); }
.gpm-nm { display: block; padding: 11px 14px 13px; }
.gpm-nm b { font-size: 14px; display: block; line-height: 1.35; }
.gpm-nm span { font-size: 12px; color: var(--gpb-muted); }
.gpm-dots { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.gpm-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gpb-line); transition: background .2s, width .2s; }
.gpm-dots i.gpm-on { background: var(--gpb-red); width: 20px; border-radius: 99px; }

/* reviews */
.gpm-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gpm-rev {
  border: 1.5px solid var(--gpb-line); border-radius: 16px; background: var(--gpb-paper);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s;
}
.gpm-rev:hover { border-color: var(--gpb-red); transform: translateY(-2px); }
.gpm-stars { color: #F5B301; font-size: 15px; letter-spacing: 2.5px; }
.gpm-rev p { margin: 0; font-size: 14.5px; flex: 1; }
.gpm-rwho { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--gpb-line); padding-top: 14px; }
.gpm-ra { width: 42px; height: 42px; border-radius: 50%; background: var(--gpb-chip); display: grid; place-items: center; font-weight: 800; font-size: 13.5px; color: var(--gpb-red); flex: none; }
.gpm-rwho b { display: block; font-size: 14px; }
.gpm-rwho span { display: block; font-size: 12px; color: var(--gpb-muted); }
.gpm-rwho em { color: #1E8E3E; font-weight: 700; font-style: normal; }

/* story + final */
.gpm-story { background: var(--gpb-tint); border-top: 1px solid var(--gpb-line); border-bottom: 1px solid var(--gpb-line); }
.gpm-story .gpb-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding-top: 46px; padding-bottom: 46px; }
.gpm-yr { font-size: 64px; font-weight: 800; color: var(--gpb-red); letter-spacing: -.03em; line-height: 1; }
.gpm-yr small { display: block; font-size: 12.5px; color: var(--gpb-muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.gpm-story p { margin: 0; color: var(--gpb-muted); max-width: 72ch; }
.gpm-story a { font-weight: 700; color: var(--gpb-red); white-space: nowrap; }
.gpm-story a::after { content: " \2192"; }
.gpm-final {
  background:
    radial-gradient(520px 300px at 50% -20%, rgba(206,20,24,.32), transparent 65%),
    linear-gradient(180deg, #1C2026, #171A1F);
  color: #fff; text-align: center; padding: 70px 0;
}
.gpm-final h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: #fff; }
.gpm-final .gpm-ghost { color: #fff !important; border-color: rgba(255,255,255,.25) !important; }

/* responsive */
@media (max-width: 960px) {
  .gpm-routes, .gpm-courses, .gpm-reviews { grid-template-columns: 1fr 1fr; }
  .gpm-langs { grid-template-columns: 1fr 1fr 1fr; }
  .gpm-pl { flex-basis: calc(50% - 8px); }
  .gpm-class-band, .gpm-founder { grid-template-columns: 1fr; }
  .gpm-stats-card { grid-template-columns: 1fr 1fr; gap: 20px 0; padding: 24px 10px; }
  .gpm-st + .gpm-st::before { display: none; }
  .gpm-st:nth-child(2n)::before { display: block; }
  .gpm-story .gpb-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gpm-routes, .gpm-courses, .gpm-reviews { grid-template-columns: 1fr; }
  .gpm-langs { grid-template-columns: 1fr 1fr; }
  .gpm-pl { flex-basis: 100%; }
}
