:root {
  --bg: #f3f6fb;
  --card: rgba(255, 255, 255, 0.92);
  --text: #142032;
  --muted: #667386;
  --accent: #3366ff;
  --accent-hover: #1f4ee1;
  --accent-soft: #eaf0ff;
  --success-soft: #e8fbef;
  --danger: #dc3545;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(33, 50, 89, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 10%, #dbe7ff 0%, rgba(219, 231, 255, 0) 42%),
    radial-gradient(circle at 95% 20%, #d8fff0 0%, rgba(216, 255, 240, 0) 40%),
    linear-gradient(160deg, #edf2ff 0%, var(--bg) 55%, #f8fbff 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.55;
  z-index: 0;
}

.bg-glow-one {
  width: 320px;
  height: 320px;
  top: -120px;
  left: -80px;
  background: #a4b9ff;
}

.bg-glow-two {
  width: 280px;
  height: 280px;
  top: 120px;
  right: -120px;
  background: #95f0cf;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(50, 90, 180, 0.12);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-brand {
  text-decoration: none;
  color: var(--text);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(66, 105, 212, 0.18);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-pill img {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  border-radius: 10px;
  transition: 0.18s ease;
}

.site-nav a:hover {
  background: var(--accent-soft);
}

.site-nav .nav-muted {
  color: #576070;
}

.wrap {
  max-width: 930px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.6rem;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--card);
  border: 1px solid rgba(65, 93, 160, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.glass {
  backdrop-filter: blur(7px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: center;
}

.hero-art img {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0;
  color: #334055;
  font-size: 1.04rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.37rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: #2a3d66;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0.9rem 0;
}

.stat-card h3 {
  margin: 0;
  font-size: 1rem;
}

.stat-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-block {
  margin-top: 0.9rem;
}

.section-title {
  margin: 0 0 0.9rem;
  font-size: 1.18rem;
}

.benefits {
  margin: 0;
  padding-left: 1rem;
}

.benefits li {
  margin-bottom: 0.58rem;
}

.modern-list {
  list-style: none;
  padding: 0;
}

.modern-list li {
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}

.modern-list span {
  font-size: 1.12rem;
  line-height: 1.1;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.1rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  padding: 0.92rem 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent) 0%, #4d7bff 100%);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(51, 102, 255, 0.26);
  transition: 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-hover) 0%, #3b69ef 100%);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(51, 102, 255, 0.3);
  box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--accent-soft);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.footer-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.3rem 0 0;
}

h1 {
  font-size: 1.55rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.sub {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0 0 1rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

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

.steps-visual {
  margin: 0.85rem 0 1rem;
  text-align: center;
}

.steps-visual img {
  width: min(100%, 620px);
  height: auto;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.9rem;
}

.form-shell {
  max-width: 640px;
  margin: 0 auto;
}

.form-head {
  margin-bottom: 0.55rem;
}

.inline-tip {
  margin: 0.6rem 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #edf4ff;
  border: 1px solid #cfddff;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: #355486;
  font-size: 0.92rem;
}

.inline-tip img {
  width: 22px;
  height: 22px;
}

.submit-row {
  margin-top: 1.25rem;
}

label {
  display: block;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
  color: #22314f;
}

input,
select {
  width: 100%;
  padding: 0.66rem 0.78rem;
  border: 1px solid #c9d4e7;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #7aa0ff;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.success-card {
  max-width: 650px;
  margin: 0 auto;
  border: 1px solid #cfe6d8;
  background: linear-gradient(180deg, #fbfffd 0%, #f4fff8 100%);
}

.success-badge {
  display: inline-block;
  background: var(--success-soft);
  color: #27724b;
  border: 1px solid #bde8cc;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.5rem;
}

.h-small {
  font-size: 1rem;
  margin: 1.25rem 0 0.35rem;
}

.url-box {
  word-break: break-all;
  background: var(--accent-soft);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
}

.url-box a {
  color: var(--accent);
  font-weight: 700;
}

.qr-wrap {
  text-align: center;
  margin: 0.75rem 0 1rem;
}

.qr-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #d8e2f5;
  background: white;
  padding: 0.4rem;
}

.queue-card {
  max-width: 680px;
  margin: 0 auto;
}

.queue-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.queue-head img {
  width: 56px;
  height: 56px;
}

.result-box {
  background: #eef4ff;
  border: 1px solid #d6e4ff;
  border-radius: 13px;
  padding: 0.5rem 0.8rem;
}

.num {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin: 0.7rem 0 0.8rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.latest-box {
  border-top: 1px dashed #d0d9eb;
  padding-top: 0.8rem;
}

.tag-passed {
  margin-left: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #27724b;
  background: #e8fbef;
  border: 1px solid #bde8cc;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
}

.hint-gentle {
  font-size: 0.9rem;
  color: #355486;
  background: #edf4ff;
  border: 1px solid #cfddff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0.8rem 0 1rem;
}

.msg {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.msg.err {
  background: #fde8ea;
  color: #842029;
}

.msg.ok {
  background: #d1e7dd;
  color: #0f5132;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid #e4e9f4;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-danger {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #c6243a;
  cursor: pointer;
  text-decoration: underline;
}

.link-danger:hover {
  color: #a11428;
}

a {
  color: var(--accent);
}

header.nav {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

header.nav a {
  margin-right: 1rem;
}

@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }
}
