:root {
  color-scheme: light;
  --blue-950: #062863;
  --blue-800: #073b91;
  --blue-600: #1976e9;
  --blue-100: #eaf4ff;
  --ink: #172033;
  --muted: #67738a;
  --line: #e5eaf1;
  --surface: #ffffff;
  --page: #edf4ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--blue-950); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(74, 151, 255, .7), transparent 31rem),
    linear-gradient(145deg, var(--blue-800), var(--blue-950) 65%);
}
.browser-gate-open { overflow: hidden; }

button, input, textarea, select { font: inherit; }

.page-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: max(38px, env(safe-area-inset-top)) 18px max(38px, env(safe-area-inset-bottom));
}

.app-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(0, 16, 52, .34);
}

.app-header {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 36px 40px 30px;
}

.app-icon {
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(18, 47, 91, .2);
}

.eyebrow, .section-label {
  margin: 0 0 7px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 7px;
  font-size: clamp(30px, 5vw, 43px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.tagline { margin-bottom: 14px; color: var(--muted); font-size: 16px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #15549e;
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 700;
}

.hero { position: relative; margin: 0 40px; overflow: hidden; border-radius: 22px; background: #b8ddf5; }
.hero::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(2, 20, 54, .78)); }
.hero img { display: block; width: 100%; aspect-ratio: 16 / 7.4; object-fit: cover; }
.hero-copy { position: absolute; z-index: 1; left: 24px; bottom: 20px; color: white; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hero-copy span { display: block; margin-bottom: 3px; font-size: 13px; }
.hero-copy strong { font-size: clamp(22px, 4vw, 31px); }
.carousel::after { display: none; }
.carousel-track { aspect-ratio: 844 / 390; }
.carousel-slide { margin: 0; height: 100%; }
.carousel-slide[hidden] { display: none; }
.carousel .carousel-slide img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }

.download-panel {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin: 30px 40px 0;
  border-radius: 20px;
  padding: 24px;
  background: var(--page);
}
.download-panel h2 { margin-bottom: 6px; font-size: 22px; }
.download-panel p:last-child { max-width: 500px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.download-actions { flex: 0 0 auto; }
.download-panel button, .profile-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: white;
  background: linear-gradient(180deg, #2c8cff, #116dde);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(25, 118, 233, .24);
}
.profile-download { text-decoration: none; }
.download-panel button[hidden] { display: none; }
.profile-download[hidden] { display: none; }
.download-panel button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.download-panel button:active { transform: translateY(1px); }
.download-panel button:focus-visible { outline: 3px solid rgba(25, 118, 233, .3); outline-offset: 3px; }
.download-panel button.is-reserved { color: #17633e; background: #dff4e8; box-shadow: none; }
.download-panel button:disabled { cursor: default; }
.download-panel button:disabled:hover { filter: none; transform: none; }
.reservation-feedback { min-height: 22px; margin: 9px 40px 0; color: #187144; text-align: right; font-size: 13px; font-weight: 800; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 40px 0; border-block: 1px solid var(--line); padding: 20px 0; }
.facts div { display: grid; gap: 5px; text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong { color: var(--blue-600); font-size: 22px; }
.facts span { color: var(--muted); font-size: 12px; }

.content-section { margin: 0 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.content-section h2 { margin-bottom: 20px; font-size: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; }
.steps li > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: white; background: var(--blue-600); font-size: 13px; font-weight: 800; }
.steps strong { font-size: 14px; }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.info-section dl { margin: 0; }
.info-section dl > div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-top: 1px solid var(--line); }
.info-section dt { color: var(--muted); }
.info-section dd { margin: 0; text-align: right; font-weight: 650; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #ef9b26; }

footer { padding: 25px 40px 30px; color: #8b95a6; background: #f6f8fb; text-align: center; font-size: 12px; line-height: 1.6; }
footer p { margin-bottom: 3px; }

.browser-gate[hidden] { display: none; }
.browser-gate {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background: rgba(4, 25, 66, .88);
  backdrop-filter: blur(10px);
}
.browser-gate-card {
  width: min(100%, 440px);
  border-radius: 24px;
  padding: 28px;
  background: white;
  box-shadow: 0 24px 70px rgba(0, 12, 40, .45);
}
.browser-gate { place-items: start end; }
.browser-gate-close { min-height: 44px; margin-top: 8px; border: 0; background: transparent; color: var(--blue-600); cursor: pointer; font: inherit; }
.browser-gate-card h2 { margin-bottom: 12px; font-size: 25px; line-height: 1.25; }
.browser-gate-lead { color: var(--muted); font-size: 15px; line-height: 1.65; }
.browser-gate-card ol { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.browser-gate-card li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.browser-gate-card li > span:first-child { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: white; background: var(--blue-600); font-size: 12px; }
.browser-gate-card label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.address-row { display: flex; gap: 8px; }
.address-row input { min-width: 0; flex: 1; border: 1px solid #ccd6e4; border-radius: 11px; padding: 0 12px; color: var(--ink); background: #f7f9fc; font-size: 13px; }
.address-row button { min-height: 46px; border: 0; border-radius: 11px; padding: 0 17px; color: white; background: var(--blue-600); font-weight: 800; }
.address-row button:focus-visible { outline: 3px solid rgba(25, 118, 233, .3); outline-offset: 2px; }
.copy-feedback { min-height: 20px; margin: 8px 0 0; color: #187144; font-size: 12px; font-weight: 700; }
.fireworks { position: fixed; z-index: 40; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qualification-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qualification-form input { min-height: 44px; min-width: 0; flex: 1 1 220px; padding: 8px; }
.qualification-form button { min-height: 44px; padding: 8px 16px; }
#qualification-feedback { margin-top: 16px; }

@media (max-width: 640px) {
  .page-shell { padding: 12px 10px 24px; }
  .app-card { border-radius: 22px; }
  .app-header { gap: 16px; padding: 24px 20px 20px; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: 29px; }
  .tagline { margin-bottom: 10px; font-size: 14px; }
  .badges span { font-size: 10px; }
  .hero { margin: 0 14px; border-radius: 16px; }
  .hero img { aspect-ratio: 16 / 9; }
  .hero-copy { left: 16px; bottom: 14px; }
  .download-panel { display: block; margin: 20px 14px 0; padding: 20px; }
  .download-actions { margin-top: 18px; }
  .download-panel button, .profile-download { width: 100%; }
  .reservation-feedback { margin-inline: 20px; text-align: center; }
  .facts { margin: 20px 20px 0; }
  .facts strong { font-size: 18px; }
  .content-section { margin: 0 20px; padding: 25px 0; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  footer { padding-inline: 22px; }
  .browser-gate-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .app-card { animation: arrive .55s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } }
}

@media (prefers-reduced-motion: reduce) {
  .download-panel button { transition: none; }
}
