:root {
  --page-background: #ffffff;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-elevated: #ffffff;
  --surface-edge: rgba(19, 26, 39, 0.1);
  --panel-fill: rgba(248, 250, 252, 0.92);
  --panel-strong: rgba(239, 244, 249, 0.94);
  --text: #182233;
  --muted: #5f6b7e;
  --accent: #d81b60;
  --accent-soft: rgba(216, 27, 96, 0.08);
  --accent-strong: #b5124f;
  --success: #168f63;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-display);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 27, 96, 0.08), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(216, 27, 96, 0.06), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 56%, #f3f6fb 100%);
}

.page-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
}

.phase-stack {
  width: min(100%, 58rem);
}

.phase-card[hidden] {
  display: none;
}

.phase-card {
  position: relative;
  border: 1px solid var(--surface-edge);
  border-radius: 28px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 40px;
}

.opening-card {
  width: min(100%, 34rem);
  padding: 54px 42px;
  text-align: center;
}

.visual-stage {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 9rem;
  margin: 24px 0 10px;
}

.startup-graphic,
.redirect-graphic {
  position: relative;
  width: 8.75rem;
  height: 8.75rem;
  flex: 0 0 auto;
}

.startup-graphic-compact {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 24px;
}

.startup-ring,
.startup-core,
.startup-satellite {
  position: absolute;
  border-radius: 999px;
}

.startup-ring {
  inset: 0;
  border: 2px solid rgba(216, 27, 96, 0.16);
  animation: startupBreath 3.2s ease-in-out infinite;
}

.startup-ring-middle {
  inset: 14%;
  animation-delay: 0.28s;
}

.startup-ring-inner {
  inset: 28%;
  animation-delay: 0.56s;
}

.startup-core {
  inset: 40%;
  background: linear-gradient(135deg, rgba(216, 27, 96, 0.9), rgba(181, 18, 79, 0.8));
  box-shadow: 0 0 24px rgba(216, 27, 96, 0.24);
}

.startup-satellite {
  top: 50%;
  left: 50%;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: -0.475rem;
  margin-left: -0.475rem;
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.startup-satellite-one {
  animation: orbitOne 2.6s linear infinite;
}

.startup-satellite-two {
  width: 0.78rem;
  height: 0.78rem;
  margin-top: -0.39rem;
  margin-left: -0.39rem;
  animation: orbitTwo 3.6s linear infinite;
}

.redirect-graphic {
  overflow: hidden;
}

.redirect-window,
.redirect-track,
.redirect-arrow {
  position: absolute;
}

.redirect-window {
  top: 24%;
  width: 2.35rem;
  height: 3.3rem;
  border-radius: 0.95rem;
  border: 2px solid rgba(216, 27, 96, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 251, 0.92));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.redirect-window::before {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  top: 18%;
  bottom: 18%;
  border-radius: 0.6rem;
  background: linear-gradient(180deg, rgba(216, 27, 96, 0.18), rgba(216, 27, 96, 0.05));
}

.redirect-window-source {
  left: 8%;
}

.redirect-window-target {
  right: 8%;
}

.redirect-track {
  left: 26%;
  right: 26%;
  top: 50%;
  height: 0.24rem;
  margin-top: -0.12rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216, 27, 96, 0.08), rgba(216, 27, 96, 0.48), rgba(216, 27, 96, 0.08));
}

.redirect-arrow {
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: -0.575rem;
  border-top: 0.22rem solid var(--accent);
  border-right: 0.22rem solid var(--accent);
  transform: rotate(45deg);
  opacity: 0;
  animation: handoffSweep 1.8s linear infinite;
}

.redirect-arrow-one {
  animation-delay: 0s;
}

.redirect-arrow-two {
  animation-delay: 0.42s;
}

.redirect-arrow-three {
  animation-delay: 0.84s;
}

.brandmark {
  display: block;
  width: min(10rem, 36vw);
  margin-bottom: 22px;
}

.opening-card .brandmark {
  margin: 0 auto 28px;
}

.opening-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.opening-copy {
  max-width: 26rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.phase-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-panel {
  margin-top: 30px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(19, 26, 39, 0.08);
  background: var(--panel-fill);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-dot {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.35);
  animation: pulse 1.8s infinite;
}

.status-dot.ready {
  background: var(--success);
  box-shadow: 0 0 24px rgba(22, 143, 99, 0.2);
  animation: none;
}

.status-dot.handoff {
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.26);
  animation: handoffPulse 1.1s ease-in-out infinite;
}

.status-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.status-grid div {
  padding: 16px;
  border-radius: 16px;
  background: var(--panel-strong);
}

.status-grid dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-grid dd {
  margin: 8px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.progress-track {
  margin-top: 20px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 26, 39, 0.08);
}

.progress-track-handoff {
  background: rgba(216, 27, 96, 0.12);
}

.progress-bar {
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transition: width 0.35s ease;
}

.progress-bar-handoff {
  width: 42%;
  background: linear-gradient(90deg, rgba(216, 27, 96, 0) 0%, var(--accent) 35%, var(--accent-strong) 68%, rgba(216, 27, 96, 0) 100%);
  animation: handoffProgress 1.35s linear infinite;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.primary-action {
  color: var(--text);
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.secondary-action {
  color: var(--text);
  border: 1px solid rgba(19, 26, 39, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  box-shadow: 0 14px 28px rgba(216, 27, 96, 0.18);
}

.secondary-action:hover {
  border-color: rgba(19, 26, 39, 0.24);
}

.fine-print {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.32);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(216, 27, 96, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(216, 27, 96, 0);
  }
}

@keyframes startupBreath {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes orbitOne {
  from {
    transform: rotate(0deg) translateX(3rem) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(3rem) rotate(-360deg);
  }
}

@keyframes orbitTwo {
  from {
    transform: rotate(360deg) translateX(2.05rem) rotate(-360deg);
  }

  to {
    transform: rotate(0deg) translateX(2.05rem) rotate(0deg);
  }
}

@keyframes handoffSweep {
  0% {
    left: 30%;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  68% {
    opacity: 1;
  }

  100% {
    left: 62%;
    opacity: 0;
  }
}

@keyframes handoffPulse {
  0%,
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.2);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(216, 27, 96, 0);
  }
}

@keyframes handoffProgress {
  from {
    transform: translateX(-140%);
  }

  to {
    transform: translateX(240%);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px;
  }

  .hero-card {
    padding: 28px 22px;
  }

  .opening-card {
    padding: 44px 24px;
  }

  .visual-stage {
    min-height: 7.5rem;
    margin: 20px 0 6px;
  }

  .startup-graphic,
  .redirect-graphic {
    width: 7rem;
    height: 7rem;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}