/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --green: #1A1A2E;
  --green-dim: #d4cfc8;
  --green-mid: #6b6560;
  --bg: #F0EDE6;
  --panel-bg: #FFFFFF;
  --accent: #FFD43B;
  --danger: #E63946;
  --text-dim: #9a9590;
  --font: 'Inter', system-ui, sans-serif;
}

/* ── Global Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--green);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /*background-image:*/
  /*  linear-gradient(rgba(26,26,46,0.06) 1px, transparent 1px),*/
  /*  linear-gradient(90deg, rgba(26,26,46,0.06) 1px, transparent 1px);*/
  background-size: 24px 24px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Page Layout ──────────────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 10px 24px;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 760px;
}

.page-logo {
  width: 400px;
  height: auto;
}

.page-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: black;
}

.page-intro {
  max-width: 680px;
  margin: 20px auto 0;
  color: black;
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Modes Section ────────────────────────────────────────────────────────── */
.modes-section {
  width: 100%;
  max-width: 900px;
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: black;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--green-dim);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Mode Cards ───────────────────────────────────────────────────────────── */
.mode-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 3px solid var(--green);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.mode-card--active:hover {
  background: rgb(255 253 237);
  border-color: var(--accent);
}

.mode-card--disabled {
  border: 3px dashed var(--green-dim);
  cursor: not-allowed;
  opacity: 0.6;
}

.mode-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 2px solid var(--green);
  margin-bottom: 16px;
}

.mode-card__badge--soon {
  border-color: var(--green-dim);
  color: var(--green-mid);
}

.mode-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mode-card__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--green-mid);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  flex: 1;
}

.mode-card__action {
  margin-top: auto;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  border: 3px solid var(--green);
  color: var(--green);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.btn:hover:not(.btn--disabled) {
  background: var(--green);
  color: var(--accent);
}

.btn--disabled {
  background: var(--green-dim);
  border-color: var(--green-dim);
  color: var(--text-dim);
  cursor: not-allowed;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 24px;
}

.footer-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-link {
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--green-dim);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

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

.footer-divider {
  color: var(--green-dim);
  font-weight: 400;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .page {
    padding: 32px 16px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-divider {
    display: none;
  }
}
