/* PGC Engine Parts — Demo Styles */
:root {
  --blue: #2d529e;
  --blue-deep: #1e3a75;
  --blue-mid: #3a63b5;
  --blue-soft: #e8eef8;
  --steel: #1a2332;
  --steel-muted: #4a5568;
  --mist: #f3f5f9;
  --white: #ffffff;
  --line: rgba(45, 82, 158, 0.14);
  --shadow: 0 18px 48px rgba(30, 58, 117, 0.12);
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--steel);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Top bar ——— */
.topbar {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.55rem 0;
}

.topbar a:hover {
  color: var(--white);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  color: var(--steel);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  min-height: max(560px, calc(100svh - 110px));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(20, 40, 80, 0.88) 0%, rgba(45, 82, 158, 0.55) 45%, rgba(20, 40, 80, 0.72) 100%),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  pointer-events: none;
}

.hero__content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}

.hero__brand {
  display: block;
  height: clamp(56px, 9vw, 84px);
  width: auto;
  margin-bottom: 1.4rem;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  opacity: 0;
  animation: rise 0.8s ease 0.25s forwards;
}

.hero__lead {
  font-size: 1.1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.8rem;
  opacity: 0;
  animation: rise 0.8s ease 0.4s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.8s ease 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(30, 58, 117, 0.92), rgba(45, 82, 158, 0.78)),
    url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section--white {
  background: var(--white);
}

.section--soft {
  background:
    linear-gradient(180deg, #eef2f9 0%, #f7f8fb 100%);
}

.section--blue {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(58, 99, 181, 0.35), transparent 50%),
    linear-gradient(160deg, var(--blue-deep), var(--blue));
  color: var(--white);
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.65rem;
}

.section--blue .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.section__head p {
  margin: 0;
  color: var(--steel-muted);
  font-size: 1.05rem;
}

.section--blue .section__head p {
  color: rgba(255, 255, 255, 0.85);
}

/* ——— Stats ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat span {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ——— Product links (interaction containers) ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-link {
  display: grid;
  grid-template-rows: 180px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product-link:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-link__visual {
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-link__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.35), transparent 55%);
}

.product-link__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.product-link h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--blue-deep);
}

.product-link p {
  margin: 0 0 0.9rem;
  color: var(--steel-muted);
  font-size: 0.95rem;
}

.product-link__cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ——— Split ——— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__media {
  min-height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(45, 82, 158, 0.25), rgba(26, 35, 50, 0.2)),
    url("https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.split__copy p {
  color: var(--steel-muted);
  margin: 0 0 1rem;
}

.split__copy ul {
  margin: 1.25rem 0 1.75rem;
}

.split__copy li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--steel);
}

.split__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ——— Industries ——— */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}

.industries li {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ——— Process steps ——— */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process li {
  counter-increment: step;
  padding-top: 0.25rem;
}

.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.process h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.45rem;
}

.process p {
  margin: 0;
  color: var(--steel-muted);
  font-size: 0.95rem;
}

/* ——— Content blocks ——— */
.content-block {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.content-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-block h2 {
  margin-bottom: 0.35rem;
}

.content-block > p,
.content-block .prose p {
  color: var(--steel-muted);
  margin: 0 0 1rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0.5rem;
  color: var(--blue-deep);
}

.prose ul {
  margin: 0.75rem 0 1rem 1.1rem;
  list-style: disc;
  color: var(--steel-muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ——— Blog ——— */
.blog-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.blog-feature__media {
  min-height: 300px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(45, 82, 158, 0.35), rgba(26, 35, 50, 0.25)),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.blog-item:last-child {
  border-bottom: 1px solid var(--line);
}

.blog-item__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.blog-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
}

.blog-item p {
  margin: 0;
  color: var(--steel-muted);
  font-size: 0.95rem;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-detail {
  display: grid;
  gap: 1.5rem;
}

.contact-detail h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.4rem;
}

.contact-detail p,
.contact-detail a {
  margin: 0;
  color: var(--steel);
  font-size: 1.05rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--steel-muted);
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--mist);
  color: var(--steel);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(45, 82, 158, 0.35);
  border-color: var(--blue);
  background: var(--white);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--steel-muted);
}

/* ——— CTA band ——— */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--steel);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .logo img {
  height: 42px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}

.site-footer a {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.demo-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .stats,
  .product-grid,
  .process,
  .industries,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .blog-feature,
  .contact-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .nav a::after {
    display: none;
  }

  .hero {
    min-height: 78vh;
    align-items: center;
  }

  .hero__content {
    padding: 3.5rem 0;
  }

  .stats,
  .product-grid,
  .process,
  .industries,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-item {
    grid-template-columns: 64px 1fr;
  }
}
