@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("public/fonts/hanken-grotesk-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("public/fonts/hanken-grotesk-semibold.ttf") format("truetype");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("public/fonts/hanken-grotesk-bold.ttf") format("truetype");
}

@font-face {
  font-family: "Inter 18pt";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("public/fonts/inter-18pt-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter 18pt";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("public/fonts/inter-18pt-semibold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --purple-50: #3804b7;
  --purple-80: #8d7af1;
  --lime-50: #e2f659;
  --lime-90: #f6fbd2;
  --neutral-0: #ffffff;
  --neutral-10: #f5eff7;
  --neutral-20: #e6e0e9;
  --neutral-50: #79767d;
  --neutral-60: #605d64;
  --neutral-70: #322f35;
  --shadow-lg: 0 30px 90px rgba(56, 4, 183, 0.14);
  --shadow-md: 0 18px 44px rgba(50, 47, 53, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 16px;
  font-family: "Hanken Grotesk", sans-serif;
  color: var(--neutral-70);
  background: var(--lime-50);
}

a {
  color: inherit;
}

.page-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.stage {
  position: relative;
  overflow: hidden;
  padding: 32px 28px 164px;
  min-height: 340px;
  animation: fade-in 420ms ease both;
}

.stage-curve {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: 264px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 24px;
  align-items: end;
}

.stage-copy {
  max-width: 470px;
  animation: slide-in-left 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(56, 4, 183, 0.18);
}

.hero-brand-wordmark {
  width: min(180px, 52vw);
  height: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Inter 18pt", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-50);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--purple-50);
}

.subtitle {
  margin: 18px 0 0;
  max-width: 30rem;
  font-family: "Inter 18pt", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(56, 4, 183, 0.88);
}

.stage-illustration {
  justify-self: end;
  display: flex;
  align-items: end;
  gap: 14px;
  animation: slide-in-right 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.stage-character {
  width: min(100%, 278px);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(56, 4, 183, 0.16));
}

.stage-badge {
  width: 108px;
  height: 108px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 40px rgba(50, 47, 53, 0.12);
  backdrop-filter: blur(8px);
}

.stage-badge img {
  width: 100%;
  height: 100%;
}

.card {
  position: relative;
  z-index: 2;
  margin: -108px auto 0;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--neutral-0);
  border: 1px solid rgba(50, 47, 53, 0.08);
  box-shadow: var(--shadow-lg);
  animation: card-rise 620ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.content {
  display: grid;
  gap: 20px;
}

.status {
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(170, 200, 0, 0.26);
  background: var(--lime-90);
}

body[data-flow="auth"] .status {
  border-color: rgba(141, 122, 241, 0.22);
  background: var(--neutral-10);
}

.status strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Inter 18pt", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-50);
}

.status p {
  margin: 0;
  font-family: "Inter 18pt", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--neutral-70);
}

.path {
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-20);
  background: var(--neutral-10);
  padding: 14px 16px;
  font-family: "Inter 18pt", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--neutral-70);
  word-break: break-word;
}

.actions {
  display: grid;
  gap: 12px;
}

.primary,
.secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.primary {
  background: var(--neutral-70);
  color: var(--lime-50);
  box-shadow: var(--shadow-md);
}

.secondary {
  background: var(--neutral-0);
  color: var(--neutral-70);
  border-color: var(--neutral-20);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.action-icon-image {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.action-icon svg,
.action-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.secondary .action-icon {
  color: var(--purple-50);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.secondary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fineprint {
  margin: 0;
  font-family: "Inter 18pt", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--neutral-60);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body {
    padding: 20px 12px;
  }

  .stage {
    min-height: auto;
    padding: 24px 20px 136px;
  }

  .stage-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stage-illustration {
    justify-self: start;
  }

  .stage-character {
    width: min(100%, 180px);
  }

  .stage-badge {
    width: 88px;
    height: 88px;
    padding: 14px;
  }

  .card {
    margin-top: -78px;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

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

@media (prefers-reduced-motion: reduce) {
  .stage,
  .stage-copy,
  .stage-illustration,
  .card,
  .primary,
  .secondary {
    animation: none;
    transition: none;
  }
}
