:root {
  --ink: #19082e;
  --ink-soft: #3f3152;
  --plum: #24103f;
  --plum-2: #32145d;
  --violet: #5b22ad;
  --violet-bright: #7c3aed;
  --lilac: #eee8f8;
  --mist: #f7f5fb;
  --line: #ded7e8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(32, 12, 57, 0.16);
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--plum);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(25, 8, 46, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 35px;
  height: 55px;
  flex: 0 0 auto;
  background-image: url("assets/casemaster-brand-pop-up.png");
  background-repeat: no-repeat;
  background-position: -36px -35px;
  background-size: 323px auto;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.25rem;
  letter-spacing: -0.045em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--violet);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a:not(.button) {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible {
  color: var(--violet);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  background: var(--violet);
  border: 1px solid var(--violet);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(91, 34, 173, 0.2);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: #48168f;
  box-shadow: 0 14px 30px rgba(91, 34, 173, 0.28);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding-inline: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.menu-toggle {
  width: 46px;
  height: 44px;
  display: none;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-toggle > span:not(.sr-only) {
  width: 100%;
  height: 2px;
  display: block;
  margin-block: 4px;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 92px;
  background:
    linear-gradient(90deg, var(--white) 0%, var(--white) 58%, rgba(247, 245, 251, 0.8) 100%);
}

.hero::after {
  position: absolute;
  z-index: 0;
  right: -17%;
  bottom: -49%;
  width: 760px;
  height: 760px;
  content: "";
  border: 80px solid rgba(124, 58, 237, 0.06);
  border-radius: 50%;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  top: -190px;
  left: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #cdb9f4;
}

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

h1,
h2,
h3 {
  line-height: 1.06;
}

h1 {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: clamp(3.2rem, 6.7vw, 6rem);
  letter-spacing: -0.067em;
}

h1 em {
  display: block;
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 690px;
  margin: 0 auto 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: rgba(91, 34, 173, 0.35);
  text-underline-offset: 5px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--violet);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 50px auto 0;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt {
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-facts dd {
  margin: 0;
  color: #6c6078;
  font-size: 0.79rem;
  line-height: 1.45;
}

.audience-strip {
  color: var(--white);
  background: var(--plum);
}

.audience-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.audience-inner p {
  margin: 0;
  color: #cdb9f4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.audience-inner ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-inner li {
  position: relative;
  font-size: 0.94rem;
  font-weight: 700;
}

.audience-inner li + li::before {
  position: absolute;
  top: 50%;
  left: -16px;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--violet-bright);
  border-radius: 50%;
  transform: translateY(-50%);
}

.section {
  padding: 110px 0;
}

.story-section {
  padding-bottom: 34px;
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(52px, 9vw, 132px);
  padding-bottom: 82px;
  border-bottom: 1px solid var(--line);
}

.story-statement h2 {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  letter-spacing: -0.058em;
}

.story-copy > p {
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.story-copy blockquote {
  margin: 0;
  padding: 2px 0 2px 24px;
  color: var(--violet);
  border-left: 3px solid var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.6;
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 52px;
}

.section-heading h2,
.transition-grid h2,
.contact-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.7vw, 4.25rem);
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
}

.split-heading > p:last-child {
  margin: 0 0 7px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.feature-card-accent {
  color: var(--white);
  background: var(--violet);
  border-color: var(--violet);
}

.feature-number {
  display: block;
  margin-bottom: 58px;
  color: #91879b;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
}

.feature-card-accent .feature-number {
  color: #d7c4f7;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 1.24rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin-bottom: 0;
  color: #665a72;
  font-size: 0.92rem;
}

.feature-card-accent p {
  color: #eee5fb;
}

.modules-preview {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--plum);
}

.modules-preview::before {
  position: absolute;
  top: -210px;
  right: -170px;
  width: 540px;
  height: 540px;
  content: "";
  border: 68px solid rgba(124, 58, 237, 0.16);
  border-radius: 50%;
}

.modules-preview .section-heading {
  position: relative;
  z-index: 1;
}

.modules-preview .section-heading > p:last-child {
  color: #cfc3da;
}

.module-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module-row-featured {
  margin-bottom: 18px;
}

.module-card {
  min-height: 270px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
}

.module-label {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 46px;
  color: #d9c9f6;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(205, 185, 244, 0.2);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-label-available {
  color: #fff;
  background: var(--violet);
  border-color: rgba(255, 255, 255, 0.22);
}

.module-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.module-card p {
  margin-bottom: 0;
  color: #cfc3da;
  font-size: 0.92rem;
}

.module-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.module-detail {
  min-height: 210px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.module-detail-coming {
  background: rgba(225, 222, 230, 0.08);
  border-style: dashed;
}

.module-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.module-detail h3 {
  max-width: 330px;
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.module-detail p {
  margin: 0;
  color: #cfc3da;
  font-size: 0.91rem;
}

.status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-available {
  color: #fff;
  background: var(--violet);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.status-coming {
  color: #3f3450;
  background: #e8e6ec;
  border: 1px solid #f4f2f6;
}

.transition-section {
  background: var(--mist);
}

.transition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(44px, 9vw, 130px);
}

.transition-copy p {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.transition-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 72px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.transition-steps li {
  min-height: 230px;
  display: flex;
  gap: 20px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.transition-steps li > span {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 0.86rem;
  font-style: italic;
}

.transition-steps strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.06rem;
}

.transition-steps p {
  margin: 0;
  color: #665a72;
  font-size: 0.9rem;
}

.hosting-section {
  color: var(--white);
  background:
    radial-gradient(circle at 4% 14%, rgba(124, 58, 237, 0.27), transparent 28%),
    var(--plum);
}

.hosting-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: clamp(56px, 9vw, 130px);
}

.hosting-intro {
  align-self: start;
  position: sticky;
  top: 130px;
}

.hosting-intro h2 {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
  letter-spacing: -0.055em;
}

.hosting-intro > p:last-child {
  color: #d0c5da;
  font-size: 1.02rem;
  line-height: 1.75;
}

.hosting-list {
  display: grid;
}

.hosting-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hosting-list article:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hosting-list article > span {
  color: #b895ed;
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-style: italic;
}

.hosting-list h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.hosting-list p {
  margin: 0;
  color: #cfc3da;
  font-size: 0.92rem;
}

.resources-section {
  padding-bottom: 26px;
  background: var(--white);
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.resource-card {
  min-height: 440px;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 24px;
}

.resource-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.052em;
}

.resource-card p:last-of-type {
  max-width: 540px;
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.72;
}

.resource-card-training {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.92)),
    var(--lilac);
  border: 1px solid var(--line);
}

.resource-card-training p:last-of-type {
  color: var(--ink-soft);
}

.resource-card-community {
  color: var(--white);
  background: linear-gradient(145deg, #5b22ad, #301253);
}

.resource-card-community p:last-of-type {
  margin-bottom: 28px;
  color: #e0d6eb;
}

.contact-section {
  padding: 76px 0;
  background: var(--white);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 54px;
  padding: clamp(40px, 7vw, 80px);
  color: var(--white);
  background: linear-gradient(125deg, var(--plum) 0%, #361264 100%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 750px;
}

.contact-actions {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.button-light {
  color: var(--plum);
  background: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--plum);
  background: #f3effa;
}

.support-link {
  color: #d8cce3;
  font-size: 0.9rem;
  text-decoration: none;
}

.support-link strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 42px;
}

.footer-inner strong {
  font-size: 1.05rem;
}

.footer-inner p {
  margin: 4px 0 0;
  color: #746a7c;
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.copyright {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 18px;
  }

  .site-nav > a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

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

  .story-grid,
  .hosting-grid {
    grid-template-columns: 1fr;
  }

  .hosting-intro {
    position: static;
    max-width: 760px;
  }

  .module-row {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 0;
  }

  .module-label {
    margin-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

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

  .site-nav > a:not(.button) {
    display: block;
    padding: 10px 6px;
  }

  .hero {
    padding: 58px 0 70px;
  }

  .hero-grid,
  .split-heading,
  .story-grid,
  .transition-grid,
  .contact-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

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

  .audience-inner {
    display: block;
    padding-block: 28px;
  }

  .audience-inner p {
    margin-bottom: 18px;
  }

  .audience-inner ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .audience-inner li + li::before {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

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

  .module-grid,
  .transition-steps,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .module-detail-heading {
    flex-direction: column;
  }

  .transition-steps li {
    min-height: 0;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 30px;
  }

  .contact-card {
    gap: 38px;
  }

  .footer-inner {
    align-items: start;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 32px;
    height: 49px;
    background-position: -33px -32px;
    background-size: 295px auto;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .audience-inner ul {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .transition-grid h2,
  .contact-card h2 {
    font-size: 2.45rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
