/* =========================
   LUX / MODERN BASE
   Works with: header, main, footer, .meta, .muted, .box
   Adds plug-in utility classes: .card .btn .pill .grid .stack .divider
   Footer sticks to bottom (layout wrapper)
========================= */

:root{
  --max: 980px;

  --bg: #0b0f17;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);

  --brand: #a78bfa;     /* subtle luxe accent */
  --brand-2: #22d3ee;   /* secondary accent */

  --radius: 18px;
  --radius-sm: 14px;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.28);

  --pad: 22px;
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(1200px 700px at 85% 15%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(255,255,255,.06), transparent 60%),
    var(--bg);

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.75;

  /* sticky footer */
  display:flex;
  flex-direction:column;
  min-height:100svh;
}

/* Sticky footer behavior:
   header and main take space, footer stays at bottom */
header{ flex: 0 0 auto; }
main{ flex: 1 0 auto; }
footer{ flex: 0 0 auto; }

/* ===== Global container (your existing <main>) ===== */
main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 18px 56px;
}

/* ===== Header ===== */
header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(11,15,23,.92),
    rgba(11,15,23,.70)
  );
  border-bottom: 1px solid var(--line);
}

header main{
  padding-top: 30px;
  padding-bottom: 16px;
}

/* ===== Typography ===== */
h1{
  margin:0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height:1.12;
  letter-spacing: -0.03em;
}

h2{
  margin: 34px 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.90);
}

p{ margin: 12px 0; color: var(--text); }

ul{
  margin: 10px 0 10px 20px;
  padding: 0;
  color: var(--text);
}

li{ margin: 6px 0; }

/* ===== Muted / meta ===== */
.meta{
  color: var(--muted);
  font-size: 13px;
}

.muted{
  color: var(--muted);
  font-size: 13px;
}

/* ===== Links ===== */
a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,.35);
}
a:hover{
  border-bottom-color: rgba(34,211,238,.55);
}

/* ===== Existing .box (make it luxe) ===== */
.box{
  margin: 22px 0;
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow-soft);
}

.box p:first-child{ margin-top:0; }

/* ===== Footer (always bottom) ===== */
footer{
  border-top: 1px solid var(--line);
  background: rgba(11,15,23,.85);
  backdrop-filter: blur(12px);
}

footer main{
  padding-top: 18px;
  padding-bottom: 18px;
}

footer p{
  margin:0;
  text-align:center;
  color: var(--muted);
}

/* =========================
   PLUGGABLE CLASSES
   Add these with ONE line (class="...")
========================= */

/* A clean card */
.card{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Button-like link */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.35);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow-soft);
  text-decoration:none;
}
.btn:hover{
  border-color: rgba(34,211,238,.55);
  transform: translateY(-1px);
}

/* Small pill/badge */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 12px;
}

/* Vertical spacing helper */
.stack > * + *{ margin-top: 12px; }

/* Divider line */
.divider{
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* Responsive grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.col-12{ grid-column: span 12; }
@media (min-width: 820px){
  .col-6{ grid-column: span 6; }
  .col-4{ grid-column: span 4; }
}

/* Small code style for inline <code> if you use it later */
code{
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
}
