/* LuminaMesh shared styles for static content pages (guides, about, legal).
   The React app has its own stylesheet in src/index.css — this file only
   covers the hand-written HTML pages under /public. */

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

:root {
  --bg: #030712;
  --surface: #0f172a;
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #06b6d4;
  --indigo: #6366f1;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --body: #d1d5db;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--cyan); text-decoration: underline; }
a:hover { opacity: 0.8; }

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

header {
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--indigo) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-family: var(--heading); font-size: 1.1rem; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
nav a:hover { color: var(--text); opacity: 1; }
nav a[aria-current="page"] { color: var(--text); }

/* ---------- Layout ---------- */

.container { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; flex: 1; width: 100%; }
.container.wide { max-width: 980px; }

.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Typography ---------- */

.page-title {
  font-family: var(--heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #fff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-lead {
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }

h2 { font-family: var(--heading); font-size: 1.3rem; font-weight: 600; color: var(--cyan); margin: 2.5rem 0 0.85rem; }
h3 { font-family: var(--heading); font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 1.75rem 0 0.6rem; }
p { color: var(--body); margin-bottom: 1.1rem; font-size: 0.95rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.1rem; color: var(--body); font-size: 0.95rem; }
li { margin-bottom: 0.5rem; }
strong { color: var(--text); }
code { background: rgba(255, 255, 255, 0.06); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; }

/* ---------- Components ---------- */

.callout {
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #a5f3fc;
}
.callout p { color: inherit; margin-bottom: 0; }
.callout p + p { margin-top: 0.75rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 460px; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--cyan); font-family: var(--heading); font-weight: 600; }
td { color: var(--body); }

.cta-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.cta-box p { margin-bottom: 1rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--indigo) 100%);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.9; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related h3 { margin-top: 0; }
.related ul { list-style: none; padding-left: 0; }
.related li { margin-bottom: 0.6rem; }

/* ---------- Guide index cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(6, 182, 212, 0.5); transform: translateY(-2px); opacity: 1; }
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  font-family: var(--heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-title { font-family: var(--heading); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; line-height: 1.4; }
.card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

.section-heading {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tech-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; }
.tech-name { font-family: var(--heading); font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.tech-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

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

footer { text-align: center; padding: 2rem 1rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--cyan); }
footer p { color: var(--muted); font-size: 0.8rem; margin: 0; }

@media (max-width: 600px) {
  header { padding: 0.85rem 1rem; }
  .page-title { font-size: 1.7rem; }
  .container { padding: 2rem 1.1rem 3.5rem; }
}
