:root {
  --bg: #0b0f0d;
  --bg-alt: #101512;
  --panel: #161d19;
  --panel-border: #253029;
  --text: #e7ede8;
  --text-muted: #9fb0a4;
  --green: #3ecf5c;
  --green-bright: #5eeb7c;
  --green-dim: #1f5c30;
  --amber: #f0a94e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(62, 207, 92, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand-text {
  font-family: 'Cinzel', 'Sora', serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--green); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--green);
  color: #06120a !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--green-bright); }

.nav-link-muted { opacity: 0.7; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 0 8px;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 40px rgba(62, 207, 92, 0.35));
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text);
}

.hero h1 span { color: var(--green-bright); }

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #06120a;
}
.btn-primary:hover { background: var(--green-bright); color: #06120a; }

.btn-ghost {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 64px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-dim);
  color: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Wumpus feature section */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.split-art {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.split-art img { width: 100%; max-width: 260px; }

.split ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 14px;
}

.split ul li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.split ul li strong { color: var(--text); }

.check {
  color: var(--green-bright);
  flex-shrink: 0;
}

/* Downloads */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.dl-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.dl-card .icon-badge {
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.dl-card h3 { margin-bottom: 4px; }
.dl-card .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }

.notice {
  max-width: 760px;
  margin: 32px auto 0;
  background: rgba(240, 169, 78, 0.08);
  border: 1px solid rgba(240, 169, 78, 0.3);
  color: var(--amber);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.9rem;
  text-align: center;
}

/* Help / troubleshooting */
.help-grid {
  max-width: 760px;
  margin: 20px auto 0;
  display: grid;
  gap: 14px;
}

.help-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 4px 20px;
}

.help-card summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.help-card summary::-webkit-details-marker { display: none; }

.help-card summary::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  color: var(--green-bright);
  font-weight: 700;
}

.help-card[open] summary::before { content: '\2212'; }

.help-body {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.help-body p { margin: 0 0 10px; }
.help-body ol { margin: 0 0 14px; padding-left: 20px; }
.help-body li { margin-bottom: 6px; }

.help-body code {
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
  color: var(--green-bright);
}

/* Auth pages */
.auth-wrap {
  min-height: calc(100vh - 76px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-card img {
  width: 72px;
  margin: 0 auto 20px;
}

.auth-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-card p.sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.field { text-align: left; margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--green);
}

.btn-block { width: 100%; justify-content: center; margin-top: 6px; }

.error-msg {
  background: rgba(220, 70, 70, 0.12);
  border: 1px solid rgba(220, 70, 70, 0.35);
  color: #ff9b9b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-mark { width: 24px; height: 24px; opacity: 0.7; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
}
