/* Nunito, the app's typeface. SIL Open Font License. */
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/nunito-latin-900.woff2") format("woff2");
}

/* The app's "war room": deep navy panels, gold for the main action. */
:root {
  --bg: #0b1220;
  --surface: #141e33;
  --surface-hi: #1c2a45;
  --line: #273859;
  --text: #eef3ff;
  --dim: #8c9bb8;
  --faint: #5a6a8a;
  --gold: #ffc530;
  --gold-deep: #e29e00;
  --on-gold: #2a1d00;
  --green: #35d07f;
  --blue: #4c9bff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(76, 155, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(76, 155, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  color: var(--text);
  font-family: Nunito, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--gold); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { display: block; max-width: 100%; }

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  font-size: 19px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); }
.bar nav { margin-left: auto; display: flex; gap: 18px; }
.bar nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.bar nav a:hover { color: var(--text); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.hero { padding: 64px 0 40px; text-align: center; }
.halls { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-bottom: 28px; }
.halls img { width: 96px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.halls img.big { width: 150px; }
.hero h1 { margin: 0 auto; max-width: 760px; font-weight: 900; font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 18px auto 0; max-width: 620px; color: var(--dim); font-size: 19px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  background: var(--gold);
  border-bottom: 3px solid var(--gold-deep);
  color: var(--on-gold);
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
}
.button[aria-disabled="true"] { background: var(--surface-hi); border-bottom-color: var(--line); color: var(--dim); cursor: default; }
.note { color: var(--faint); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h2 { margin: 0 0 6px; font-weight: 900; font-size: 22px; }
.card p { margin: 0; color: var(--dim); }
.tiles { display: flex; gap: 6px; margin-bottom: 16px; }
.tiles img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface-hi); }
.tiles img.hero-tile { height: 62px; }
.stat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.stat b { color: var(--green); font-weight: 900; font-size: 34px; line-height: 1; }
.stat span { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-hi); color: var(--dim); font-size: 14px; }
.chips span.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.votes { display: flex; gap: 8px; margin-bottom: 16px; }
.votes span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--surface-hi); font-size: 14px; }
.votes span:first-child { color: var(--green); }

.steps { padding: 48px 0 24px; }
.steps h2 { margin: 0 0 18px; font-weight: 900; font-size: 30px; text-align: center; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; color: var(--dim); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 900; }
.steps li b { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }

footer { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
footer .links a { color: var(--dim); text-decoration: none; }
footer .links a:hover { color: var(--text); }
footer p { margin: 6px 0; }

@media (max-width: 760px) {
  .features, .steps ol { grid-template-columns: minmax(0, 1fr); }
  .bar nav { gap: 12px; }
  .bar nav a { font-size: 14px; }
  .halls img { width: 64px; }
  .halls img.big { width: 104px; }
  .hero { padding-top: 40px; }
}
@media (max-width: 420px) {
  .bar { padding: 10px 16px; }
  .brand span { display: none; }
  .wrap { padding: 0 16px; }
  .halls img.side2 { display: none; }
}
