:root {
  --blue: #173a5e;
  --blue-dark: #0b1f33;
  --purple: #1f2a37;
  --red: #2f6f73;
  --yellow: #b08d57;
  --green: #3f6b5f;
  --ink: #162033;
  --charcoal: #0e1621;
  --soft-black: #17212f;
  --muted: #64748b;
  --line: #d9e1ea;
  --surface: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(11, 31, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 16px 6%;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  transition:
    min-height 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  min-height: 76px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(230, 232, 239, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 168px;
  flex: 0 0 auto;
}

.site-header:not(.is-scrolled) .brand img {
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  opacity: 0.92;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(47, 111, 115, 0.24);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr);
  align-items: center;
  min-height: 820px;
  padding: 132px 6% 80px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 31, 51, 0.94) 0%, rgba(11, 31, 51, 0.78) 43%, rgba(11, 31, 51, 0.2) 78%),
    url("assets/images/pi-global-hero.jpg") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.hero-social {
  position: absolute;
  top: 46%;
  left: 28px;
  z-index: 2;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.hero-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.program-section .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  color: var(--white);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.header-cta:hover,
.whatsapp-link:hover,
.package-card a:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 18px 34px rgba(47, 111, 115, 0.26);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.manifest {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 34px 6%;
  color: var(--white);
  background: var(--red);
  text-align: center;
}

.manifest p {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(28px, 4.7vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: 108px 6%;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  background: var(--white);
}

.intro-visual {
  position: relative;
  min-height: 440px;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.04);
}

.intro-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.48));
  content: "";
}

.intro-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: inline-grid;
  gap: 2px;
  padding: 18px 22px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.78);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.intro-badge span {
  color: var(--yellow);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.intro-badge strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.intro-copy h2,
.section-heading h2,
.contact-copy h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy p,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.intro-stats div {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.intro-stats span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.why-section {
  background: var(--surface);
}

.section-heading {
  max-width: 890px;
  margin: 0 auto 52px;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.why-card {
  min-height: 286px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.why-card:hover {
  border-color: rgba(47, 111, 115, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.why-card img {
  width: 74px;
  height: 74px;
  margin-bottom: 24px;
}

.why-card h3,
.timeline-step h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.18;
  font-weight: 900;
}

.why-card p,
.timeline-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  font-weight: 600;
}

.program-section {
  padding: 112px 6%;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.96), rgba(14, 22, 33, 0.94)),
    var(--charcoal);
}

.section-heading.light h2 {
  color: var(--white);
}

.section-heading.light p {
  color: rgba(255, 255, 255, 0.72);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.package-card {
  display: flex;
  flex-direction: column;
  min-height: 550px;
  padding: 30px;
  color: var(--white);
  background: #17212f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.package-card.featured {
  background: var(--blue);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 22px 60px rgba(23, 58, 94, 0.3);
}

.package-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
}

.package-top span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.package-card h3 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.package-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.72;
  font-weight: 600;
}

.package-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.package-card li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  border-radius: 999px;
  content: "";
}

.package-card.featured li::before {
  background: var(--yellow);
}

.package-card strong {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  color: var(--yellow);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.package-card a {
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 13px 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  border-top: 2px solid var(--line);
}

.timeline-step {
  position: relative;
  padding: 38px 24px 0;
}

.timeline-step::before {
  position: absolute;
  top: -10px;
  left: 24px;
  width: 18px;
  height: 18px;
  background: var(--red);
  border: 4px solid var(--white);
  border-radius: 999px;
  content: "";
}

.timeline-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.quote-section {
  padding: 90px 6%;
  color: var(--white);
  background: var(--blue);
  text-align: center;
}

.quote-section p {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(26px, 3.8vw, 52px);
  line-height: 1.14;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-section strong {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.76fr);
  gap: 56px;
  padding: 110px 6%;
  background: var(--surface);
}

.contact-copy {
  max-width: 720px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 0 22px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(23, 58, 94, 0.14);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-note.is-success {
  padding: 12px 14px;
  color: #234b43;
  background: rgba(63, 107, 95, 0.14);
  border: 1px solid rgba(63, 107, 95, 0.32);
  border-radius: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  padding: 42px 6%;
  color: var(--white);
  background: #0b111a;
}

.site-footer img {
  width: 160px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer strong {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.35);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

.why-card,
.package-card,
.timeline-step {
  opacity: 0;
  transform: translateY(16px);
}

.why-card.is-visible,
.package-card.is-visible,
.timeline-step.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

@media (max-width: 1180px) {
  .hero,
  .intro-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 126px;
  }

  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    min-height: 76px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 6% 28px;
    color: var(--ink);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-cta {
    display: none;
  }

  .site-header:not(.is-scrolled) .brand img {
    filter: none;
  }

  .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .hero-social {
    display: none;
  }

  .why-grid,
  .timeline,
  .intro-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    gap: 18px;
    border-top: 0;
  }

  .timeline-step {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .timeline-step::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 142px;
  }

  .hero {
    min-height: auto;
    padding: 116px 5% 58px;
    background-position: 61% center;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .whatsapp-link {
    width: 100%;
  }

  .section,
  .program-section,
  .contact-section {
    padding: 78px 5%;
  }

  .manifest {
    min-height: 132px;
  }

  .intro-visual {
    min-height: 360px;
  }

  .intro-visual img {
    min-height: 360px;
  }

  .intro-badge {
    bottom: 18px;
    left: 18px;
  }

  .why-grid,
  .package-grid,
  .timeline,
  .intro-stats {
    grid-template-columns: 1fr;
  }

  .package-card {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
