:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #18181b;
  --muted: #71717a;
  --soft: #f4f4f5;
  --border: #e4e4e7;
  --success: #15803d;
  --success-soft: #f0fdf4;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(244 244 245 / 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgb(244 244 245 / 0.42) 1px, transparent 1px),
    var(--background);
  background-size: 32px 32px;
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 72% 45%, rgb(228 228 231 / 0.72), transparent 31rem);
  content: "";
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 5px;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.16);
  transform: translateY(-72px);
  transition: transform 180ms ease;
}

.skip-link:focus {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
  transform: translateY(0);
}

.page-shell {
  display: grid;
  width: min(1180px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  border-radius: 3px;
}

.brand:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 4px;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
}

.build-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.86);
  color: #52525b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.build-status > span {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--foreground);
}

.build-status > span::after {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--foreground);
  border-radius: inherit;
  content: "";
  animation: pulse 2.4s ease-out infinite;
}

main {
  display: grid;
  align-items: center;
  padding: 20px 0 44px;
  outline: none;
}

.hero {
  display: grid;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 21px;
  color: #52525b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.2rem, 5.7vw, 5.25rem);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 0.99;
}

h1 span {
  position: relative;
  display: inline-block;
}

h1 span::after {
  position: absolute;
  right: 1%;
  bottom: -9px;
  left: 1%;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 0 0;
  border-radius: 50%;
  content: "";
  opacity: 0.28;
  transform: rotate(-1deg);
}

.intro {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.75;
}

.ready-note {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 31px;
  padding: 10px 15px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.04);
  backdrop-filter: blur(8px);
}

.note-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--foreground);
  color: var(--background);
  place-items: center;
}

.note-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ready-note strong,
.ready-note small {
  display: block;
}

.ready-note strong {
  margin-bottom: 2px;
  font-size: 0.83rem;
}

.ready-note small {
  color: var(--muted);
  font-size: 0.7rem;
}

.order-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  isolation: isolate;
}

.order-visual::before {
  position: absolute;
  z-index: -3;
  width: min(96%, 480px);
  aspect-ratio: 1;
  border: 1px solid #ededee;
  border-radius: 49% 51% 43% 57% / 55% 41% 59% 45%;
  background: rgb(250 250 250 / 0.9);
  content: "";
  transform: rotate(-5deg);
}

.scene {
  position: absolute;
  z-index: -2;
  width: min(115%, 580px);
  height: 430px;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at center, black 36%, transparent 72%);
  pointer-events: none;
  user-select: none;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px dashed rgb(161 161 170 / 0.55);
  border-radius: 50%;
  animation: spin 32s linear infinite;
}

.orbit::after {
  position: absolute;
  top: 16%;
  left: 7%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--background);
  border-radius: 50%;
  background: var(--foreground);
  box-shadow: 0 0 0 4px rgb(24 24 27 / 0.08);
  content: "";
}

.orbit-outer {
  width: 95%;
  max-width: 500px;
  aspect-ratio: 1;
}

.orbit-inner {
  width: 77%;
  max-width: 405px;
  aspect-ratio: 1;
  animation-direction: reverse;
  animation-duration: 27s;
}

.order-card {
  position: absolute;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.14);
}

.card-back {
  z-index: 1;
  width: min(76%, 360px);
  height: 316px;
  border-radius: 10px;
  opacity: 0.62;
  transform: translate(34px, -25px) rotate(5deg);
}

.card-back span {
  display: block;
  width: 57%;
  height: 9px;
  margin: 27px 26px;
  border-radius: 999px;
  background: #e4e4e7;
}

.card-back span:last-child {
  width: 36%;
  margin-top: -16px;
}

.card-main {
  z-index: 2;
  width: min(84%, 400px);
  padding: 23px;
  border-radius: 10px;
  animation: float 5.4s ease-in-out infinite;
  transform: translate(-10px, 17px) rotate(-1.4deg);
}

.card-main > header,
.card-main > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-main header p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.67rem;
}

.order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: active-dot 1.8s ease-in-out infinite;
}

.order-name {
  padding: 25px 0 22px;
}

.order-name span,
.order-name strong {
  display: block;
}

.order-name span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.order-name strong {
  font-size: clamp(2.3rem, 5vw, 3.45rem);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 1;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.65rem;
}

