:root {
  --bg: #0f1023;
  --bg-panel: #171835;
  --text-main: #eff1ff;
  --text-soft: #b9bedf;
  --line: #3f4679;
  --accent: #ff4f8a;
  --accent-2: #54e1ff;
  --accent-3: #ffc857;
  --header-height: 84px;
  --nav-collapse-width: 1100px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% 12%, rgba(84, 225, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 4%, rgba(255, 79, 138, 0.2), transparent 35%),
    var(--bg);
}

body.module-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(84, 225, 255, 0.1), transparent 30%),
    radial-gradient(circle at 85% 4%, rgba(255, 79, 138, 0.11), transparent 35%),
    #080917;
}

.page-unicorn-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.page-unicorn-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 16, 35, 0.12), rgba(15, 16, 35, 0.52)),
    radial-gradient(circle at 50% 24%, rgba(15, 16, 35, 0.04), rgba(15, 16, 35, 0.58) 78%);
}

.page-unicorn-bg canvas,
.page-unicorn-bg iframe,
.page-unicorn-bg > div {
  width: 100% !important;
  height: 100% !important;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.55rem 1rem 0;
  background: transparent;
  pointer-events: none;
}

.navbar {
  width: fit-content;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0.68rem 0.9rem 0.68rem 1.05rem;
  min-height: 3.65rem;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  border: 1px solid rgba(115, 232, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(12, 13, 30, 0.82);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 26px rgba(84, 225, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
  pointer-events: auto;
}

.navbar > * {
  min-width: 0;
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-3);
  white-space: nowrap;
  padding: 0 0.12rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(84, 225, 255, 0.35);
  border-radius: 999px;
  background: rgba(84, 225, 255, 0.08);
  color: var(--text-main);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(255, 200, 87, 0.65);
  background: rgba(255, 200, 87, 0.12);
  transform: translateY(-1px);
}

.nav-toggle-bars {
  display: inline-grid;
  gap: 0.2rem;
}

.nav-toggle-bars span {
  display: block;
  width: 0.95rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.42rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-left: auto;
}

.nav-links li {
  flex: 0 0 auto;
}

.nav-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-main);
  border-color: var(--accent-2);
  background: rgba(84, 225, 255, 0.12);
}

