:root {
  --blue: #77a9ff;
  --blue-deep: #526fb9;
  --pink: #f382c8;
  --lavender: #a996dc;
  --ink: #30304e;
  --muted: #626276;
  --paper: rgba(255, 255, 255, 0.78);
  --line: rgba(101, 117, 170, 0.16);
  --shadow: 0 24px 70px rgba(70, 86, 151, 0.2);
  --radius: 22px;
  --section-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 188, 226, 0.42), transparent 21rem),
    radial-gradient(circle at 86% 16%, rgba(119, 169, 255, 0.5), transparent 22rem),
    linear-gradient(135deg, #fbf7ff 0%, #e8f5ff 42%, #fff2fb 100%);
  font-family:
    "M PLUS Rounded 1c",
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 45%, transparent 55%, black);
}

img {
  display: block;
}

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

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

.desktop-stage {
  min-height: 100svh;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), var(--shadow);
}

.hero {
  position: relative;
  width: min(100vw, 430px);
  aspect-ratio: 390 / 760;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 186px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 186' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 H390 V126 C348 145 310 137 266 126 C218 114 188 126 145 140 C98 155 48 151 0 142 Z' fill='white'/%3E%3C/svg%3E")
    center top / 100% 100% no-repeat;
}

.hero-bg,
.hero-logo,
.hero-phone,
.hero-hand-copy,
.hero-title-ribbon,
.hero-down {
  position: absolute;
  user-select: none;
  pointer-events: none;
}

.hero-bg {
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 108.289%;
  object-fit: cover;
  transform-origin: center;
}

.hero-logo {
  z-index: 5;
  left: 6.154%;
  top: 9.737%;
  width: 43.59%;
  height: auto;
}

.hero-phone {
  z-index: 4;
  left: 34.872%;
  top: 9.737%;
  width: 68.718%;
  height: 64.605%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(38, 51, 92, 0.24));
}

.hero-hand-copy {
  z-index: 6;
  left: 4.872%;
  top: 22.895%;
  width: 44.615%;
  height: 28.421%;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(255, 255, 255, 0.3));
}

.hero-title-ribbon {
  z-index: 7;
  left: 3.846%;
  top: 54.868%;
  width: 93.333%;
  height: 23.553%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(81, 84, 158, 0.25));
}

.hero-description {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 76.4%;
  width: 87.692%;
  transform: translateX(-50%);
  color: #4f4f62;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
  text-align: center;
}

.hero-down {
  z-index: 9;
  left: 50%;
  top: 86.05%;
  width: 42px;
  height: auto;
  transform: translateX(-50%);
}

.spark,
.orb,
.wave {
  position: absolute;
  pointer-events: none;
}

.spark {
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 49px solid transparent;
  border-right: 49px solid transparent;
  border-bottom: 84px solid rgba(255, 255, 255, 0.58);
  filter: drop-shadow(0 8px 14px rgba(119, 169, 255, 0.18));
}

.spark-one {
  right: -18px;
  top: 61.6%;
  transform: rotate(16deg);
}

.spark-two {
  right: -8px;
  top: 77%;
  transform: scale(0.56) rotate(100deg);
}

.orb-one {
  z-index: 2;
  left: -56px;
  top: 52.763%;
  width: 111px;
  height: 111px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.wave {
  z-index: 1;
  width: 710px;
  height: 523px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.56) transparent transparent transparent;
  border-radius: 48%;
  transform: rotate(14deg);
}

.wave-top {
  left: -224px;
  top: -420px;
}

.wave-bottom {
  left: -137px;
  top: 559px;
}

.section {
  position: relative;
  padding: 88px 24px 76px;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 249, 254, 0.74) 100%);
}

.section:nth-of-type(odd) {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 54%, #fff8fd 100%);
}

.section::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: -64px;
  width: 100%;
  height: 88px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 88' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 48 C48 52 88 47 130 42 C174 37 209 43 252 38 C300 33 342 29 390 22 L390 88 L0 88 Z' fill='white'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.section > * {
  position: relative;
  z-index: 2;
}

