/*=============================================
=          Satyathi HRMS case study           =
=============================================*/
:root {
  --sc-brand: #805dcd;
  --sc-brand-strong: #6340b5;
  --sc-brand-soft: #eee7ff;
  --sc-ink: #28233e;
  --sc-body: #5f5b70;
  --sc-line: #e4dff0;
  --sc-tint: #f8f6fd;
  --sc-night: #1d1438;
  --sc-night-2: #38207a;
  --sc-hr: #6340b5;
  --sc-mobile: #0f7b6c;
  --sc-review: #b4570b;
  --sc-overview: #6b6780;
}

[id='walkthroughs'],
[id='modules'],
[id='start-project'] {
  scroll-margin-top: 90px;
}

/* Shared */
.sc-section {
  padding: 88px 0;
}

.sc-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.sc-head h2 {
  width: 100%;
  margin: 0 0 14px;
  text-align: center;
  color: var(--sc-ink);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}

.sc-head p:last-child {
  margin: 0;
  color: var(--sc-body);
  font-size: 17px;
  line-height: 1.6;
}

.sc-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--sc-brand-soft);
  color: var(--sc-brand-strong);
  font-size: 14px;
  font-weight: 500;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.sc-btn--primary {
  background: #fff;
  color: var(--sc-brand-strong);
}

.sc-btn--primary:hover {
  background: var(--sc-brand-soft);
  color: var(--sc-brand-strong);
}

.sc-btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.sc-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sc-hero a:focus-visible,
.sc-rail button:focus-visible,
.sc-tile:focus-visible,
.sc-tab:focus-visible,
.sc-detail button:focus-visible,
.sc-player__play:focus-visible {
  outline: 3px solid #f9c322;
  outline-offset: 2px;
}

/* Hero */
.sc-hero {
  padding: 136px 0 120px;
  background:
    radial-gradient(circle at 85% 15%, rgba(128, 93, 205, 0.55), transparent 50%),
    linear-gradient(135deg, var(--sc-night), var(--sc-night-2));
  color: #fff;
}

.sc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.sc-crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.sc-crumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-crumbs a:hover {
  color: #fff;
}

.sc-hero__tag {
  margin: 0 0 12px;
  color: #d8cdf0;
  font-size: 16px;
  font-weight: 500;
}

.sc-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.sc-hero h1 span {
  color: #cdb8ff;
}

.sc-hero__lead {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.6;
}

.sc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sc-hero__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.sc-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.sc-hero__media:hover img {
  transform: scale(1.03);
}

.sc-hero__play,
.sc-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--sc-brand-strong);
  font-size: 24px;
  box-shadow: 0 8px 26px rgba(29, 20, 56, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.sc-hero__play i,
.sc-player__play i {
  margin-left: 4px;
}

.sc-hero__media:hover .sc-hero__play,
.sc-player__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Stats */
.sc-stats {
  position: relative;
  z-index: 1;
  margin-top: -64px;
}

.sc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(40, 35, 62, 0.1);
}

.sc-stat {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-left: 1px solid var(--sc-line);
}

.sc-stat:first-child {
  border-left: 0;
}

