/* =========================================================
   CREDA Design System (LOCKED – 5.2)
   Purpose: Dark, regulated, infrastructure-grade UI
========================================================= */

/* -----------------------------
   1. RESET
----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* -----------------------------
   2. ROOT TOKENS
----------------------------- */
:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;

  --text: #e6edf3;
  --text-muted: #b7c3d6;
  --text-soft: #9fb0c7;

  --border: rgba(255, 255, 255, 0.08);

  --accent: #52b7ff;
  --accent-soft: rgba(82, 183, 255, 0.15);
}

/* -----------------------------
   3. BASE
----------------------------- */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}
.footer-swirl {
  width: 36px !important;
  max-width: 36px;
  height: auto;
  opacity: 0.6;
  display: block;
  margin: 0 auto 12px;
}

/* -----------------------------
   4. LAYOUT
----------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

/* -----------------------------
   5. NAV
----------------------------- */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(6px);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.nav-brand .brand-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* -----------------------------
   6. TYPOGRAPHY
----------------------------- */
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

p {
  color: var(--text-muted);
}

/* -----------------------------
   7. BUTTONS
----------------------------- */
.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(82,183,255,.35),
    rgba(82,183,255,.15)
  );

  border: 1px solid rgba(82,183,255,.35);
  transition: all .25s ease;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(82,183,255,.55),
    rgba(82,183,255,.25)
  );
  border-color: rgba(82,183,255,.6);
}

/* -----------------------------
   8. FOOTER
----------------------------- */
footer {
  background: transparent;
}

footer strong {
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

.footer {
  position: relative;
  padding: 24px 0;
}

.footer-inner {
  text-align: center;
}

footer > .footer-swirl {
  width: 34px !important;
  max-width: 34px !important;
}
