/* =====================================================================
   Panel Guard — public site
   Palette taken straight from the logo: oxblood #550001 and ink navy #160959.
   Square corners and heavy weights echo the stacked letterforms of the mark.
   ===================================================================== */

:root {
  /* Palette taken directly from the logo's own two colours */
  --pg-maroon:      #550001;   /* logo "PANEL" */
  --pg-maroon-lift: #7a0f12;
  --pg-navy:        #160959;   /* logo "GUARD" */
  --pg-navy-lift:   #2a1c86;
  --pg-navy-deep:   #0b0630;
  --pg-plum:        #4a0d3f;   /* midpoint of the two brand colours, for a third accent that still reads as "on brand" */
  --pg-plum-lift:   #6d1a5c;
  --pg-badge:       #241282;   /* icon-badge squares — a lifted navy */
  --pg-ink:         #12121d;
  --pg-body:        #4b4b60;
  --pg-line:        #dcdce6;
  --pg-wash:        #f1f1f5;
  --pg-cream:       #f5f0f2;   /* card backgrounds sitting on dark sections */
  --pg-track:       rgba(255,255,255,.18);  /* progress-bar track on dark backgrounds */
  --pg-paper:       #ffffff;
  --pg-live:        #1f7a4d;
  --pg-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --pg-rule: 3px solid var(--pg-navy);
  --pg-shell: min(1180px, 92vw);
  --pg-step: clamp(2.4rem, 6vw, 5.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pg-paper);
  color: var(--pg-body);
  font-family: 'Almarai', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .pg-display {
  font-family: 'Noto Kufi Arabic', 'Archivo', system-ui, sans-serif;
  color: var(--pg-ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem);  font-weight: 700; }

/* Technical / numeric text: version numbers, status labels, tech tags, prices */
.pg-mono { font-family: var(--pg-mono); }

p { max-width: 68ch; }
a { color: var(--pg-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pg-maroon); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--pg-maroon);
  outline-offset: 2px;
}

