:root {
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --header-bg: #0f1e33;
  --header-accent: #1e3a5f;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.06);
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --error-border: #fca5a5;
  --radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-accent);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  height: 37px;
  width: auto;
  flex-shrink: 0;
}

.site-title {
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── Buttons ── */
.btn-login {
  background: transparent;
  border: 1px solid #4a7fc1;
  color: #93c5fd;
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-login:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-card {
  display: inline-block;
  margin-top: auto;
  padding: 0.45rem 1.2rem;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-card:hover {
  background: var(--accent-hover);
}

.btn-submit {
  width: 100%;
  padding: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--accent-hover);
}

/* ── Main ── */
main {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
  width: 100%;
}

.intro {
  margin-bottom: 2.5rem;
}

.intro h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.intro p {
  color: var(--text-muted);
  font-size: 1rem;
}

.tagline {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tagline p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
}

.intro-nav {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cards-section h2 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  display: block;
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1rem;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
}

.card-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 51, 0.6);
  backdrop-filter: blur(3px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  position: relative;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--text);
}

.modal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-color: var(--accent);
}

.form-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

/* ── Inline text link ── */
.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.text-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ── Intro image ── */
.intro-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* ── Asset Ledger ── */
.foundation-section {
  margin: 2.5rem 0;
  background: var(--header-bg);
  border: 1px solid var(--header-accent);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 860px;
}

.foundation-section h2 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 0.75rem;
}

.foundation-section p {
  color: #cbd5e1;
  font-size: 0.975rem;
  line-height: 1.65;
}

.antigaming-section {
  margin: 2.5rem 0;
  max-width: 860px;
}

.antigaming-statement {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.antigaming-section p:not(.antigaming-statement) {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* ── Footer ── */
footer {
  background: var(--header-bg);
  border-top: 1px solid var(--header-accent);
  padding: 1.25rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner a {
  color: #93c5fd;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .cards { grid-template-columns: 1fr; }
}
