:root {
  color-scheme: dark;
  --bg: #0f1217;
  --surface: #181d25;
  --surface-soft: #202733;
  --line: #333b49;
  --text: #f7f8fb;
  --muted: #a8b1c2;
  --accent: #38d6a3;
  --accent-2: #72b7ff;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 70% 10%, rgba(56, 214, 163, 0.14), transparent 32%),
    linear-gradient(180deg, #11161d 0%, var(--bg) 42%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.brand,
nav,
.status-strip,
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
}

nav a {
  color: var(--muted);
  font-size: 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.hero {
  display: grid;
  min-height: 380px;
  align-content: center;
  gap: 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 680px;
  font-size: 88px;
  line-height: 0.92;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 17px;
}

.lead {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.status-strip {
  flex-wrap: wrap;
}

.status-strip span,
.account-state,
.admin-state {
  border: 1px solid var(--line);
  background: rgba(24, 29, 37, 0.86);
  padding: 12px 14px;
  color: var(--muted);
}

.band {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

button,
.button-link,
input {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

button {
  padding: 0 15px;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  border-color: var(--accent);
}

.button-link {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
}

input {
  width: 100%;
  padding: 0 12px;
}

.news-grid,
.forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.news-item,
.panel {
  border: 1px solid var(--line);
  background: rgba(24, 29, 37, 0.92);
  padding: 18px;
}

.news-item {
  min-height: 164px;
}

.news-item time {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 13px;
}

.news-item p,
.panel label {
  color: var(--muted);
  line-height: 1.5;
}

.two-column {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 26px;
}

.forms {
  align-items: start;
}

.panel {
  display: grid;
  gap: 14px;
}

.panel label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--accent);
}

@media (max-width: 800px) {
  .topbar,
  .section-heading,
  .two-column {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-column,
  .news-grid,
  .forms {
    display: grid;
    grid-template-columns: 1fr;
  }

  nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 48px;
  }
}
