/* ==========================================================================
   Lunar Charc — stylesheet
   ========================================================================== */

:root {
  --bg: #12141a;
  --bg-panel: #1a1d26;
  --bg-panel-2: #20242f;
  --border: #2b2f3b;
  --text: #e8e9ee;
  --text-muted: #9aa1b3;
  --accent: #9db4ff;
  --accent-soft: #384263;
  --gold: #f0c674;
  --radius: 14px;
  --max-width: 1120px;
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* ---------------- Background texture ---------------- */

body {
  background-image:
    radial-gradient(circle at 85% -5%, rgba(157, 180, 255, 0.14), transparent 45%),
    radial-gradient(circle at 0% 15%, rgba(240, 198, 116, 0.06), transparent 40%);
  background-repeat: no-repeat;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .moon-icon { width: 30px; height: 30px; flex: none; }
.brand .brand-charc { color: var(--text-muted); }

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--accent); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-cta .phone-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-cta .phone-link:hover { color: var(--accent); }

.nav-cta-item { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #10121a;
}
.btn-primary:hover { background: #b6c8ff; }

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

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 96px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero p.lede {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon-graphic {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* ---------------- Page header (non-home) ---------------- */

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero p.lede { max-width: 60ch; }

/* ---------------- Sections ---------------- */

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head h2 { margin-bottom: 14px; }

.alt-bg {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------------- Cards / grid ---------------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--accent);
}

.card h3 { margin-bottom: 10px; color: var(--text); }
.card p:last-child { margin-bottom: 0; }

.card-quote {
  border-left: 3px solid var(--gold);
}
.card-quote p { color: var(--text); font-style: italic; }

/* ---------------- Feature list (hosting) ---------------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feature-list .icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--gold);
}
.feature-list strong { color: var(--text); display: block; margin-bottom: 2px; }
.feature-list span.desc { color: var(--text-muted); font-size: 0.95rem; }

/* ---------------- About / bio ---------------- */

.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

.bio-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #3a4568, #171a22 70%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-avatar svg { width: 62%; height: 62%; color: var(--accent); }

.timeline {
  border-left: 2px solid var(--border);
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(157,180,255,0.15);
}
.timeline .year { color: var(--gold); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.timeline h4 { margin: 4px 0 6px; }

/* ---------------- CTA band ---------------- */

.cta-band {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid h4 {
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio-avatar { width: 140px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-cta .phone-link,
  .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .site-header.nav-open .main-nav a { display: block; padding: 10px 4px; }
  .site-header.nav-open .main-nav .nav-cta-item {
    display: block;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .site-header.nav-open .main-nav .nav-cta-item a.btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
  .site-header.nav-open .main-nav .nav-cta-item .phone-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
  }
}