.intro::before {
  height: 98px;
  top: -68px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 98' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 51 C48 56 88 51 129 44 C166 38 205 43 245 39 C294 34 339 28 390 18 L390 98 L0 98 Z' fill='white'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.intro::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 112px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 112' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 62 C44 55 84 59 126 52 C169 45 205 53 248 45 C298 36 342 33 390 23 L390 112 L0 112 Z' fill='white'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.support::before {
  display: none;
}

.support {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #fff8fd 100%);
}

.target::before {
  height: 90px;
  top: -64px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 90' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 C45 56 83 51 122 42 C166 32 198 35 238 45 C282 57 329 43 390 28 L390 90 L0 90 Z' fill='white'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.flow::before {
  height: 94px;
  top: -68px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 94' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 45 C54 40 90 45 130 53 C173 62 212 49 253 39 C301 28 344 31 390 23 L390 94 L0 94 Z' fill='white'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.faq::before {
  height: 91px;
  top: -65px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 91' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 47 C42 53 78 56 120 49 C165 42 197 29 238 35 C285 42 329 42 390 24 L390 91 L0 91 Z' fill='white'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.entry::before {
  z-index: 3;
  height: 110px;
  top: -82px;
  background:
    url("./assets/pastel-ribbon-bg.png") center 28% / cover no-repeat;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 110' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 58 C45 51 88 44 130 49 C174 55 208 66 250 52 C301 35 344 28 390 18 L390 110 L0 110 Z' fill='black'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 390 110' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 58 C45 51 88 44 130 49 C174 55 208 66 250 52 C301 35 344 28 390 18 L390 110 L0 110 Z' fill='black'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.scroll-cue {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: -38px 0 18px;
  color: #b9d5ff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.04em;
}

.scroll-cue i {
  display: block;
  width: 3px;
  height: 70px;
  border-radius: 999px;
  background: #b9d5ff;
  position: relative;
}

.scroll-cue i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #b9d5ff;
  box-shadow: none;
}

.section h2 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.3;
}

.section:not(.entry) h2 {
  display: block;
  width: 100%;
  max-width: 100%;
  color: transparent;
  background: linear-gradient(90deg, #7a9cc8, #9e87ca 58%, #a169b8);
  background-clip: text;
  -webkit-background-clip: text;
  text-align: center;
}

.section h3 {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.section p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.section-index {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.82;
}

.heading-sub {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.46;
  object-fit: contain;
}

.heading-sub-about {
  left: 58px;
  top: 132px;
  width: 112px;
}

.heading-sub-support {
  right: 40px;
  top: 99px;
  width: 130px;
}

.heading-sub-target {
  left: 54px;
  top: 100px;
  width: 150px;
}

.heading-sub-flow {
  right: 53px;
  top: 100px;
  width: 134px;
}

.heading-sub-faq {
  left: 54px;
  top: 101px;
  width: 132px;
}

.index-about {
  right: 9px;
  top: 26px;
  width: 127px;
}

.index-support {
  left: 11px;
  top: 37px;
  width: 130px;
}

.index-target {
  right: 9px;
  top: 36px;
  width: 128px;
}

.index-flow {
  left: 19px;
  top: 36px;
  width: 130px;
}

.index-faq {
  right: 14px;
  top: 36px;
  width: 126px;
}

.about-reels {
  --reel-card-width: 128px;
  --reel-gap: 16px;
  --reel-set-distance: 720px;
  height: 240px;
  margin: 18px -37px 56px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}

.about-reel-track {
  display: flex;
  width: max-content;
  gap: var(--reel-gap);
  animation: reel-scroll 38s linear infinite;
  will-change: transform;
}

.about-reel-set {
  display: flex;
  gap: var(--reel-gap);
}

.about-reels article {
  flex: 0 0 var(--reel-card-width);
  height: 240px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #d9d9d9;
  overflow: hidden;
  position: relative;
}

.about-reels article::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(119, 169, 255, 0.1), rgba(243, 130, 200, 0.12));
}

.about-reels video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-lead {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  color: transparent;
  background: linear-gradient(90deg, #7a9cc8 0%, #9e87ca 58%, #a169b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  margin-top: 0;
  text-align: center;
  font-size: clamp(23px, 6.4vw, 28px);
  font-weight: 950;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.about-lead::before,
.about-lead::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 19px;
  height: 19px;
  background: currentcolor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='black' d='M32 0C36 18.5 45.5 28 64 32C45.5 36 36 45.5 32 64C28 45.5 18.5 36 0 32C18.5 28 28 18.5 32 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='black' d='M32 0C36 18.5 45.5 28 64 32C45.5 36 36 45.5 32 64C28 45.5 18.5 36 0 32C18.5 28 28 18.5 32 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
}

.about-lead::before {
  left: -50px;
  color: #88a6e8;
}

.about-lead::after {
  right: -48px;
  color: #ee8bd2;
}

.about-copy {
  margin-top: 28px;
  color: #4f4f62;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.78;
}

.about-activity-link {
  width: min(100%, 276px);
  min-height: 45px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #88a6e8, #8299e0);
  font-size: 17px;
  font-weight: 950;
  box-shadow: none;
}

.about-note {
  margin-top: 3px;
  color: var(--blue-deep);
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.intro h2,
.target h2,
.flow h2 {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.support {
  overflow: visible;
  padding-top: 114px;
}

.target,
.flow,
.faq {
  padding-top: 114px;
}

.support h2 {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.support .support-description {
  margin-top: 3px;
  color: #4f4f62;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.support-grid article,
.target .check-list,
.step-list li,
.faq details,
.salary-box {
  border: 1px solid rgba(118, 143, 204, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 40px rgba(81, 105, 160, 0.11);
  backdrop-filter: blur(10px);
}

.support-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.support-grid article {
  min-height: 321px;
  padding: 0 0 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

.support-grid h3 {
  margin: 16px 24px 0;
  color: transparent;
  background: linear-gradient(90deg, #6b89bd, #6d8abe);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.support-grid h3 span {
  color: transparent;
  background: linear-gradient(90deg, #ee6ca4, #ed70a5);
  background-clip: text;
  -webkit-background-clip: text;
}

.support-grid p {
  margin: 10px 24px 0;
  color: #4f4f62;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.85;
  text-align: center;
}

.support-photo {
  width: 100%;
  height: 192px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.target .check-list {
  margin: 28px 0 0;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: none;
  list-style: none;
}

.target-note {
  margin-top: 10px;
  color: #777789;
  font-size: 12px;
  font-weight: 400;
}

.mascot-row {
  display: grid;
  grid-template-columns: 82px 95px 96px 95px;
  align-items: end;
  justify-content: center;
  gap: 0;
  margin: 4px -12px 0;
}

.mascot-row img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.check-list li {
  position: relative;
  padding: 13px 0 13px 34px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 17px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 950;
}

.step-list {
  display: grid;
  gap: 48px;
  width: 335px;
  max-width: calc(100vw - 55px);
  margin: 22px 0 0 7px;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 116px 1fr;
  padding: 0;
  border: 0;
  border-radius: 16px;
  z-index: 1;
  overflow: visible;
  background: #f7faff;
  box-shadow: none;
  backdrop-filter: none;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -32px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid #b7d3ff;
  transform: translateX(-50%);
}

.step-badge {
  position: absolute;
  z-index: 2;
  left: -12px;
  top: -12px;
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.step-image {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}

.step-content {
  min-width: 0;
  padding: 21px 18px 18px 16px;
}

.step-content h3 {
  color: transparent;
  background: linear-gradient(90deg, #7a9cc8, #9e87ca 60%, #a169b8);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.step-content h3 small {
  font-size: 12px;
  font-weight: 900;
}

.step-content p {
  margin-top: 12px;
  color: #4f4f62;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
}

.flow {
  min-height: 660px;
}

.flow-description {
  margin-top: 6px;
  color: #4f4f62;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.faq h2 {
  display: block;
  width: 100%;
  color: transparent;
  background: linear-gradient(90deg, #7a9cc8, #9e87ca 58%, #a169b8);
  background-clip: text;
  -webkit-background-clip: text;
  text-align: center;
}

.faq-list {
  display: grid;
  margin-top: 22px;
}

.faq-item {
  padding: 22px 8px 21px;
  border-top: 1px dashed #879de5;
}

.faq-item:last-child {
  border-bottom: 1px dashed #879de5;
}

.faq-question,
.faq-answer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
}

.faq-answer {
  margin-top: 28px;
}

.faq-question img {
  width: 34px;
  margin: -2px 0 0 8px;
}

.faq-answer img {
  width: 44px;
  margin-top: -1px;
}

.faq-question h3 {
  min-width: 0;
  color: #879de5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.faq-answer p {
  min-width: 0;
  margin: 0;
  color: #e599d9;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.58;
}

.salary-box {
  margin: 10px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: #4f4f62;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  box-shadow: none;
}

.salary-box strong {
  display: block;
  margin-bottom: 5px;
  color: #7e98df;
  font-size: 15px;
  font-weight: 950;
}

.entry {
  min-height: 286px;
  padding: 36px 22px 102px;
  color: var(--ink);
  overflow: visible;
  background: #eef8ff;
}

.entry-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  pointer-events: none;
  user-select: none;
}

.entry-title-image {
  width: min(100%, 356px);
  height: auto;
  margin: 0 auto;
  animation: entry-title-float 4.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(93, 110, 176, 0.16));
  will-change: transform;
}

.entry p {
  margin-top: 2px;
  color: #4f4f62;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.side-cta,
.floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 18px 34px rgba(60, 99, 185, 0.28);
  font-size: 15px;
  font-weight: 950;
}

.side-panel {
  display: none;
}

.floating-cta {
  position: fixed;
  z-index: 30;
  left: 34px;
  right: 34px;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px));
  min-height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 18px 34px rgba(60, 99, 185, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  animation: cta-border-glow 2.8s ease-in-out infinite;
  isolation: isolate;
  font-size: 17px;
  will-change: box-shadow, border-color;
}

.floating-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: cta-ring-pulse 2.8s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.72);
  will-change: opacity, inset, box-shadow;
}

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

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  filter: blur(6px);
  transition:
    opacity 0.78s ease,
    transform 0.78s cubic-bezier(0.18, 0.9, 0.22, 1),
    filter 0.78s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.support-grid article.scroll-reveal:nth-child(odd) {
  transform: translate3d(-34px, 0, 0);
}

.support-grid article.scroll-reveal:nth-child(even) {
  transform: translate3d(34px, 0, 0);
}

.support-grid article.scroll-reveal.is-visible {
  transform: translate3d(0, 0, 0);
}

.hero-description.scroll-reveal {
  transform: translateX(-50%) translate3d(0, -18px, 0);
}

.hero-description.scroll-reveal.is-visible {
  transform: translateX(-50%) translate3d(0, 0, 0);
}

.asset-fade {
  animation: bg-drift 11s ease-in-out infinite alternate;
}

.asset-pop {
  animation: reveal-pop 0.72s cubic-bezier(0.2, 0.9, 0.22, 1.16) both 0.1s;
}

.asset-phone {
  animation: phone-in 0.95s cubic-bezier(0.2, 0.9, 0.2, 1) both 0.22s, phone-float 4.7s ease-in-out infinite 1.3s;
}

.asset-copy {
  animation: copy-in 0.74s cubic-bezier(0.18, 0.98, 0.22, 1) both 0.44s;
}

.asset-title {
  animation: title-in 0.82s cubic-bezier(0.18, 0.98, 0.22, 1) both 0.62s;
}

.spark-one {
  animation: sparkle 4.2s ease-in-out infinite;
}

.spark-two {
  animation: sparkle 5.4s ease-in-out infinite 0.4s;
}

@keyframes bg-drift {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.045) translate3d(-7px, -9px, 0);
  }
}

@keyframes reveal-pop {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateX(38px) rotate(3deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0) scale(1);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-9px) rotate(0.5deg);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateX(-24px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes entry-title-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0) rotate(16deg) scale(1);
  }
  50% {
    opacity: 0.78;
    transform: translateY(-10px) rotate(22deg) scale(1.08);
  }
}

@keyframes reel-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(var(--reel-set-distance) * -1), 0, 0);
  }
}

@keyframes cta-border-glow {
  0%,
  52%,
  100% {
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow:
      0 18px 34px rgba(60, 99, 185, 0.32),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }

  68%,
  78% {
    border-color: #ffffff;
    box-shadow:
      0 18px 34px rgba(60, 99, 185, 0.36),
      0 0 28px rgba(255, 255, 255, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.44) inset;
  }
}

@keyframes cta-ring-pulse {
  0%,
  50% {
    inset: -2px;
    opacity: 0;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  64% {
    inset: -4px;
    opacity: 0.34;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.36);
  }

  76% {
    inset: -8px;
    opacity: 0.9;
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.82);
  }

  88% {
    inset: -12px;
    opacity: 0.16;
    box-shadow: 0 0 34px rgba(255, 255, 255, 0.46);
  }

  99% {
    inset: -16px;
    opacity: 0;
    box-shadow: 0 0 42px rgba(255, 255, 255, 0);
  }

  100% {
    inset: -2px;
    opacity: 0;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (min-width: 960px) {
  body {
    min-height: 100svh;
    overflow: hidden;
  }

  .desktop-stage {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 430px minmax(260px, 1fr);
    align-items: stretch;
    min-height: 100svh;
    padding: 0 32px;
    gap: 28px;
  }

  .phone-shell {
    width: 430px;
    height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .side-panel {
    display: grid;
    min-height: 100svh;
    align-items: center;
  }

  .side-panel-right {
    pointer-events: none;
  }

  .side-panel .side-inner.scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .side-inner {
    width: min(100%, 280px);
    max-width: 280px;
    margin: 0 auto;
  }

  .side-logo {
    width: 204px;
    margin: 0 0 28px;
  }

  .side-kicker {
    margin: 0;
    color: var(--blue-deep);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.4;
    letter-spacing: 0.1em;
  }

  .side-panel h1,
  .side-panel h2 {
    color: var(--ink);
    font-size: clamp(34px, 3.2vw, 58px);
    font-weight: 950;
    line-height: 1.02;
  }

  .side-panel h2 {
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1.14;
  }

  .side-panel p {
    margin-top: 22px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
  }

  .side-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 34px;
  }

  .side-stats div,
  .right-card {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 22px 60px rgba(80, 92, 150, 0.12);
    backdrop-filter: blur(18px);
  }

  .side-stats div {
    min-height: 92px;
    padding: 15px 12px;
    border-radius: 18px;
  }

  .side-stats dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .side-stats dd {
    margin-top: 8px;
    color: var(--blue-deep);
    font-size: 24px;
    font-weight: 950;
  }

  .right-card {
    padding: 28px;
    border-radius: 30px;
  }

  .side-cta {
    width: 100%;
    margin-top: 32px;
    min-height: 54px;
    background: linear-gradient(90deg, #88a6e8, #8299e0);
    box-shadow: 0 18px 38px rgba(82, 111, 185, 0.26);
  }

  .side-nav {
    display: grid;
    counter-reset: side-menu;
    gap: 0;
    margin-top: 0;
    border-top: 1px solid rgba(87, 103, 160, 0.18);
  }

  .side-nav a {
    counter-increment: side-menu;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    min-height: 50px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(87, 103, 160, 0.16);
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
  }

  .side-nav a::before {
    content: counter(side-menu, decimal-leading-zero);
    color: rgba(82, 111, 185, 0.58);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
  }

  .floating-cta {
    display: none;
  }
}

@media (max-width: 429px) {
  .phone-shell {
    width: 100%;
  }

  .hero {
    width: 100vw;
    min-height: auto;
  }

}

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

  .scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .support-grid article.scroll-reveal,
  .support-grid article.scroll-reveal.is-visible {
    transform: none;
  }

  .hero-description.scroll-reveal {
    transform: translateX(-50%);
  }

  .about-reel-track {
    animation: none !important;
  }

  .entry-title-image {
    animation: none;
  }

  .floating-cta {
    animation: none;
  }

  .floating-cta::after {
    animation: none;
    opacity: 0;
  }
}
