:root {
  --bg: #f4f8ff;
  --bg-alt: #edf3ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #08111f;
  --surface-dark-soft: #101d33;
  --text: #07101d;
  --muted: #52607a;
  --line: rgba(10, 26, 58, 0.1);
  --line-strong: rgba(94, 153, 255, 0.24);
  --brand: #155dfc;
  --brand-strong: #0e46c7;
  --accent: #68b5ff;
  --glow: rgba(21, 93, 252, 0.2);
  --shadow: 0 24px 70px rgba(8, 20, 45, 0.1);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(104, 181, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(21, 93, 252, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(7, 16, 29, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: white;
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--surface-dark) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: transform 180ms ease;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
}

.nav-cta,
.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 16px 35px rgba(21, 93, 252, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 3rem;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.hero-orb-one {
  top: 5rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(21, 93, 252, 0.14);
}

.hero-orb-two {
  left: -6rem;
  bottom: 2rem;
  width: 18rem;
  height: 18rem;
  background: rgba(104, 181, 255, 0.18);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.eyebrow,
.section-tag,
.card-tag,
.panel-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.hero h1,
.section h2 {
  margin: 0.5rem 0 0;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  max-width: 11ch;
}

.hero-text,
.section-heading p,
.program-card p,
.feature-card p,
.story-card span,
.story-card p,
.about-panel p,
.contact-copy p,
.form-note {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badges span,
.contact-pills a,
.contact-pills span {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(7, 16, 29, 0.05);
}

.hero-panel,
.program-card,
.feature-card,
.story-card,
.about-panel,
.contact-card,
.overview-strip article {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 247, 255, 0.9));
}

.signal-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.signal-grid article {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.signal-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.signal-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.overview-strip {
  padding: 1rem 0 2rem;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.overview-strip article {
  padding: 1.35rem;
}

.overview-strip article span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(21, 93, 252, 0.1);
  color: var(--brand-strong);
  font-weight: 700;
}

.overview-strip h2 {
  margin: 1rem 0 0.45rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.section {
  padding: 5rem 0;
}

.section-grid {
  padding-top: 3rem;
}

.section-dark {
  background:
    radial-gradient(circle at top right, rgba(21, 93, 252, 0.18), transparent 24%),
    linear-gradient(180deg, #08111f 0%, #0d1727 100%);
  color: white;
}

.section-dark .section-tag,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: inherit;
}

.section-lab {
  background:
    radial-gradient(circle at top left, rgba(104, 181, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(237, 243, 255, 0.86));
}

.section-stories {
  background: rgba(255, 255, 255, 0.55);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.narrow {
  max-width: 720px;
}

.split-heading {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: end;
}

.section h2 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
}

.program-grid,
.feature-grid,
.stories-grid {
  display: grid;
  gap: 1.15rem;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(5, 1fr);
}

.stories-grid {
  grid-template-columns: repeat(3, 1fr);
}

.program-card,
.feature-card,
.story-card {
  padding: 1.45rem;
}

.program-card h3,
.feature-card h3,
.about-panel h3 {
  margin: 0.75rem 0 0.55rem;
  font-size: 1.3rem;
  line-height: 1.15;
}

.program-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brand-strong);
  font-weight: 700;
}

.card-civil {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 245, 255, 0.95));
}

.card-tpsc {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.95), rgba(226, 238, 255, 0.95));
}

.card-base {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.95));
}

.card-lab {
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.98), rgba(18, 32, 58, 0.96));
  color: white;
  border-color: rgba(104, 181, 255, 0.18);
}

.card-lab p,
.card-lab a,
.card-lab .card-tag {
  color: rgba(255, 255, 255, 0.86);
}

.feature-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.feature-card-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(104, 181, 255, 0.18);
  box-shadow: none;
}

.feature-card-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-future {
  border-style: dashed;
}

.lab-card {
  position: relative;
  overflow: hidden;
}

.lab-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(104, 181, 255, 0.2);
  filter: blur(12px);
}

.story-card {
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 255, 0.96));
}

.story-card p {
  margin: 0 0 1rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text);
}

.about-shell,
.contact-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.88));
}

.about-panel article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.about-panel article:last-child {
  border-bottom: 0;
}

.contact-section {
  padding-top: 2rem;
}

.contact-copy {
  padding-top: 0.6rem;
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.95));
}

.contact-card label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 26, 58, 0.12);
  background: white;
  color: var(--text);
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(7, 16, 29, 0.08);
  padding-top: 1.3rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .strip-grid,
  .stories-grid,
  .split-heading,
  .about-shell,
  .contact-shell,
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

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

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .program-grid,
  .feature-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .overview-strip article,
  .hero-panel,
  .program-card,
  .feature-card,
  .story-card,
  .about-panel,
  .contact-card {
    padding: 1.2rem;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
  background:
    radial-gradient(circle at top left, rgba(104, 181, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.page-hero-dark {
  background:
    radial-gradient(circle at top right, rgba(21, 93, 252, 0.2), transparent 24%),
    linear-gradient(180deg, #08111f 0%, #0d1727 100%);
  color: white;
}

.page-hero-dark .section-tag,
.page-hero-dark .hero-text,
.page-hero-dark h1,
.page-hero-dark .panel-kicker,
.page-hero-dark .signal-grid strong,
.page-hero-dark .signal-grid span {
  color: inherit;
}

.page-hero-dark .hero-text,
.page-hero-dark .signal-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero-lab {
  background:
    radial-gradient(circle at top left, rgba(104, 181, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 243, 255, 0.95));
}

.page-hero-resources {
  background:
    radial-gradient(circle at top right, rgba(21, 93, 252, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.page-hero-pcs {
  background:
    radial-gradient(circle at top left, rgba(21, 93, 252, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(104, 181, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.page-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 0;
  max-width: 11ch;
}

.hero-panel-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(104, 181, 255, 0.18);
}

.hero-panel-dark .signal-grid article {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(104, 181, 255, 0.16);
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.detail-panel,
.detail-list article {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 1.5rem;
}

.detail-list {
  display: grid;
  gap: 1rem;
}

.detail-list article {
  padding: 1.3rem;
}

.detail-list h3,
.detail-panel h2 {
  margin: 0.35rem 0 0.55rem;
}

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

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.pcs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.resource-card,
.pcs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.45rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.resource-card::after,
.pcs-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(21, 93, 252, 0.09);
}

.resource-type {
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(21, 93, 252, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.resource-card h3,
.pcs-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.25rem;
}

.resource-card p,
.pcs-card p {
  color: var(--muted);
  line-height: 1.7;
}

.pcs-card h3 {
  font-size: 1.6rem;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li::before {
  content: "\\2713";
  display: inline-flex;
  margin-right: 0.55rem;
  color: var(--brand);
  font-weight: 800;
}

.resource-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--brand);
  font-weight: 700;
}

.resource-link[aria-disabled="true"] {
  color: var(--muted);
  background: rgba(7, 16, 29, 0.08);
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .page-hero-grid,
  .detail-layout,
  .feature-grid-2,
  .feature-grid-3,
  .resource-grid,
  .pcs-grid {
    grid-template-columns: 1fr;
  }
}
