:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(14, 29, 48, 0.86);
  --panel-strong: #10243a;
  --line: rgba(171, 205, 232, 0.14);
  --text: #f2f7fb;
  --muted: #9bb0c2;
  --accent: #61e6bc;
  --accent-strong: #27c99a;
  --blue: #6aa8ff;
  --danger: #ff9f9f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(56, 150, 184, 0.16), transparent 38rem),
    linear-gradient(145deg, #07111f 0%, #091827 55%, #071421 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient { position: fixed; z-index: -1; width: 30rem; height: 30rem; border-radius: 50%; filter: blur(100px); opacity: .12; }
.ambient-one { top: -10rem; right: -8rem; background: var(--accent); }
.ambient-two { bottom: -14rem; left: -12rem; background: var(--blue); }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 46px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #061510; background: var(--accent); box-shadow: 0 10px 28px rgba(39, 201, 154, .22); }
.secure-badge { margin-left: auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; }
.secure-badge::before { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); content: ""; box-shadow: 0 0 0 4px rgba(97,230,188,.08); }

.panel { border: 1px solid var(--line); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.form-layout { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 570px; overflow: hidden; }
.intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 7vw, 82px); background: linear-gradient(145deg, rgba(53, 130, 166, .13), transparent 60%); }
.request-form { display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: clamp(32px, 6vw, 70px); border-left: 1px solid var(--line); background: rgba(5, 14, 25, .26); }

.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 20px; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 10px; font-size: clamp(25px, 3vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.lead { max-width: 600px; margin-bottom: 30px; color: #c0cfdb; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.lead.narrow { max-width: 580px; text-align: center; }
.muted, .privacy-note, .card-copy p, .guide p { color: var(--muted); line-height: 1.55; }
.muted { margin-bottom: 17px; font-size: 14px; }

.trust-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; color: #d7e2ea; }
.trust-list li { display: flex; align-items: center; gap: 14px; }
.trust-list span, .step-number { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

label { color: #d9e5ed; font-size: 13px; font-weight: 700; }
label span { color: var(--muted); font-weight: 500; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--text); background: rgba(4, 13, 23, .5); font: inherit; transition: border-color .18s, box-shadow .18s, background .18s; }
input { height: 52px; padding: 0 16px; }
textarea { min-height: 96px; padding: 14px 16px; resize: vertical; }
input:focus, textarea:focus { border-color: rgba(97, 230, 188, .65); background: rgba(4, 13, 23, .72); box-shadow: 0 0 0 4px rgba(97, 230, 188, .08); }
::placeholder { color: #657a8d; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid transparent; border-radius: 14px; cursor: pointer; color: var(--text); font: inherit; font-weight: 800; text-decoration: none; transition: transform .16s, background .16s, border-color .16s, opacity .16s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 3px solid rgba(106, 168, 255, .55); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .58; transform: none; }
.button.primary { color: #031711; background: var(--accent); box-shadow: 0 13px 28px rgba(39, 201, 154, .17); }
.button.primary:hover { background: #79edc7; }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.045); }
.button.secondary:hover { border-color: rgba(171,205,232,.28); background: rgba(255,255,255,.075); }
.request-form .button { margin-top: 8px; }
.privacy-note { margin: 2px 0 0; text-align: center; font-size: 12px; }
.error { margin: 2px 0; color: var(--danger); font-size: 13px; }

.centered-view { display: flex; min-height: 570px; align-items: center; flex-direction: column; justify-content: center; padding: 54px 24px; text-align: center; }
.centered-view h1 { font-size: clamp(36px, 5vw, 60px); }
.spinner { width: 44px; height: 44px; margin-bottom: 25px; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.waiting-orbit { position: relative; display: grid; width: 92px; height: 92px; margin-bottom: 30px; place-items: center; border: 1px solid rgba(97,230,188,.26); border-radius: 50%; animation: breathe 2s ease-in-out infinite; }
.waiting-orbit::before, .waiting-orbit::after { position: absolute; border: 1px solid rgba(97,230,188,.12); border-radius: 50%; content: ""; }
.waiting-orbit::before { inset: 10px; }
.waiting-orbit::after { inset: 23px; }
.waiting-orbit span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent); }
.status-pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.status-pill span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--blue); animation: blink 1.5s infinite; }
.state-icon { display: grid; width: 64px; height: 64px; margin-bottom: 24px; place-items: center; border: 1px solid var(--line); border-radius: 20px; color: var(--accent); background: rgba(255,255,255,.04); font-size: 30px; }

.ready-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 22px; align-items: start; }
.access-column { display: grid; gap: 18px; }
.ready-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 8px 4px 12px; }
.ready-heading h1 { margin: 0; font-size: clamp(39px, 5vw, 62px); }
.timer-card { flex: 0 0 auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; text-align: right; background: rgba(9, 23, 38, .72); }
.timer-card span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.timer-card strong { color: var(--accent); font-size: 20px; font-variant-numeric: tabular-nums; }
.access-card { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.qr { display: block; width: 190px; height: 190px; padding: 10px; border-radius: 19px; background: white; }
.card-copy h2 { margin-top: 8px; }
.card-copy p { max-width: 430px; margin-bottom: 20px; }
.card-copy .button { min-width: 210px; }
.guide { position: sticky; top: 24px; padding: 31px; }
.guide ol { display: grid; gap: 24px; margin: 28px 0; padding: 0; list-style: none; }
.guide li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; }
.guide li > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(97,230,188,.2); border-radius: 11px; color: var(--accent); background: rgba(97,230,188,.06); font-size: 12px; font-weight: 800; }
.guide strong { font-size: 14px; }
.guide li p { margin: 5px 0 0; font-size: 13px; }
.desktop-note { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(106,168,255,.05); }
.desktop-note p { margin: 5px 0 0; font-size: 13px; }

