/* AI landing page */

.page.page-home {
  width: min(1380px, calc(100% - 48px));
  padding-bottom: 68px;
}

.home-landing {
  position: relative;
  display: grid;
  gap: 80px;
  --home-load-duration: 0.82s;
  --home-load-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-landing::before {
  content: "";
  position: absolute;
  inset: 8px 6% auto;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(228, 42, 112, 0.18), rgba(228, 42, 112, 0) 34%),
    radial-gradient(circle at 78% 8%, rgba(37, 244, 238, 0.14), rgba(37, 244, 238, 0) 28%),
    radial-gradient(circle at 58% 44%, rgba(125, 75, 255, 0.13), rgba(125, 75, 255, 0) 36%);
  filter: blur(14px);
  opacity: 0.92;
  animation: homeGlowIntro 1.35s var(--home-load-ease) both;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 124px);
  min-height: min(calc(100vh - 124px), 980px);
  padding: 22px 0 10px;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: center;
}

.home-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f16da0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: homeFadeLift var(--home-load-duration) var(--home-load-ease) 0.06s both;
}

.home-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 244, 238, 0.2), rgba(37, 244, 238, 0.95));
}

.home-title {
  margin: 0;
  color: #fbfcff;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  opacity: 0;
  animation: homeFadeLift var(--home-load-duration) var(--home-load-ease) 0.14s both;
}

.home-title-accent {
  display: inline-block;
  background: linear-gradient(135deg, #f4f7ff 0%, #8b5cf6 48%, #25f4ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-description {
  margin: 0;
  max-width: 640px;
  color: #b7bfd7;
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0;
  animation: homeFadeLift var(--home-load-duration) var(--home-load-ease) 0.24s both;
}

.home-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: homeFadeLift var(--home-load-duration) var(--home-load-ease) 0.34s both;
}

.home-primary-btn,
.home-secondary-btn,
.home-module-link,
.home-cta-link {
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-primary-btn,
.home-cta-link {
  border: 1px solid rgba(236, 91, 154, 0.32);
  padding: 14px 20px;
  background: linear-gradient(135deg, #e42a70, #8b5cf6 58%, #25f4ee 140%);
  color: #ffffff;
  box-shadow: 0 22px 38px rgba(125, 75, 255, 0.2);
}

.home-primary-btn:hover,
.home-secondary-btn:hover,
.home-module-link:hover,
.home-cta-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.home-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px;
  background: rgba(18, 22, 38, 0.88);
  color: #f5f7ff;
}

.home-signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.home-signal-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(20, 25, 42, 0.92), rgba(13, 16, 28, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
  opacity: 0;
  animation: homeFadeLift 0.74s var(--home-load-ease) both;
}

.home-signal-chip:nth-child(1) {
  animation-delay: 0.42s;
}

.home-signal-chip:nth-child(2) {
  animation-delay: 0.5s;
}

.home-signal-chip:nth-child(3) {
  animation-delay: 0.58s;
}

.home-signal-chip strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f4f7ff;
}

.home-signal-chip span {
  font-size: 0.78rem;
  color: #9ea7c5;
  line-height: 1.5;
}

.home-hero-stage {
  position: relative;
  min-height: 620px;
}

.home-stage-orbit {
  position: absolute;
  inset: 4% 10% 12% 8%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 24, 42, 0.2), rgba(12, 16, 27, 0.08)),
    radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0) 56%);
  transform: rotate(-6deg);
  opacity: 0;
  animation: homeOrbitIn 1s var(--home-load-ease) 0.24s both;
}

.home-stage-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 23, 39, 0.98), rgba(13, 16, 27, 0.98));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translate3d(0, 0, 0) rotate(var(--home-rotate, 0deg));
  opacity: 0;
  animation: homeStageCardIn 0.95s var(--home-load-ease) both;
}

.home-stage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.home-stage-card-title {
  display: grid;
  gap: 4px;
}

.home-stage-card-title strong {
  font-size: 0.9rem;
  color: #f5f7ff;
  font-weight: 600;
}

