:root {
  color-scheme: light;
  --green: #07130f;
  --green-2: #102820;
  --gold: #e4bd63;
  --paper: #06100d;
  --card: rgba(255, 250, 240, 0.78);
  --ink: #fff8ea;
  --muted: rgba(255, 248, 234, 0.72);
  --line: rgba(255, 255, 255, 0.2);
  --danger: #9b2f22;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 6%, rgba(228, 189, 99, 0.22), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(150, 210, 255, 0.16), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(31, 63, 52, 0.7), transparent 48%),
    linear-gradient(145deg, #06100d, #102820 54%, #1f3f34);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  pointer-events: none;
  position: fixed;
}

.shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  position: relative;
  z-index: 2;
}

.ambient {
  border-radius: 999px;
  filter: blur(34px);
  pointer-events: none;
  position: fixed;
  transform: translateZ(0);
  z-index: 0;
}

.ambient-a {
  background: rgba(228, 189, 99, 0.26);
  height: 15rem;
  left: -5rem;
  top: 4rem;
  width: 15rem;
}

.ambient-b {
  background: rgba(139, 202, 255, 0.16);
  height: 18rem;
  right: -7rem;
  top: 1rem;
  width: 18rem;
}

.opening-sheen {
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.34), rgba(228, 189, 99, 0.22), transparent 72%);
  height: 100vh;
  left: -55%;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: skewX(-18deg);
  width: 45%;
  z-index: 3;
}

.hero {
  margin: 24px 0;
  padding: clamp(26px, 9vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(7, 19, 15, 0.72);
  color: #fff7e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 28px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  position: relative;
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
  backdrop-filter: blur(26px) saturate(1.28);
}

.hero::after {
  background: radial-gradient(circle at 25% 12%, rgba(255, 255, 255, 0.2), transparent 32%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero.compact {
  padding: 26px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 9vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card {
  margin: 18px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(255, 250, 240, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.card.narrow {
  max-width: 460px;
  margin: 12vh auto 0;
}

.stack {
  display: grid;
  gap: 16px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #102820;
  font: inherit;
  padding: 12px 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
.action-card:focus-within {
  outline: 3px solid rgba(200, 155, 60, 0.48);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4c7, var(--gold));
  color: #fff7e8;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 22px;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(228, 189, 99, 0.22);
  color: #07130f;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.button.secondary {
  background: linear-gradient(135deg, #9fe0ff, #f6d87e);
  color: var(--green);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff8ea;
  border: 1px solid var(--line);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.action-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.action-card:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.check {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
}

.check input {
  width: 22px;
  min-height: 22px;
  margin-top: 4px;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-weight: 800;
}

.queue {
  display: grid;
  gap: 8px;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress > div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #9fe0ff, var(--gold));
  transition: width 160ms ease;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-grid .card {
  margin: 0;
}

.dashboard-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.dashboard-grid strong,
.pin {
  display: block;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}

.inline {
  display: inline-flex;
  margin: 6px 8px 6px 0;
}

.access-help {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tap-confirm {
  animation: tap-confirm 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .shell {
    animation: portal-arrive 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .opening-sheen {
    animation: opening-sheen 1.25s cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
  }

  .ambient-a {
    animation: ambient-a 7s ease-in-out infinite;
  }

  .ambient-b {
    animation: ambient-b 8s ease-in-out infinite;
  }
}

@keyframes portal-arrive {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.982);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes opening-sheen {
  0% {
    left: -58%;
    opacity: 0;
  }
  18% {
    opacity: 0.85;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes ambient-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -10px, 0) scale(1.08);
  }
}

@keyframes ambient-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 16px, 0) scale(1.06);
  }
}

@keyframes tap-confirm {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(0.975);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 16px;
  }

  .hero,
  .card {
    border-radius: 20px;
    padding: 20px;
  }

  .grid-two,
  .actions-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .access-help {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
