:root {
  color-scheme: light;
  --primary: #ff3b7f;
  --accent: #ff3b7f;
  --on-primary: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --ink: #0b0b0f;
  --ink-muted: #6b6b77;
  --divider: #e7e7ee;
  --shadow: rgba(11, 11, 15, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.72), transparent 28rem),
    linear-gradient(135deg, #515bd4 0%, #8134af 28%, #dd2a7b 58%, #fd1d1d 78%, #feda77 100%);
  color: var(--ink);
  overflow-x: hidden;
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

.shell {
  width: min(720px, 100%);
}

.landing {
  place-items: stretch;
  padding: 0;
  color: var(--on-primary);
}

.landing-shell {
  width: min(760px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: clamp(20px, 5vw, 56px);
}

@supports (min-height: 100dvh) {
  .landing-shell {
    min-height: 100dvh;
  }
}

.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2.5vw, 20px);
  width: 100%;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px var(--shadow);
  padding: clamp(28px, 7vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.1rem, 12vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.hero-card h1 {
  font-size: clamp(2.7rem, 10vw, 5.8rem);
}

p {
  max-width: 34rem;
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2.6vw, 1.22rem);
  line-height: 1.55;
}

.landing p {
  color: var(--ink-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-primary);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: var(--surface-alt);
  color: var(--ink);
}

.brand-stage {
  width: min(390px, 88vw);
  height: clamp(210px, 34vw, 290px);
  margin-top: 0;
  filter: drop-shadow(0 30px 58px rgba(11, 11, 15, 0.28));
  overflow: hidden;
}

.brand-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.staircase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  width: min(260px, 72vw);
  height: 126px;
  margin-top: 36px;
}

.brand-stage .staircase {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.brand-stage .step:nth-child(1) {
  height: 42px;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.72);
}

.brand-stage .step:nth-child(2) {
  height: 78px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.78);
}

.brand-stage .step:nth-child(3) {
  height: 114px;
  background: var(--on-primary);
  border-color: rgba(255, 255, 255, 0.86);
}

.step {
  border-radius: 14px 14px 8px 8px;
  background: var(--surface-alt);
  border: 1px solid var(--divider);
}

.step:nth-child(1) {
  height: 34px;
}

.step:nth-child(2) {
  height: 54px;
}

.step:nth-child(3) {
  height: 74px;
}

.step:nth-child(4) {
  height: 94px;
}

.step:nth-child(5) {
  height: 114px;
  background: var(--accent);
  border-color: var(--accent);
}

.footnote {
  margin-top: 22px;
  font-size: 0.92rem;
}

.hero-card {
  width: 100%;
}

@media (max-width: 520px) {
  body {
    padding: 0;
  }

  .card {
    border-radius: 28px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .landing-shell {
    align-items: center;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .brand-stage {
    width: min(340px, 88vw);
    height: 220px;
  }
}