.home-stage-card-title span {
  color: #98a1c0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-stage-card-tag {
  border: 1px solid rgba(37, 244, 238, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #d9fffd;
  background: rgba(16, 44, 49, 0.5);
}

.home-stage-card-media {
  padding: 14px 16px 16px;
}

.home-stage-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1220;
}

.home-stage-card-main {
  inset: 6% 0 10% 11%;
  z-index: 3;
  --home-rotate: -2.4deg;
  animation-delay: 0.3s;
}

.home-stage-card-main .home-stage-card-media {
  height: 470px;
}

.home-stage-card-floating {
  width: 260px;
  z-index: 4;
}

.home-stage-card-character {
  top: 0;
  right: 4%;
  --home-rotate: 6deg;
  animation-delay: 0.44s;
}

.home-stage-card-character .home-stage-card-media {
  height: 260px;
}

.home-stage-card-environment {
  left: 0;
  bottom: 2%;
  --home-rotate: -5deg;
  animation-delay: 0.54s;
}

.home-stage-card-environment .home-stage-card-media {
  height: 220px;
}

.home-stage-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 16px;
}

.home-stage-card-footer span {
  color: #99a4c4;
  font-size: 0.78rem;
}

.home-stage-card-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-stage-card-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: block;
  background: rgba(255, 255, 255, 0.2);
}

.home-stage-card-dots i.is-active {
  background: #25f4ee;
  box-shadow: 0 0 18px rgba(37, 244, 238, 0.45);
}

.home-section {
  position: relative;
  display: grid;
  gap: 18px;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  opacity: 0;
  animation: homeFadeLift 0.76s var(--home-load-ease) 0.12s both;
}

.home-section-eyebrow {
  margin: 0 0 6px;
  color: #84e3ff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.6rem);
  line-height: 1.02;
  font-weight: 400;
  color: #fbfcff;
}

.home-section-copy {
  margin: 0;
  max-width: 560px;
  color: #aeb7d0;
  font-size: 0.96rem;
  line-height: 1.7;
}

.home-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-module-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 24, 42, 0.95), rgba(13, 16, 28, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  align-content: start;
  opacity: 0;
  animation: homeFadeLift 0.78s var(--home-load-ease) both;
}

.home-modules-grid .home-module-card:nth-child(1) {
  animation-delay: 0.18s;
}

.home-modules-grid .home-module-card:nth-child(2) {
  animation-delay: 0.24s;
}

.home-modules-grid .home-module-card:nth-child(3) {
  animation-delay: 0.3s;
}

.home-modules-grid .home-module-card:nth-child(4) {
  animation-delay: 0.36s;
}

.home-module-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.home-module-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-module-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-module-status {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.home-module-status.is-live {
  background: rgba(17, 58, 56, 0.78);
  color: #cffffd;
  border: 1px solid rgba(37, 244, 238, 0.24);
}

.home-module-status.is-soon {
  background: rgba(44, 25, 56, 0.78);
  color: #f3d9ff;
  border: 1px solid rgba(139, 92, 246, 0.24);
}

.home-module-index {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-module-body {
  display: grid;
  gap: 12px;
  padding: 16px 16px 18px;
}

.home-module-body h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.15;
  color: #f7f9ff;
}

.home-module-body p {
  margin: 0;
  color: #9fa9c8;
  font-size: 0.86rem;
  line-height: 1.65;
  min-height: 72px;
}

.home-module-link {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.03);
  color: #f5f7ff;
}

.home-module-link.is-disabled {
  color: #8f98b7;
  cursor: default;
  pointer-events: none;
}

.home-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-workflow-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0) 34%),
    linear-gradient(180deg, rgba(20, 24, 42, 0.92), rgba(13, 16, 28, 0.97));
  display: grid;
  gap: 14px;
  opacity: 0;
  animation: homeFadeLift 0.78s var(--home-load-ease) both;
}

.home-workflow-grid .home-workflow-card:nth-child(1) {
  animation-delay: 0.16s;
}

.home-workflow-grid .home-workflow-card:nth-child(2) {
  animation-delay: 0.24s;
}

.home-workflow-grid .home-workflow-card:nth-child(3) {
  animation-delay: 0.32s;
}

