:root {
  --bg: #12090a;
  --ink: #f7f1ee;
  --muted: #a39290;
  --line: rgba(247, 241, 238, 0.1);
  --accent: #e31b23;
  --accent-2: #ff6b57;
  --surface: rgba(32, 18, 18, 0.78);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 32px;
  --font: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  top: -12vw;
  left: -8vw;
  background: #7a1418;
}

.orb-b {
  right: -10vw;
  bottom: 8vh;
  background: #4a1a12;
}

.watermark {
  position: fixed;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: clamp(64px, 18vw, 220px);
  font-weight: 800;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: rgba(242, 239, 230, 0.035);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.topbar,
.stage,
.foot {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + var(--safe-t)) 22px 8px;
  max-width: 760px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

.build-chip {
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.stage {
  padding: 12px 16px 120px;
}

.ticket {
  position: relative;
  width: min(560px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ticket-glow {
  position: absolute;
  inset: auto 0 -40%;
  height: 55%;
  background: radial-gradient(circle at 50% 0, rgba(227, 27, 35, 0.22), transparent 62%);
  pointer-events: none;
}

.hero {
  padding: 36px 28px 8px;
  text-align: center;
}

.icon-orbit {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 8px auto 22px;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(227, 27, 35, 0.28);
  border-radius: 38px;
}

.ring-1 {
  inset: -10px;
  animation: spin 18s linear infinite;
  border-style: dashed;
}

.ring-2 {
  inset: -22px;
  border-radius: 46px;
  opacity: 0.45;
  animation: spin 28s linear infinite reverse;
}

.app-icon {
  width: 132px;
  height: 132px;
  object-fit: cover;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(227, 27, 35, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.slogan {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 26px 0 18px;
  margin: 0;
}

.meta li {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.perforation {
  height: 28px;
  margin: 4px 0 2px;
  background:
    radial-gradient(circle at 0 50%, var(--bg) 12px, transparent 13px),
    radial-gradient(circle at 100% 50%, var(--bg) 12px, transparent 13px),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 6px,
      rgba(242, 239, 230, 0.2) 6px,
      rgba(242, 239, 230, 0.2) 12px
    );
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: left center, right center, center;
  background-size: 24px 28px, 24px 28px, 100% 1px;
}

.actions,
.help {
  padding: 8px 24px 24px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions.is-ios .btn-ios {
  order: 0;
}

.actions.is-ios .btn-primary {
  order: 1;
}

.btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--bg);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px rgba(227, 27, 35, 0.28);
}

.btn-ios {
  position: relative;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.btn-ios.is-ready {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: 0;
  box-shadow: 0 10px 30px rgba(227, 27, 35, 0.28);
}

.btn-note {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: rgba(227, 27, 35, 0.16);
}

.btn-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.btn-label {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
}

.help-toggle {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.help-toggle.is-open .chevron {
  transform: rotate(225deg);
}

.steps {
  margin: 0;
  padding-left: 18px;
  color: #d7d3c8;
  font-size: 14px;
  line-height: 1.75;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 20px calc(28px + var(--safe-b));
}

.legal {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.legal a {
  text-decoration: none;
  opacity: 0.8;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, transparent, rgba(10, 12, 11, 0.92) 36%);
  transform: translateY(120%);
  transition: transform 0.28s ease;
}

.dock.is-on {
  transform: none;
}

.btn-dock {
  max-width: 560px;
  margin: 0 auto;
  display: block;
  font-weight: 800;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(6, 8, 7, 0.88);
  color: var(--ink);
  padding: 18px;
}

.mask-arrow {
  position: absolute;
  top: 6px;
  right: 18px;
  width: 86px;
  color: var(--accent);
  animation: nudge 1.2s ease-in-out infinite;
}

.mask-card {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 110px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #141816;
}

.mask-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.mask-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 15;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sheet-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(16px + var(--safe-b));
  padding: 24px;
  border-radius: 24px;
  background: #161a18;
  border: 1px solid var(--line);
}

.sheet-card h3 {
  margin: 0 0 8px;
}

.sheet-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.sheet-card input {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #0f1211;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

.form-error {
  color: #ff8d8d !important;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 12;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1c211e;
  border: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes nudge {
  50% {
    transform: translate(6px, -6px);
  }
}

@media (min-width: 860px) {
  .dock {
    display: none;
  }

  .stage {
    padding-bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