.sc-stat dd {
  order: 1;
  margin: 0 0 4px;
  color: var(--sc-brand-strong);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.sc-stat dt {
  order: 2;
  color: var(--sc-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* Walkthroughs */
.sc-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.sc-tabs[hidden] {
  display: none;
}

.sc-tab {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--sc-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sc-tab:hover,
.sc-tab[aria-pressed='true'] {
  border-color: var(--sc-brand);
  background: var(--sc-tint);
}

.sc-tab img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.sc-tab strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.sc-tab span {
  color: var(--sc-body);
  font-size: 13px;
}

.sc-theatre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.sc-player {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sc-night);
  box-shadow: 0 16px 44px rgba(40, 35, 62, 0.18);
  aspect-ratio: 16 / 9;
}

.sc-player video {
  display: block;
  width: 100%;
  height: 100%;
}

.sc-player__play {
  cursor: pointer;
}

.sc-player__play[hidden] {
  display: none;
}

.sc-now {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin-top: 16px;
  color: var(--sc-body);
  font-size: 16px;
  line-height: 1.5;
}

.sc-now strong {
  color: var(--sc-ink);
  font-weight: 600;
}

.sc-kind {
  color: var(--sc-kind);
  font-size: 13px;
  font-weight: 600;
}

.sc-kind--hr {
  --sc-kind: var(--sc-hr);
}

.sc-kind--mobile {
  --sc-kind: var(--sc-mobile);
}

.sc-kind--review {
  --sc-kind: var(--sc-review);
}

.sc-kind--overview {
  --sc-kind: var(--sc-overview);
}

/* height: 0 stops the chapter list setting the row height, so it matches the video */
.sc-rail {
  display: flex;
  flex-direction: column;
  height: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: #fff;
}

.sc-rail__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--sc-line);
}

.sc-rail__head h3 {
  margin: 0 0 2px;
  color: var(--sc-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.sc-rail__head span {
  color: var(--sc-body);
  font-size: 13px;
}

.sc-rail__list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}

.sc-rail__list li {
  margin: 0;
}

.sc-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sc-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sc-chapter:hover {
  background: var(--sc-tint);
}

.sc-chapter[aria-current='true'] {
  background: var(--sc-brand-soft);
}

.sc-chapter[aria-current='true']::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(var(--sc-progress, 0) * 100%);
  height: 3px;
  background: var(--sc-brand);
}

.sc-chapter time {
  color: var(--sc-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.sc-chapter strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.sc-chapter[aria-current='true'] strong {
  font-weight: 600;
}

.sc-coming {
  margin: 28px 0 0;
  color: var(--sc-body);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.sc-coming strong {
  color: var(--sc-ink);
  font-weight: 600;
}

/* Modules */
.sc-modules {
  background: var(--sc-tint);
}

.sc-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.sc-group + .sc-group {
  margin-top: 24px;
}

.sc-group h3 {
  margin: 0 0 10px;
  color: var(--sc-ink);
  font-size: 16px;
  font-weight: 600;
}

.sc-group__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sc-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--sc-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sc-tile:hover {
  border-color: var(--sc-brand);
  transform: translateY(-2px);
}

.sc-tile[aria-pressed='true'] {
  border-color: var(--sc-brand-strong);
  box-shadow: inset 0 0 0 1px var(--sc-brand-strong);
}

.sc-tile i {
  margin-bottom: 12px;
  color: var(--sc-brand-strong);
  font-size: 20px;
}

.sc-tile strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.sc-tile span {
  margin-top: 3px;
  color: var(--sc-body);
  font-size: 14px;
  line-height: 1.35;
}

.sc-detail {
  position: sticky;
  top: 100px;
  padding: 26px;
  border-radius: 12px;
  background: var(--sc-night);
  color: rgba(255, 255, 255, 0.85);
}

.sc-detail article[hidden] {
  display: none;
}

.sc-detail h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 23px;
  font-weight: 600;
}

.sc-detail p {
  margin: 0 0 14px;
  color: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.sc-detail__link {
  color: #d8cdf0 !important;
  font-size: 15px !important;
}

.sc-detail__link button {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-detail__action {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.sc-detail__action button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--sc-brand-strong);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.sc-detail__action button:hover {
  background: var(--sc-brand-soft);
}

/* Delivered */
.sc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sc-card {
  padding: 26px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
}

.sc-card i {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 10px;
  background: var(--sc-brand-soft);
  color: var(--sc-brand-strong);
  font-size: 19px;
}

.sc-card h3 {
  margin: 0 0 8px;
  color: var(--sc-ink);
  font-size: 19px;
  font-weight: 600;
}

.sc-card p {
  margin: 0;
  color: var(--sc-body);
  font-size: 16px;
  line-height: 1.55;
}

.sc-checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.sc-checks li {
  position: relative;
  padding-left: 24px;
  color: var(--sc-ink);
  font-size: 15px;
  line-height: 1.45;
}

.sc-checks li::before {
  content: '\2713';
  position: absolute;
  top: 0;
  left: 0;
  color: var(--sc-brand-strong);
  font-weight: 700;
}

/* AIDLC */
.sc-aidlc {
  background: linear-gradient(135deg, var(--sc-night), var(--sc-night-2));
}

.sc-head--light h2 {
  color: #fff;
}

.sc-head--light p:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.sc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.sc-split__col {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
}

.sc-split__col--strong {
  border-color: #fff;
  background: #fff;
}

.sc-split h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.sc-split__col--strong h3 {
  color: var(--sc-ink);
}

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

.sc-split li {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.sc-split__col--strong li {
  color: var(--sc-ink);
}

.sc-note {
  max-width: 880px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.sc-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-note a:hover {
  color: #d8cdf0;
}

/* Responsive */
@media (max-width: 1199px) {
  .sc-theatre,
  .sc-explorer {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .sc-tile {
    padding: 14px;
  }
}

@media (max-width: 991px) {
  .sc-section {
    padding: 64px 0;
  }

  .sc-hero {
    padding: 116px 0 104px;
  }

  .sc-hero__grid,
  .sc-theatre,
  .sc-explorer {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-hero__grid {
    gap: 36px;
  }

  .sc-rail {
    height: auto;
    min-height: 0;
  }

  .sc-rail__list {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .sc-rail__list li {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }

  .sc-chapter {
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    border: 1px solid var(--sc-line);
  }

  .sc-detail {
    position: static;
    margin-top: 12px;
    margin-bottom: 12px;
  }

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

@media (max-width: 767px) {
  .sc-hero__play,
  .sc-player__play {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

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

  .sc-stat {
    padding: 20px 16px;
  }

  .sc-stat:nth-child(odd) {
    border-left: 0;
  }

  .sc-stat:nth-child(n + 3) {
    border-top: 1px solid var(--sc-line);
  }

  .sc-group__tiles,
  .sc-cards,
  .sc-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-tile {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0 10px;
  }

  .sc-tile i {
    grid-row: span 2;
    align-self: center;
    margin: 0;
  }

  .sc-tile span {
    grid-column: 2;
  }
}

@media (max-width: 575px) {
  .sc-hero__actions .sc-btn {
    justify-content: center;
    width: 100%;
  }

  .sc-checks {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-btn,
  .sc-hero__media img,
  .sc-hero__play,
  .sc-player__play,
  .sc-tile {
    transition: none;
  }

  .sc-btn:hover,
  .sc-tile:hover,
  .sc-hero__media:hover img {
    transform: none;
  }
}
