/* GaliGear site 1.6.0: shared styles for every page. */
:root {
  --bg: #0e1013;
  --bg-2: #161a1f;
  --panel: #1b2027;
  --line: #2b323c;
  --text: #e7eaee;
  --muted: #9aa4b1;
  --steel: #c9d1db;
  --accent: #3fb6c8;
  --accent-2: #e0a43a;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 16, 19, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 6px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel); text-decoration: none; }

/* Hero */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(63, 182, 200, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero.small { padding: 56px 0 40px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--steel); max-width: 680px; margin: 0 0 28px; }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600;
  border: 1px solid var(--accent); color: #071114; background: var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--steel); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: 100%; max-width: 380px; height: auto; justify-self: end; filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.6)); }
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 220px; justify-self: start; }
}

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 720px; margin: 0 0 32px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.card p { margin: 0; color: var(--steel); }
.card .meta { color: var(--muted); font-size: 14px; }
.card .actions { margin-top: auto; padding-top: 10px; }
.card .icon { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); font-weight: 700; }

.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); width: fit-content;
}
.tag.live { color: #071114; background: var(--accent); border-color: var(--accent); }
.tag.beta { color: #1a1206; background: var(--accent-2); border-color: var(--accent-2); }

.split { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.facts b { display: block; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.notice {
  background: rgba(224, 164, 58, 0.08); border: 1px solid rgba(224, 164, 58, 0.4);
  border-radius: var(--radius); padding: 14px 18px; color: var(--steel); font-size: 15px;
}

.hero-news { margin: 0 0 20px; color: var(--steel); font-size: 15px; }
.hero-news .tag { margin: 0 8px 0 0; vertical-align: middle; }

.links { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.links a:hover { border-color: var(--accent); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--steel); }

.feature-list { padding-left: 20px; margin: 0 0 16px; }
.feature-list li { margin: 6px 0; }
.feature-list b { color: var(--text); }

/* 1.5.3: 3Bears Resort portal on the home page */
.portal-section { padding-top: 0; border-top: 0; }
.portal {
  display: flex; align-items: center; gap: 28px;
  padding: 28px 32px; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--text);
  background: radial-gradient(circle at 12% 50%, rgba(181, 87, 42, 0.22), transparent 55%), var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.portal:hover { text-decoration: none; border-color: var(--accent-2); transform: translateY(-2px); }
.portal-logo {
  flex: none; width: 140px; height: 140px; border-radius: 12px;
  border: 2px solid #b5572a;
  box-shadow: 0 0 0 6px rgba(181, 87, 42, 0.15), 0 0 30px rgba(181, 87, 42, 0.45);
}
.portal-text { display: flex; flex-direction: column; gap: 6px; }
.portal-text .eyebrow { margin: 0; }
.portal-title { font-size: 24px; font-weight: 700; line-height: 1.25; }
.portal-desc { color: var(--muted); }
.portal-go { color: var(--accent-2); font-weight: 600; }
@media (max-width: 600px) {
  .portal { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 18px; }
  .portal-logo { width: 110px; height: 110px; }
}

/* 1.6.0: BodybITs help pages (help/*.html) */
.cmd-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmd-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmd-table th, .cmd-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cmd-table th { background: var(--bg-2); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.cmd-table tr:last-child td { border-bottom: 0; }
.cmd-table td:first-child { width: 34%; color: var(--text); }
.cmd-table td { color: var(--steel); }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.92em; color: var(--accent-2); }
@media (max-width: 620px) { .cmd-table td:first-child { width: auto; } .cmd-table th, .cmd-table td { padding: 8px 10px; } }
