:root {
  --bg-dark: #0b0b0f; --bg-med: #111827; --border-color: #22304d;
  --text-light: #f3f4f6; --text-med: #9ca3af; --gold: #d4af37; --blue: #00b4ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-dark); color: var(--text-light); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; font-size: 16px; }

.hero { padding: 40px 20px; border-bottom: 1px solid var(--border-color); }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero-copy h1 { font-size: 2.5rem; margin-bottom: 8px; }
.tagline { color: var(--text-light); font-weight: 600; }
.sub { color: var(--text-med); margin-bottom: 16px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.section { max-width: 1100px; margin: 28px auto; padding: 0 20px; }
.section.alt { background: rgba(255,255,255,0.02); padding: 28px 20px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: 1.75rem; margin-bottom: 6px; }

.card { background: var(--bg-med); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); margin-bottom: 18px; }
.card-head { display:flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.table-wrap { overflow-x: auto; }
.badge { background: rgba(0,180,255,0.1); color: var(--blue); border: 1px solid rgba(0,180,255,0.3); padding: 4px 8px; border-radius: 10px; font-size: .75rem; }
.hint, .muted { color: var(--text-med); }

.btn { appearance: none; border: 1px solid var(--border-color); background: var(--bg-med); color: var(--text-light); padding: 10px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover, .btn:focus-visible { background: #0f172a; }
.btn.gold { background: var(--gold); color: #000; border-color: #b89b3f; }
.btn.gold:hover, .btn.gold:focus-visible { background: #c5a634; }
.btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.outline { background: transparent; }

input[type="number"], input[type="text"], input[type="email"], input[type="url"] {
  background: #0f172a; color: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 10px; width: 100%;
}
label { display:flex; align-items: center; gap: 10px; margin-bottom: 10px; }

table { width:100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--border-color); text-align: left; }
th { color: var(--text-med); }

.qr { width: 180px; height: 180px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border-color); background: #0f172a; }
.don-card h4 { margin-bottom: 8px; }
.row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin: 10px 0; }
code { background:#0f172a; padding: 4px 8px; border-radius: 8px; border:1px solid var(--border-color); }

.canvas { width: 100%; background: #0f172a; border: 1px solid var(--border-color); border-radius: 12px; }
.canvas.small { margin-top: 8px; }

.buddy-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; border-radius: 999px; padding: 12px 16px; }
.buddy { position: fixed; right: 18px; bottom: 70px; width: 360px; max-height: 75vh; background: var(--bg-med); border:1px solid var(--border-color); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; z-index: 60; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.buddy.hidden { display: none; }
.buddy-head { display:flex; justify-content: space-between; align-items:center; padding: 10px 12px; border-bottom:1px solid var(--border-color); }
.buddy-log { padding: 12px; display:flex; flex-direction: column; gap: 8px; overflow-y:auto; }
.msg { padding: 8px 10px; border-radius: 10px; max-width: 80%; }
.msg.me { align-self: flex-end; background: #0f172a; }
.msg.bot { align-self: flex-start; background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); }
.buddy-form { display:flex; gap:8px; padding: 10px; border-top:1px solid var(--border-color); }
.buddy-form input { flex:1; }
.buddy-hints { display:flex; gap: 8px; padding: 8px 10px; border-top:1px solid var(--border-color); flex-wrap: wrap; }
.chip { background:#0f172a; border:1px solid var(--border-color); color:#fff; padding:6px 10px; border-radius:20px; cursor:pointer; }

.footer { max-width: 1100px; margin: 0 auto; padding: 20px; color: var(--text-med); }

@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* --- Responsive fixes (2025-09-06) --- */
html, body { width: 100%; height: 100%; overflow-x: hidden; }
.container, main, section { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
img, canvas { max-width: 100%; height: auto; }
.globe { display:block; width: clamp(200px, 42vw, 520px); height: auto; margin-inline: auto; }
.canvas { width: 100%; height: auto; display: block; }
.canvas.small { margin-top: 8px; }
@media (max-width: 768px) {
  .grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
  header .hero { padding-block: 24px; }
}
.buddy { max-width: min(720px, 95vw); inset-inline: auto 16px; }
.buddy-fab { right: 16px; bottom: 16px; }
.input, .btn { font-size: 1rem; }

/* --- Mission visuals --- */
.page-hero, header .hero, .banner-hero {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,215,128,.15), transparent),
              radial-gradient(900px 500px at 100% 10%, rgba(64,160,255,.12), transparent),
              linear-gradient(180deg, #0b0e13 0%, #0a0c10 100%);
  color: #e6e9ef; text-align: center; padding: 48px 16px; position: relative; overflow: hidden;
}
.banner-hero::after{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 50% 10%, rgba(255,215,128,.08), transparent);
  pointer-events:none;
}
.glow { text-shadow: 0 0 8px rgba(255,215,128,.35), 0 0 16px rgba(32,128,255,.25); }
.topbar-quicklinks { display:flex; gap:12px; justify-content:center; padding:8px 16px; }
.reveal { opacity: 0; transform: translateY(12px); transition: all .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.parallax { will-change: transform; }
.highlight { background: linear-gradient(180deg, rgba(255,215,128,.06), rgba(10,12,16,0) 60%); }
.checklist li::marker { color: #fcd34d; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,.2); transition: .2s; }
