:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --primary: #0f4c81;
  --primary-dark: #0b395f;
  --text: #1a1f2b;
  --muted: #5b6375;
  --border: #dbe1ea;
  --success: #1d7a43;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes motion-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.hero {
  background: linear-gradient(135deg, #0f4c81, #1e6ba8);
  color: #fff;
  padding: 1rem 1.2rem 4rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-content {
  max-width: 1050px;
  margin: 3rem auto 0;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.25;
}

.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.93);
}

.problem-solution {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .problem-solution {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.ps-block {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.ps-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.ps-block p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.hero .problem-solution + .hero-actions {
  margin-top: 0.25rem;
}

.hero p {
  max-width: 760px;
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid transparent;
  background: #fff;
  color: var(--primary-dark);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

main {
  max-width: 1050px;
  margin: -2rem auto 2rem;
  padding: 0 1rem;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.section:hover {
  box-shadow: 0 8px 28px rgba(15, 76, 129, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

#role-filter {
  width: min(340px, 100%);
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: #edf3fb;
  color: var(--primary-dark);
  border: 1px solid #ccdff5;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: #a8c8eb;
}

#what-this-is.is-visible .pill {
  animation: motion-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#what-this-is.is-visible .pill:nth-child(1) {
  animation-delay: 0.04s;
}

#what-this-is.is-visible .pill:nth-child(2) {
  animation-delay: 0.08s;
}

#what-this-is.is-visible .pill:nth-child(3) {
  animation-delay: 0.12s;
}

#what-this-is.is-visible .pill:nth-child(4) {
  animation-delay: 0.16s;
}

#what-this-is.is-visible .pill:nth-child(5) {
  animation-delay: 0.2s;
}

#what-this-is.is-visible .pill:nth-child(6) {
  animation-delay: 0.24s;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.role-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fcfdff;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.role-card:hover {
  border-color: #c5d6eb;
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.07);
  transform: translateY(-2px);
}

#roles.is-visible .role-card {
  animation: motion-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#roles.is-visible .role-card:nth-child(1) {
  animation-delay: 0.03s;
}

#roles.is-visible .role-card:nth-child(2) {
  animation-delay: 0.06s;
}

#roles.is-visible .role-card:nth-child(3) {
  animation-delay: 0.09s;
}

#roles.is-visible .role-card:nth-child(4) {
  animation-delay: 0.12s;
}

#roles.is-visible .role-card:nth-child(5) {
  animation-delay: 0.15s;
}

#roles.is-visible .role-card:nth-child(6) {
  animation-delay: 0.18s;
}

#roles.is-visible .role-card:nth-child(7) {
  animation-delay: 0.21s;
}

#roles.is-visible .role-card:nth-child(8) {
  animation-delay: 0.24s;
}

.role-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.role-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

.tag {
  background: #f1f5fa;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
}

.salary {
  color: var(--success);
  font-weight: 700;
  margin: 0.5rem 0 0.2rem;
}

.links {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.platform-links {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.role-btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-size: 0.9rem;
}

.links a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.links a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.65rem;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: #f3f6fb;
}

.muted {
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  background: #fbfcff;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.plan-card:hover {
  border-color: #c5d6eb;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.06);
}

#action-plan.is-visible .plan-card {
  animation: motion-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#action-plan.is-visible .plan-card:nth-child(1) {
  animation-delay: 0.05s;
}

#action-plan.is-visible .plan-card:nth-child(2) {
  animation-delay: 0.11s;
}

#action-plan.is-visible .plan-card:nth-child(3) {
  animation-delay: 0.17s;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero > .top-nav,
  .hero-content > .hero-intro-el {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .pill,
  .role-card,
  .plan-card,
  .section {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  .pill:hover,
  .role-card:hover,
  .plan-card:hover {
    transform: none;
    box-shadow: none;
  }

  .section:hover {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > .top-nav,
  .hero-content > .hero-intro-el {
    opacity: 0;
    animation: motion-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero > .top-nav {
    animation-delay: 0.04s;
  }

  .hero-content > .hero-intro-el:nth-child(1) {
    animation-delay: 0.1s;
  }

  .hero-content > .hero-intro-el:nth-child(2) {
    animation-delay: 0.16s;
  }

  .hero-content > .hero-intro-el:nth-child(3) {
    animation-delay: 0.22s;
  }

  .hero-content > .hero-intro-el:nth-child(4) {
    animation-delay: 0.28s;
  }
}