.pg-shell { width: var(--pg-shell); margin-inline: auto; }
.pg-section { padding-block: var(--pg-step); }
.pg-section--wash { background: var(--pg-wash); }
.pg-section--navy { background: var(--pg-navy); color: #d8d6ee; }
.pg-section--navy h2, .pg-section--navy h3 { color: #fff; }

/* Section heading: a short oxblood slab instead of a floating label */
.pg-head { margin-bottom: 2.2rem; }
.pg-head::before {
  content: '';
  display: block;
  width: 56px;
  height: 8px;
  background: var(--pg-maroon);
  margin-bottom: 1.1rem;
}
.pg-head p { color: var(--pg-body); margin: 0; }
.pg-section--navy .pg-head p { color: #b9b5dd; }

/* ---------------- Header ---------------- */
.pg-topbar {
  background: var(--pg-navy);
  color: #cfcbe8;
  font-size: .85rem;
  padding-block: .45rem;
}
.pg-topbar a { color: #fff; text-decoration: none; }
.pg-topbar .pg-shell { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

.pg-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--pg-paper);
  border-bottom: var(--pg-rule);
}
.pg-nav .pg-shell { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.pg-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.pg-brand img { height: 52px; width: auto; display: block; }
.pg-brand span {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 800;
  color: var(--pg-navy);
  font-size: 1.02rem;
  line-height: 1.25;
}
.pg-brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--pg-maroon); }

.pg-menu { display: flex; gap: .25rem; margin-inline-start: auto; align-items: center; list-style: none; padding: 0; margin-block: 0; }
.pg-menu a {
  display: block;
  padding: .55rem .8rem;
  color: var(--pg-ink);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.pg-menu a:hover, .pg-menu a[aria-current='page'] {
  color: var(--pg-maroon);
  border-bottom-color: var(--pg-maroon);
}
.pg-nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: var(--pg-navy);
  color: #fff;
  border: 0;
  padding: .5rem .8rem;
  font-size: 1.1rem;
}

/* ---------------- Buttons ---------------- */
.pg-btn {
  display: inline-block;
  padding: .78rem 1.6rem;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pg-btn--solid  { background: var(--pg-maroon); color: #fff; }
.pg-btn--solid:hover  { background: var(--pg-maroon-lift); color: #fff; }
.pg-btn--navy   { background: var(--pg-navy); color: #fff; }
.pg-btn--navy:hover { background: var(--pg-navy-lift); color: #fff; }
.pg-btn--ghost  { border-color: currentColor; color: inherit; background: transparent; }
.pg-btn--ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.pg-btn--sm { padding: .45rem 1rem; font-size: .85rem; }

/* ---------------- Hero: diagonal wine → teal split, matched to the reference ---------------- */
.pg-hero {
  background: linear-gradient(100deg,
    var(--pg-navy) 0%, var(--pg-navy) 47%,
    var(--pg-maroon) 49%, var(--pg-maroon) 100%);
  color: #ded9f5;
  position: relative;
  overflow: hidden;
}

/* The vertical stack of pill shapes from the reference hero, redrawn as decoration */
.pg-hero-pills {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 38%;
  width: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: .5;
  pointer-events: none;
}
.pg-hero-pills span { display: block; height: 22px; border-radius: 999px; background: rgba(255,255,255,.16); }
.pg-hero-pills span:nth-child(3n)   { width: 60%; }
.pg-hero-pills span:nth-child(3n+1) { width: 100%; }
.pg-hero-pills span:nth-child(3n+2) { width: 78%; margin-inline-start: 12%; }

.pg-hero .pg-shell { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5.5rem); }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.pg-hero h1 { color: #fff; }
.pg-hero p.pg-lead { color: #ede7f5; font-size: 1.14rem; max-width: 46ch; }
.pg-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------------- Console mockup: the hero's proof-of-work moment ---------------- */
.pg-console {
  background: var(--pg-navy-deep);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.55);
  font-family: var(--pg-mono);
  border-radius: 2px;
  overflow: hidden;
}
.pg-console-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .65rem .95rem;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.pg-console-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pg-console-title { margin-inline-start: .6rem; font-size: .72rem; color: #8b85b8; }
.pg-console-body { padding: 1.15rem 1.25rem 1.35rem; font-size: .82rem; }
.pg-console-line {
  margin: 0 0 .65rem;
  color: #9791c4;
  opacity: 0;
  animation: pg-node-in .4s ease forwards;
}
.pg-console-line:last-child { margin-bottom: 0; }
.pg-console-prompt { color: #4ade80; margin-inline-end: .55rem; }
.pg-console-cmd { color: #e7e4f7; }
.pg-console-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .3rem 0;
  color: #d7d3f0;
}
.pg-console-row b { margin-inline-start: auto; color: #fff; font-weight: 600; }
.pg-console-cursor {
  display: inline-block; width: 7px; height: 1em;
  background: #4ade80; vertical-align: text-bottom;
  animation: pg-blink 1s steps(1) infinite;
}
.pg-console-line:nth-child(1) { animation-delay: .1s; }
.pg-console-line:nth-child(2) { animation-delay: .3s; }
.pg-console-line:nth-child(3) { animation-delay: .45s; }
.pg-console-line:nth-child(4) { animation-delay: .6s; }
.pg-console-line:nth-child(5) { animation-delay: .75s; }
.pg-console-line:nth-child(6) { animation-delay: .9s; }
.pg-console-line:nth-child(7) { animation-delay: 1.05s; }
.pg-console-line:nth-child(8) { animation-delay: 1.2s; }

/* Live pulse indicator — one clean ring ping instead of a static dot */
.pg-pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.pg-pulse-dot::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: pg-pulse 2.2s ease-out infinite;
}

@keyframes pg-node-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pg-blink   { 50% { opacity: 0; } }
@keyframes pg-pulse   { 0% { transform: scale(.6); opacity: .85; } 100% { transform: scale(2.1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pg-console-line { animation: none; opacity: 1; }
  .pg-console-cursor, .pg-pulse-dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Trusted-by strip ---------------- */
.pg-logos-strip { padding-block: 1.7rem; border-bottom: 1px solid var(--pg-line); background: var(--pg-paper); }
.pg-logos-label {
  text-align: center; margin: 0 0 1rem;
  font-family: var(--pg-mono);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pg-body);
}
.pg-logos { display: flex; justify-content: center; align-items: center; gap: 2.6rem; flex-wrap: wrap; }
.pg-logo-chip {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 800; font-size: 1.05rem;
  color: #b9b9c9; letter-spacing: .01em;
  transition: color .15s ease;
}
.pg-logo-chip:hover { color: var(--pg-navy); }

/* ---------------- Services: Bento layout ---------------- */
.pg-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--pg-line); border: 1px solid var(--pg-line); }
.pg-service {
  background: var(--pg-paper);
  padding: 1.9rem 1.6rem;
  border-block-start: 4px solid transparent;
  transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease;
}
.pg-service:hover { border-block-start-color: var(--pg-maroon); transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(18,18,29,.3); position: relative; z-index: 1; }
.pg-service i { font-size: 1.9rem; color: var(--pg-navy); display: block; margin-bottom: .9rem; }
.pg-service h3 { margin-bottom: .45rem; }
.pg-service p { font-size: .95rem; margin: 0 0 1rem; }
.pg-service a { font-weight: 700; font-size: .9rem; text-decoration: none; border-bottom: 2px solid var(--pg-maroon); padding-bottom: 2px; }

/* Bento variant: an uneven grid instead of six identical tiles */
.pg-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); }
.pg-bento .pg-service:nth-child(1) {
  grid-column: 1 / 4; grid-row: 1 / 3;
  background: var(--pg-navy); color: #d8d6ee;
  padding: 2.3rem 1.9rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-block-start-color: transparent;
}
.pg-bento .pg-service:nth-child(1):hover { border-block-start-color: transparent; box-shadow: 0 24px 46px -20px rgba(11,6,32,.5); }
.pg-bento .pg-service:nth-child(1) i { color: #fff; font-size: 2.4rem; }
.pg-bento .pg-service:nth-child(1) h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.pg-bento .pg-service:nth-child(1) p { color: #c7c2e8; max-width: 34ch; }
.pg-bento .pg-service:nth-child(1) a { color: #fff; border-bottom-color: #fff; }
.pg-bento .pg-service:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.pg-bento .pg-service:nth-child(3) { grid-column: 4 / 7; grid-row: 2 / 3; }
.pg-bento .pg-service:nth-child(4),
.pg-bento .pg-service:nth-child(5),
.pg-bento .pg-service:nth-child(6) { grid-column: span 2; grid-row: 3 / 4; }
@media (max-width: 900px) {
  .pg-bento { grid-template-columns: 1fr; }
  .pg-bento .pg-service { grid-column: auto !important; grid-row: auto !important; }
}

/* ---------------- Numbered feature strip (01 / 02 / 03 / 04) ---------------- */
.pg-numbered { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.8rem; margin-top: 1rem; }
.pg-numbered-item { text-align: center; }
.pg-numbered-item .pg-num {
  font-family: var(--pg-mono);
  font-size: .95rem;
  color: var(--pg-maroon);
  letter-spacing: .08em;
  margin-bottom: .7rem;
  display: block;
}
.pg-numbered-item .pg-num-visual {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--pg-navy), var(--pg-navy-lift));
  display: grid; place-items: center;
  margin-bottom: .9rem;
  overflow: hidden;
  position: relative;
}
.pg-numbered-item .pg-num-visual i { font-size: 2.1rem; color: rgba(255,255,255,.92); }
.pg-numbered-item .pg-num-visual::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 16px 16px;
}
.pg-numbered-item h3 { font-size: 1rem; }

/* ---------------- Icon-badge list (goals / values) ---------------- */
.pg-icon-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.8rem; }
.pg-icon-list li { display: flex; align-items: flex-start; gap: 1rem; }
.pg-icon-list .pg-badge {
  flex: none; width: 46px; height: 46px;
  background: var(--pg-badge);
  display: grid; place-items: center;
  border-radius: 3px;
  color: #fff; font-size: 1.15rem;
}
.pg-icon-list p { margin: 0; min-width: 0; }
.pg-icon-list strong { color: inherit; }
.pg-section--navy .pg-icon-list p { color: #d6cfe5; }

/* ---------------- Capsule trio: the overlapping stadium-shaped visual motif ---------------- */
.pg-capsule-trio { display: flex; justify-content: center; gap: 0; margin-block: 2rem; }
.pg-capsule {
  width: 150px; height: 220px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #fff; font-size: 2.2rem;
  margin-inline-start: -28px;
  border: 4px solid var(--pg-navy);
  transition: transform .25s ease;
  position: relative;
}
.pg-capsule:first-child { margin-inline-start: 0; }
.pg-capsule:hover { transform: translateY(-10px); z-index: 2; }
.pg-capsule:nth-child(1) { background: linear-gradient(160deg, var(--pg-maroon), var(--pg-maroon-lift)); }
.pg-capsule:nth-child(2) { background: linear-gradient(160deg, var(--pg-plum-lift), var(--pg-plum)); z-index: 1; }
.pg-capsule:nth-child(3) { background: linear-gradient(160deg, var(--pg-badge), var(--pg-navy-lift)); }
@media (max-width: 620px) {
  .pg-capsule { width: 110px; height: 170px; }
  .pg-capsule:not(:first-child) { margin-inline-start: -20px; }
}

/* ---------------- Diagonal banner ---------------- */
.pg-diagonal-banner {
  position: relative;
  background: linear-gradient(120deg, var(--pg-plum) 0%, var(--pg-navy) 75%);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(5rem, 10vw, 7.5rem);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  overflow: hidden;
}
.pg-diagonal-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.pg-diagonal-banner .pg-shell { position: relative; z-index: 1; max-width: 62ch; }
.pg-diagonal-banner h2 { color: #fff; }
.pg-diagonal-banner p { color: #e4e0f2; font-size: 1.05rem; }

/* ---------------- Rich stats: donut + progress bars ---------------- */
.pg-stats-rich { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.pg-donut-card { background: var(--pg-cream); color: var(--pg-ink); padding: 2rem 1.6rem; text-align: center; border-radius: 4px; }
.pg-donut { width: 150px; height: 150px; margin: 0 auto 1rem; }
.pg-donut circle { fill: none; stroke-width: 12; }
.pg-donut .pg-donut-track { stroke: var(--pg-line); }
.pg-donut .pg-donut-fill {
  stroke: var(--pg-maroon);
  stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  stroke-dasharray: 408; /* 2πr for r=65 */
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.3,1);
}
.pg-donut-card strong { display: block; font-family: var(--pg-mono); font-size: 1.6rem; margin-bottom: .4rem; }
.pg-donut-card p { font-size: .9rem; margin: 0; }

.pg-progress-group { display: flex; flex-direction: column; gap: 1.8rem; }
.pg-progress-item p { margin: 0 0 .6rem; color: #e4e0f2; font-size: .95rem; }
.pg-progress-item .pg-progress-num { font-family: var(--pg-mono); color: #fff; font-weight: 700; }
.pg-progress-track { height: 8px; background: var(--pg-track); border-radius: 999px; overflow: hidden; }
.pg-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--pg-maroon-lift), var(--pg-maroon));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.2,.7,.3,1);
}

/* ---------------- Diagonal CTA banner near the footer ---------------- */
.pg-cta-diagonal {
  position: relative;
  background: var(--pg-navy);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.pg-cta-diagonal::after {
  content: '';
  position: absolute; inset-inline: 0; bottom: 0; height: 14px;
  background: linear-gradient(100deg, var(--pg-maroon) 0%, var(--pg-maroon-lift) 100%);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}
.pg-cta-diagonal h2 { color: #fff; margin-bottom: .4rem; }
.pg-cta-diagonal p { color: #d6cfe5; margin: 0; }
.pg-cta-diagonal .pg-shell { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.pg-cta-diagonal .pg-shell > div { min-width: 0; flex: 1 1 320px; }
.pg-cta-diagonal .pg-btn { margin-inline-start: auto; }

@media (prefers-reduced-motion: reduce) {
  .pg-capsule { transition: none; }
  .pg-donut-fill, .pg-progress-fill { transition: none; }
}
.pg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.pg-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pg-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Stats ---------------- */
.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.pg-stat strong {
  display: block;
  font-family: var(--pg-mono);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.pg-stat span { font-size: .92rem; color: #b6b1da; }

/* ---------------- Plans matrix ---------------- */
.pg-tier { margin-bottom: 2.8rem; }
.pg-tier > h3 { border-inline-start: 8px solid var(--pg-navy); padding-inline-start: .8rem; margin-bottom: 1.1rem; }
.pg-matrix-wrap { overflow-x: auto; border: 1px solid var(--pg-line); }
.pg-matrix { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--pg-paper); }
.pg-matrix th, .pg-matrix td { padding: .85rem 1rem; text-align: start; border-bottom: 1px solid var(--pg-line); font-size: .93rem; transition: background-color .15s ease; }
.pg-matrix thead th { background: var(--pg-navy); color: #fff; font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 700; white-space: nowrap; }
.pg-matrix tbody th { font-weight: 700; color: var(--pg-ink); background: var(--pg-wash); white-space: nowrap; }
.pg-matrix .pg-price { font-family: var(--pg-mono); font-weight: 700; color: var(--pg-maroon); font-size: 1.2rem; }
.pg-matrix .pg-cycle { display: block; font-size: .78rem; color: var(--pg-body); font-weight: 400; font-family: 'Almarai', sans-serif; }
.pg-flag {
  display: inline-block; background: var(--pg-maroon); color: #fff;
  font-family: var(--pg-mono); font-size: .66rem; letter-spacing: .04em;
  padding: .15rem .5rem; margin-inline-start: .4rem; vertical-align: middle;
}
.pg-matrix tbody tr:hover td, .pg-matrix tbody tr:hover th { background: #f6f5fb; }

/* Featured column reads as a raised card cut into the table, not just a small badge */
.pg-matrix th.is-featured, .pg-matrix td.is-featured { background: #f2effa; position: relative; }
.pg-matrix thead th.is-featured { background: var(--pg-maroon); }
.pg-matrix tbody tr:hover td.is-featured, .pg-matrix tbody tr:hover th.is-featured { background: #ebe6f7; }
.pg-matrix td.is-featured .pg-btn { width: 100%; text-align: center; }

/* ---------------- Work ---------------- */
.pg-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.pg-filters a {
  padding: .4rem 1rem;
  border: 2px solid var(--pg-line);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--pg-ink);
}
.pg-filters a[aria-current='true'] { border-color: var(--pg-navy); background: var(--pg-navy); color: #fff; }

.pg-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.pg-work article { border: 1px solid var(--pg-line); background: var(--pg-paper); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pg-work article:hover { transform: translateY(-5px); box-shadow: 0 20px 38px -22px rgba(18,18,29,.3); border-color: var(--pg-navy); }
.pg-work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--pg-wash); }
.pg-work .pg-work-body { padding: 1.2rem 1.25rem 1.4rem; }
.pg-work h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.pg-work .pg-meta { font-size: .82rem; color: var(--pg-maroon); font-weight: 700; }
.pg-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.pg-tags span { font-family: var(--pg-mono); font-size: .72rem; background: var(--pg-wash); padding: .2rem .55rem; color: var(--pg-ink); }

/* ---------------- Testimonials ---------------- */
.pg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.pg-quote { border-inline-start: 6px solid var(--pg-maroon); padding: 0 0 0 1.2rem; padding-inline-start: 1.2rem; transition: border-color .2s ease; }
.pg-quote:hover { border-inline-start-color: var(--pg-navy); }
.pg-quote blockquote { margin: 0 0 .9rem; font-size: 1.02rem; color: var(--pg-ink); }
.pg-quote cite { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--pg-navy); }
.pg-quote small { display: block; color: var(--pg-body); font-size: .82rem; }

/* ---------------- Blog ---------------- */
.pg-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.pg-post { border-top: 4px solid var(--pg-navy); padding-top: 1.1rem; }
.pg-post time { font-size: .8rem; color: var(--pg-maroon); font-weight: 700; }
.pg-post h3 { font-size: 1.12rem; margin: .3rem 0 .5rem; }
.pg-post h3 a { color: var(--pg-ink); text-decoration: none; }
.pg-post h3 a:hover { color: var(--pg-maroon); }
.pg-article { max-width: 72ch; }
.pg-article img { margin-block: 1.4rem; }
.pg-article h2 { margin-top: 2rem; }
.pg-article blockquote { border-inline-start: 5px solid var(--pg-maroon); margin-inline: 0; padding-inline-start: 1.1rem; color: var(--pg-ink); }
.pg-article pre { background: var(--pg-ink); color: #eee; padding: 1rem; overflow-x: auto; }

/* ---------------- Forms ---------------- */
.pg-field { margin-bottom: 1.05rem; }
.pg-field label { display: block; font-weight: 700; font-size: .88rem; color: var(--pg-ink); margin-bottom: .35rem; }
.pg-field input, .pg-field select, .pg-field textarea {
  width: 100%;
  padding: .72rem .85rem;
  border: 2px solid var(--pg-line);
  background: var(--pg-paper);
  font: inherit;
  font-size: .95rem;
  color: var(--pg-ink);
}
.pg-field input:focus, .pg-field textarea:focus, .pg-field select:focus { border-color: var(--pg-navy); outline: none; }
.pg-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; }

.pg-alert { padding: .85rem 1.1rem; border-inline-start: 6px solid; font-size: .92rem; margin-bottom: 1.2rem; }
.pg-alert--success { border-color: var(--pg-live); background: #eaf6f0; color: #14532d; }
.pg-alert--danger  { border-color: var(--pg-maroon); background: #fbeceb; color: #6b1414; }

/* ---------------- Contact ---------------- */
.pg-contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; }
.pg-contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.pg-contact-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--pg-line); font-size: .93rem; }
.pg-contact-list i { color: var(--pg-maroon); font-size: 1.1rem; }
.pg-map { border: 1px solid var(--pg-line); width: 100%; height: 300px; }

/* ---------------- Footer ---------------- */
.pg-footer { background: var(--pg-ink); color: #a9a9c0; padding-block: 3rem 1.5rem; font-size: .92rem; }
.pg-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.pg-footer a { color: #cfcfe2; text-decoration: none; }
.pg-footer a:hover { color: #fff; }
.pg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.pg-footer ul { list-style: none; padding: 0; margin: 0; }
.pg-footer li { padding: .22rem 0; }
.pg-footer-mark { background: #fff; padding: .6rem; display: inline-block; margin-bottom: 1rem; }
.pg-footer-mark img { height: 58px; }
.pg-social { display: flex; gap: .5rem; margin-top: .9rem; }
.pg-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #3a3a55; }
.pg-social a:hover { background: var(--pg-maroon); border-color: var(--pg-maroon); color: #fff; }
.pg-colophon { border-top: 1px solid #2a2a40; margin-top: 2.2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* WhatsApp trigger */
.pg-whatsapp {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  background: #1f9d55;
  color: #fff;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.pg-whatsapp:hover { background: #17804a; color: #fff; }

/* ---------------- Page header for inner pages ---------------- */
.pg-page-head { background: var(--pg-navy); color: #fff; padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.pg-page-head h1 { color: #fff; margin: 0; }
.pg-crumbs { font-size: .85rem; color: #b7b2dd; margin-top: .5rem; }
.pg-crumbs a { color: #fff; text-decoration: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .pg-hero-grid, .pg-contact-grid { grid-template-columns: 1fr; }
  .pg-hero::after { display: none; }
  .pg-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pg-nav-toggle { display: block; }
  .pg-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--pg-paper);
    border-bottom: var(--pg-rule);
    flex-direction: column;
    align-items: stretch;
    padding: .6rem 4%;
  }
  .pg-menu.is-open { display: flex; }
  .pg-nav .pg-shell { position: relative; }
  .pg-footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Courses ---------------- */
.pg-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.pg-course-card {
  position: relative;
  border: 1px solid var(--pg-line);
  background: var(--pg-paper);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pg-course-card:hover { transform: translateY(-5px); box-shadow: 0 20px 38px -22px rgba(18,18,29,.3); border-color: var(--pg-navy); }
.pg-course-media { position: relative; }
.pg-course-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--pg-wash); display: block; }
.pg-course-flag { position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 1; }
.pg-course-level {
  position: absolute; bottom: .7rem; inset-inline-end: .7rem;
  font-family: var(--pg-mono); font-size: .7rem; letter-spacing: .03em;
  padding: .2rem .55rem; border-radius: 2px; color: #fff;
}
.pg-course-level--beginner     { background: #1f7a4d; }
.pg-course-level--intermediate { background: #a76a00; }
.pg-course-level--advanced     { background: var(--pg-maroon); }
.pg-course-body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.pg-course-body h3 { font-size: 1.08rem; margin: 0; }
.pg-course-body h3 a { color: var(--pg-ink); text-decoration: none; }
.pg-course-body h3 a:hover { color: var(--pg-maroon); }
.pg-course-body p { font-size: .92rem; margin: 0; }
.pg-course-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; color: var(--pg-body); }
.pg-course-meta i { color: var(--pg-navy); margin-inline-end: .3rem; }
.pg-course-footer { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--pg-line); display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pg-course-footer .pg-price { font-size: 1.05rem; font-weight: 700; color: var(--pg-maroon); }
.pg-course-sidebar { background: var(--pg-wash); border: 1px solid var(--pg-line); padding: 1.4rem 1.3rem; position: sticky; top: 96px; }

/* ---------------- Extra motion: image zoom on card hover ---------------- */
.pg-work img, .pg-course-media img { transition: transform .4s ease; }
.pg-work article:hover img, .pg-course-card:hover .pg-course-media img { transform: scale(1.06); }
.pg-work, .pg-course-card .pg-course-media { overflow: hidden; }
.pg-course-media { overflow: hidden; }

/* Animated underline on the main nav, replacing the static border */
.pg-menu a { position: relative; border-bottom-color: transparent !important; }
.pg-menu a::after {
  content: '';
  position: absolute; inset-inline: .8rem; bottom: .35rem;
  height: 3px; background: var(--pg-maroon);
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.pg-menu a:hover::after, .pg-menu a[aria-current='page']::after { transform: scaleX(1); }

/* Buttons: a touch of lift instead of a flat color swap */
.pg-btn { transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pg-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(18,18,29,.35); }
.pg-btn:active { transform: translateY(0); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .pg-work img, .pg-course-media img, .pg-menu a::after, .pg-btn { transition: none; }
  .pg-work article:hover img, .pg-course-card:hover .pg-course-media img { transform: none; }
  .pg-btn:hover { transform: none; box-shadow: none; }
}

/* ---------------- Hero: entrance animation + floating decoration ---------------- */
.pg-hero-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.pg-hero-in--console { transform: translateY(22px) scale(.97); transition-delay: .15s; }
body.pg-loaded .pg-hero-in { opacity: 1; transform: none; }

/* Continuous gentle float once the entrance animation has settled */
.pg-float-y { animation: pg-float-y 5s ease-in-out .9s infinite; }
@keyframes pg-float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.pg-hero-floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.pg-hero-matrix { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .32; pointer-events: none; }
.pg-float {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%);
  animation: pg-float-drift ease-in-out infinite;
}
.pg-float--1 { width: 220px; height: 220px; top: 8%;  inset-inline-start: 6%;  animation-duration: 9s; }
.pg-float--2 { width: 140px; height: 140px; bottom: 12%; inset-inline-start: 42%; animation-duration: 7s; animation-delay: 1.2s; }
.pg-float--3 { width: 100px; height: 100px; top: 55%;  inset-inline-end: 8%;   animation-duration: 8s; animation-delay: .6s; }
@keyframes pg-float-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(12px, -18px); }
}

/* ---------------- Trusted-by marquee ---------------- */
.pg-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pg-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.6rem;
  align-items: center;
  animation: pg-marquee 28s linear infinite;
}
.pg-marquee:hover .pg-marquee-track { animation-play-state: paused; }
@keyframes pg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}
[dir="rtl"] .pg-marquee-track { animation-name: pg-marquee-rtl; }
@keyframes pg-marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(25%); }
}

/* ---------------- Numbered strip: a little life on hover ---------------- */
.pg-numbered-item .pg-num-visual { transition: transform .35s ease, box-shadow .35s ease; }
.pg-numbered-item:hover .pg-num-visual { transform: translateY(-6px) rotate(-3deg) scale(1.05); box-shadow: 0 16px 30px -14px rgba(18,18,29,.4); }
.pg-numbered-item:hover .pg-num-visual i { animation: pg-icon-pop .4s ease; }
@keyframes pg-icon-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-hero-in { opacity: 1; transform: none; transition: none; }
  .pg-float-y, .pg-float { animation: none; }
  .pg-marquee-track { animation: none; }
  .pg-marquee { overflow-x: auto; }
  .pg-numbered-item .pg-num-visual, .pg-numbered-item:hover .pg-num-visual i { transition: none; animation: none; transform: none; }
}