.nav-links a.is-active {
  color: #0f1023;
  border-color: #73e8ff;
  background: linear-gradient(135deg, #73e8ff, #ffc857);
  box-shadow: 0 0 18px rgba(115, 232, 255, 0.45);
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.hero {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2.2rem 1.4rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-inner::before {
  content: none;
}

.hero-kicker {
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffd36d 12%, #ff8fb8 48%, #73e8ff 92%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(115, 232, 255, 0.2);
  animation: moodrun-shimmer 6.5s ease-in-out infinite;
}

@keyframes moodrun-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  line-height: 1.65;
  margin: 1.1rem auto 1.7rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.65rem 1rem;
  border: 2px solid var(--line);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(255, 90, 147, 0.24),
    rgba(255, 141, 119, 0.2)
  );
  color: #ffe8ef;
  border-color: rgba(255, 141, 119, 0.55);
  box-shadow: 0 8px 20px rgba(255, 79, 138, 0.16);
}

.btn-ghost {
  color: #dff8ff;
  background: linear-gradient(
    135deg,
    rgba(84, 225, 255, 0.18),
    rgba(115, 232, 255, 0.12)
  );
  border-color: rgba(115, 232, 255, 0.55);
  box-shadow: 0 8px 20px rgba(84, 225, 255, 0.14);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.section {
  max-width: 1120px;
  margin: 0 auto 1.4rem;
  padding: 2rem 1.25rem 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 0.55rem;
  color: var(--accent-3);
}

.section-subtitle {
  margin: 0;
  color: var(--text-soft);
}

.section-body {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.requirements-journey-layout {
  grid-template-columns: 1fr;
}

.journey-map-card {
  overflow: hidden;
}

.journey-map-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.7rem;
  border: 1px solid rgba(84, 225, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.gap-layout {
  grid-template-columns: 1fr;
}

.gap-card-wide {
  padding-bottom: 1.1rem;
}

.gap-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.gap-block {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(84, 225, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.gap-block h4 {
  margin-top: 0;
}

.stakeholder-layout {
  grid-template-columns: 1fr;
}

.stakeholder-card {
  padding: 1rem;
}

.stakeholder-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.stakeholder-label-row h3 {
  margin: 0;
}

.stakeholder-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 200, 87, 0.5);
  background: rgba(255, 200, 87, 0.12);
  color: #ffe5a8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stakeholder-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(84, 225, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.card {
  border: 2px solid var(--line);
  background: var(--bg-panel);
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  color: var(--accent-2);
}

.card h4 {
  margin: 0.8rem 0 0.4rem;
  color: var(--accent-3);
  font-size: 0.98rem;
}

.card p,
.card li {
  color: var(--text-main);
  line-height: 1.6;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.clean-list {
  margin-top: 0.2rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

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

.note {
  margin-top: 0.8rem;
  padding: 0.5rem 0.6rem;
  border-left: 3px solid var(--accent-3);
  background: rgba(255, 200, 87, 0.1);
  color: #ffe5a8;
  font-size: 0.92rem;
}

.contribution-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.contribution-table th,
.contribution-table td {
  border: 1px solid var(--line);
  padding: 0.6rem;
  vertical-align: top;
  text-align: left;
}

.contribution-table thead th {
  background: rgba(84, 225, 255, 0.14);
  color: var(--accent-2);
}

.contribution-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  border-left: 4px solid var(--accent);
  border-right: 2px solid var(--line);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--bg-panel);
  padding: 0.9rem 1rem;
}

.timeline-item h3 {
  margin: 0 0 0.35rem;
  color: var(--accent-2);
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.team-card {
  position: relative;
  min-height: 198px;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(25, 27, 56, 0.98), rgba(22, 24, 51, 0.96)) padding-box,
    linear-gradient(135deg, rgba(84, 225, 255, 0.8), rgba(255, 79, 138, 0.72)) border-box;
  padding: 1rem 1rem 0.95rem;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(84, 225, 255, 0.14), transparent 72%);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(84, 225, 255, 0.22);
}

.team-card:hover .team-avatar {
  border-color: rgba(255, 200, 87, 0.55);
  color: #fff2c6;
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.18), rgba(84, 225, 255, 0.16));
}

.team-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.team-avatar {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 16px;
  border: 1px solid rgba(84, 225, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(84, 225, 255, 0.14), rgba(255, 79, 138, 0.08)),
    rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.team-card-body {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.team-card h3 {
  margin: 0 0 0.4rem;
  color: var(--text-main);
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.team-id {
  margin: 0 0 0.45rem;
  color: var(--accent-3);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.team-role {
  margin: 0 0 0.65rem;
  max-width: 16ch;
  color: rgba(239, 241, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
}

.team-tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.team-tags span {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  border: 1px solid rgba(84, 225, 255, 0.45);
  background: linear-gradient(135deg, rgba(84, 225, 255, 0.12), rgba(84, 225, 255, 0.05));
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 1.6rem 1rem 2rem;
  border-top: 2px solid var(--line);
}

.section-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.page-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
 }

.section-nav-link,
.section-nav-spacer {
  min-height: 88px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.section-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.section-nav-link:hover,
.section-nav-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: linear-gradient(
    135deg,
    rgba(84, 225, 255, 0.12),
    rgba(255, 79, 138, 0.1)
  );
}

.section-nav-link-next {
  text-align: right;
}

.section-nav-spacer {
  visibility: hidden;
}

.section-nav-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.section-nav-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (max-width: 1100px) {
  .site-header {
    padding: 1.25rem 0.75rem 0;
  }

  .navbar {
    position: relative;
    width: min(100%, 40rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    column-gap: 0.65rem;
    min-height: 4.55rem;
    padding: 0 0.85rem;
    border-radius: 28px;
    transform-origin: top center;
    transition:
      min-height 0.34s cubic-bezier(0.2, 0.9, 0.2, 1),
      padding 0.34s cubic-bezier(0.2, 0.9, 0.2, 1),
      border-radius 0.34s cubic-bezier(0.2, 0.9, 0.2, 1),
      box-shadow 0.34s ease;
  }

  .navbar.nav-open {
    min-height: 4.55rem;
    padding: 0 0.85rem;
    border-radius: 30px;
    animation: island-contract-expand 0.58s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .logo {
    display: inline-flex;
    align-items: center;
    height: 2.8rem;
    min-height: 2.8rem;
    font-size: 0.84rem;
    line-height: 1;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: center;
    height: 2.8rem;
    min-height: 2.8rem;
    line-height: 1;
  }

  .navbar.nav-open .nav-toggle-bars span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .navbar.nav-open .nav-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .nav-toggle-bars span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.72rem);
    left: 0;
    right: 0;
    display: flex;
    width: 100%;
    gap: 0.38rem;
    margin-left: 0;
    flex-direction: column;
    white-space: normal;
    padding: 0;
    height: 0;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-0.75rem) scaleX(0.88) scaleY(0.72);
    transform-origin: top center;
    pointer-events: none;
    border: 0;
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
      rgba(12, 13, 30, 0.88);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(16px) saturate(1.2);
    transition:
      max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.26s ease 0.12s,
      transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
      padding 0.24s ease;
  }

  .navbar.nav-open .nav-links {
    height: auto;
    max-height: 24rem;
    padding: 0.65rem;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: nav-menu-drop 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  }

  .nav-links a {
    display: block;
    font-size: 0.8rem;
    padding: 0.68rem 0.78rem;
    border-radius: 14px;
  }

  @keyframes island-contract-expand {
    0% {
      transform: scaleX(1) scaleY(1);
    }
    24% {
      transform: scaleX(0.74) scaleY(0.78);
      border-radius: 999px;
    }
    46% {
      transform: scaleX(0.9) scaleY(0.9);
      border-radius: 999px;
    }
    74% {
      transform: scaleX(1.018) scaleY(1.012);
    }
    100% {
      transform: scaleX(1) scaleY(1);
    }
  }

  @keyframes nav-menu-drop {
    0% {
      opacity: 0;
      transform: translateY(-0.75rem) scaleX(0.82) scaleY(0.62);
    }
    52% {
      opacity: 1;
      transform: translateY(0.18rem) scaleX(1.018) scaleY(1.035);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 2.5rem 1rem 3rem;
  }

  .hero-inner {
    width: min(100%, 32rem);
    padding: 1.4rem 0.35rem 1.8rem;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.4rem);
    letter-spacing: 0.02em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    margin: 0.95rem auto 1.4rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions a {
    width: min(100%, 20rem);
    font-size: 0.92rem;
  }

  .gap-columns {
    grid-template-columns: 1fr;
  }

  .stakeholder-label-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: unset;
    padding: 1.05rem;
  }

  .team-card h3 {
    font-size: 1.5rem;
  }

  .team-role {
    max-width: none;
    font-size: 0.95rem;
  }

  .team-avatar {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.45rem;
  }

  .section-nav {
    grid-template-columns: 1fr;
  }

  .section-nav-link-next {
    text-align: left;
  }

  .section-nav-spacer {
    display: none;
  }
}