.modal { position: fixed; inset: 0; z-index: 20; display: grid; padding: 20px; place-items: center; background: rgba(2, 8, 14, .78); backdrop-filter: blur(14px); }
.modal-card { width: min(480px, 100%); padding: 38px; border: 1px solid rgba(255, 190, 111, .2); border-radius: 25px; background: #102033; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.modal-card p:not(.eyebrow) { color: #c1d0dc; line-height: 1.65; }
.modal-card .button { width: 100%; margin-top: 10px; }
.warning-icon { display: grid; width: 48px; height: 48px; margin-bottom: 24px; place-items: center; border-radius: 15px; color: #231405; background: #ffc878; font-size: 24px; font-weight: 900; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 30; max-width: min(420px, calc(100% - 40px)); padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: #152b42; box-shadow: var(--shadow); }
footer { padding: 28px 0 4px; color: #698095; text-align: center; font-size: 12px; }
.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 0 40px rgba(97,230,188,.08); } }
@keyframes blink { 50% { opacity: .3; } }

@media (max-width: 900px) {
  .brand { margin-bottom: 28px; }
  .form-layout, .ready-layout { grid-template-columns: 1fr; }
  .request-form { border-top: 1px solid var(--line); border-left: 0; }
  .intro { padding-bottom: 44px; }
  .guide { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .secure-badge { padding: 7px; font-size: 0; }
  .secure-badge::before { margin: 0; }
  .panel { border-radius: 22px; }
  .intro, .request-form { padding: 30px 23px; }
  .form-layout { min-height: auto; }
  .centered-view { min-height: 520px; }
  h1 { font-size: 42px; }
  .ready-heading { align-items: start; flex-direction: column; }
  .timer-card { text-align: left; }
  .access-card { grid-template-columns: 1fr; padding: 22px; text-align: center; }
  .qr { width: min(220px, 100%); height: auto; margin: 0 auto; }
  .card-copy p { margin-right: auto; margin-left: auto; }
  .card-copy .button { width: 100%; min-width: 0; }
  .guide { padding: 25px 22px; }
  .modal-card { padding: 30px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