.home-workflow-step {
  color: #84e3ff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-workflow-card h3 {
  margin: 0;
  font-size: 1.16rem;
  color: #f7f9ff;
}

.home-workflow-card p {
  margin: 0;
  color: #a9b2cf;
  font-size: 0.9rem;
  line-height: 1.72;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.home-gallery-card {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  overflow: hidden;
  background: #10131e;
  opacity: 0;
  animation: homeFadeLift 0.82s var(--home-load-ease) both;
}

.home-gallery-grid .home-gallery-card:nth-child(1) {
  animation-delay: 0.18s;
}

.home-gallery-grid .home-gallery-card:nth-child(2) {
  animation-delay: 0.28s;
}

.home-gallery-grid .home-gallery-card:nth-child(3) {
  animation-delay: 0.38s;
}

.home-gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 17, 0.06), rgba(7, 10, 17, 0.8) 100%);
}

.home-gallery-card-body {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.home-gallery-card-body strong {
  color: #f7f9ff;
  font-size: 1.02rem;
}

.home-gallery-card-body span {
  color: #d2d8ea;
  font-size: 0.82rem;
  line-height: 1.5;
}

.home-cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  padding: 32px;
  background:
    radial-gradient(circle at 10% 10%, rgba(228, 42, 112, 0.18), rgba(228, 42, 112, 0) 30%),
    radial-gradient(circle at 90% 0%, rgba(37, 244, 238, 0.12), rgba(37, 244, 238, 0) 24%),
    linear-gradient(135deg, rgba(20, 24, 42, 0.98), rgba(13, 16, 28, 0.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  opacity: 0;
  animation: homeFadeLift 0.9s var(--home-load-ease) 0.16s both;
}

.home-cta-copy {
  display: grid;
  gap: 10px;
}

.home-cta-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  line-height: 0.98;
  color: #fbfcff;
}

.home-cta-copy p {
  margin: 0;
  max-width: 560px;
  color: #b4bdd7;
  font-size: 0.96rem;
  line-height: 1.75;
}

@keyframes homeGlowIntro {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
    filter: blur(28px);
  }

  to {
    opacity: 0.92;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(14px);
  }
}

@keyframes homeFadeLift {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes homeOrbitIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) rotate(-8deg) scale(0.98);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1);
    filter: blur(0);
  }
}

@keyframes homeStageCardIn {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.94) rotate(var(--home-rotate, 0deg));
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(var(--home-rotate, 0deg));
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-landing::before,
  .home-kicker,
  .home-title,
  .home-description,
  .home-cta-row,
  .home-signal-chip,
  .home-stage-orbit,
  .home-stage-card,
  .home-section-head,
  .home-module-card,
  .home-workflow-card,
  .home-gallery-card,
  .home-cta-panel {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .home-stage-orbit {
    transform: rotate(-6deg);
  }

  .home-stage-card {
    transform: translate3d(0, 0, 0) rotate(var(--home-rotate, 0deg));
  }
}

@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding-top: 10px;
  }

  .home-title {
    max-width: 12ch;
  }

  .home-hero-stage {
    min-height: 560px;
  }

  .home-modules-grid,
  .home-workflow-grid,
  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-gallery-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page.page-home {
    width: calc(100% - 24px);
    padding-bottom: 38px;
  }

  .home-landing {
    gap: 24px;
  }

  .home-title {
    max-width: none;
    font-size: clamp(2.3rem, 12vw, 2.6rem);
  }

  .home-description {
    font-size: 0.94rem;
  }

  .home-signal-list,
  .home-modules-grid,
  .home-workflow-grid,
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head,
  .home-cta-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .home-hero-stage {
    min-height: 500px;
  }

  .home-stage-card-main {
    inset: 10% 0 11% 4%;
  }

  .home-stage-card-main .home-stage-card-media {
    height: 330px;
  }

  .home-stage-card-floating {
    width: 176px;
  }

  .home-stage-card-character {
    right: 0;
  }

  .home-stage-card-environment {
    left: 0;
  }

  .home-cta-panel {
    padding: 24px;
  }
}