.progress-copy strong {
  color: var(--foreground);
  font-weight: 600;
}

.progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e4e7;
}

.progress-track > span {
  position: relative;
  display: block;
  width: 64%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--foreground);
  animation: progress-arrival 1.2s ease-out both;
}

.progress-track > span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.4), transparent);
  content: "";
  animation: shine 2.8s ease-in-out infinite;
  transform: translateX(-100%);
}

.steps {
  position: relative;
  display: grid;
  margin: 21px 0 20px;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.steps::before {
  position: absolute;
  top: 11px;
  right: 16.5%;
  left: 16.5%;
  height: 1px;
  background: var(--border);
  content: "";
}

.steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.steps li > span {
  display: grid;
  width: 23px;
  height: 23px;
  border: 1px solid #d4d4d8;
  border-radius: 50%;
  background: var(--background);
  place-items: center;
}

.steps li > span svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.steps .complete > span {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

.steps .active > span {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgb(21 128 61 / 0.09);
}

.steps .active > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: active-dot 1.8s ease-in-out infinite;
}

.steps small {
  color: var(--muted);
  font-size: 0.58rem;
  text-align: center;
}

.steps .active small {
  color: var(--success);
  font-weight: 650;
}

.card-main > footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.68rem;
}

.card-main > footer strong {
  color: var(--foreground);
  font-size: 0.72rem;
}

.floating-mark {
  position: absolute;
  z-index: 3;
  display: grid;
  border: 5px solid var(--background);
  border-radius: 50%;
  box-shadow: 0 14px 26px rgb(0 0 0 / 0.18);
  place-items: center;
}

.floating-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mark-ready {
  bottom: 12%;
  left: 4%;
  width: 55px;
  height: 55px;
  background: var(--success);
  color: var(--background);
  animation: float 5s 0.8s ease-in-out infinite;
}

.mark-spark {
  top: 12%;
  right: 6%;
  width: 64px;
  height: 64px;
  background: var(--foreground);
  color: var(--background);
  animation: float 4.7s ease-in-out infinite reverse;
}

.mark-spark svg {
  fill: currentColor;
  stroke: none;
}

.site-footer {
  padding: 16px 0 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  color: var(--foreground);
  font-weight: 500;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes active-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.72);
  }
}

@keyframes progress-arrival {
  from {
    width: 0;
  }
}

@keyframes shine {
  0%,
  42% {
    transform: translateX(-100%);
  }

  72%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(calc(100% - 40px), 680px);
  }

  main {
    padding-top: 52px;
  }

  .hero {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  h1,
  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .ready-note {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .order-visual {
    min-height: 475px;
  }
}

@media (max-width: 540px) {
  .page-shell {
    width: min(calc(100% - 28px), 480px);
  }

  .site-header {
    padding-top: 16px;
  }

  .brand img {
    height: 38px;
  }

  .build-status {
    padding: 7px 9px;
    font-size: 0.61rem;
  }

  main {
    padding: 45px 0 32px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 0.65rem;
  }

  h1 {
    font-size: clamp(2.75rem, 13.5vw, 3.8rem);
  }

  .intro {
    margin-top: 25px;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .ready-note {
    width: 100%;
    margin-top: 27px;
  }

  .order-visual {
    min-height: 420px;
  }

  .card-main {
    width: 89%;
    padding: 19px;
  }

  .card-back {
    width: 82%;
    height: 300px;
  }

  .order-name {
    padding: 22px 0 19px;
  }

  .order-name strong {
    font-size: 2.75rem;
  }

  .mark-spark {
    top: 9%;
    right: -1%;
    width: 56px;
    height: 56px;
  }

  .mark-ready {
    bottom: 9%;
    left: -1%;
    width: 51px;
    height: 51px;
  }

  .site-footer {
    align-items: flex-start;
    gap: 6px;
    flex-direction: column;
  }
}

@media (max-width: 370px) {
  .build-status {
    max-width: 104px;
    line-height: 1.25;
    text-align: right;
  }

  .ready-note small {
    max-width: 225px;
  }

  .status-pill {
    padding: 5px 7px;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .build-status > span::after,
  .orbit,
  .card-main,
  .status-pill i,
  .progress-track > span,
  .progress-track > span::after,
  .steps .active > span i,
  .floating-mark {
    animation: none;
  }
}
