/* GatewayToMars.com — independent Starbase & RGV guide */

:root {
  --bg: #0b0f1a;
  --surface: #131a2b;
  --surface-2: #1a2338;
  --border: #253049;
  --text: #e8ecf5;
  --muted: #9aa5bd;
  --accent: #ff6b35;
  --accent-soft: #ff8c5f;
  --link: #8ab8ff;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--link); 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 */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(255, 107, 53, 0.16), transparent 60%),
    radial-gradient(900px 420px at 15% 10%, rgba(74, 108, 190, 0.22), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 780px;
}
.hero p.lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: #14100c; }
.btn.primary:hover { background: var(--accent-soft); }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn.ghost:hover { border-color: var(--muted); }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; margin-top: 6px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
.block p.sub { color: var(--muted); max-width: 660px; margin-top: 10px; }

/* Card grid */
.grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
section.alt .card { background: var(--surface-2); }
.card h3 a { color: var(--text); }
.card p { color: var(--muted); font-size: 0.97rem; margin-top: 6px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.92rem; }

/* Content pages */
article.page { padding: 56px 0 24px; }
article.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; max-width: 800px; }
article.page .updated { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
article.page .lede { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 700px; }
article.page section { margin-top: 44px; }
article.page h2 { margin-bottom: 12px; }
article.page h3 { margin-top: 24px; }
article.page p { margin-top: 12px; max-width: 760px; }
article.page ul, article.page ol { margin: 12px 0 0 24px; max-width: 740px; }
article.page li { margin-top: 8px; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
  max-width: 760px;
  font-size: 0.96rem;
  color: var(--muted);
}
.note strong { color: var(--text); }

table.compare {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.95rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Forms */
form.capture {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 560px;
}
form.capture input[type="email"] {
  flex: 1 1 260px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
form.capture input[type="email"]:focus { outline: 2px solid var(--accent); border-color: transparent; }

form.inquiry { margin-top: 24px; max-width: 560px; display: grid; gap: 14px; }
form.inquiry label { font-weight: 600; font-size: 0.92rem; }
form.inquiry input, form.inquiry select, form.inquiry textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.hidden { display: none; }

/* Footer */
footer.site {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: var(--surface);
}
footer.site .cols {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
footer.site nav { display: flex; flex-direction: column; gap: 8px; }
footer.site nav a { color: var(--muted); font-size: 0.93rem; }
footer.site .disclaimer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 820px;
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  header.site .wrap { justify-content: center; text-align: center; }
}

/* build: forms-enabled */
