/* Cadarn — site styles. Self-contained, no external dependencies. */
:root {
  --bg: #0a0f1a;
  --bg-alt: #0e1524;
  --panel: #121b2e;
  --panel-2: #16223a;
  --line: #22304d;
  --text: #e7eef8;
  --muted: #8ea0bd;
  --accent: #35d6a6;
  --accent-2: #5b8cff;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: 0.2px; }
.brand-mark { color: var(--accent); font-size: 18px; }
.brand-name { background: linear-gradient(90deg, var(--text), #cfe0f5); -webkit-background-clip: text; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .18s ease; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; transition: transform .12s ease, background .18s ease, border-color .18s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04231a; }
.btn-primary:hover { background: #48e6b6; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { font-size: 17px; padding: 15px 30px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 340px at 78% -8%, rgba(53,214,166,0.16), transparent 60%),
    radial-gradient(620px 300px at 8% 12%, rgba(91,140,255,0.12), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.hero .accent { color: var(--accent); }
.lede { font-size: clamp(17px, 2.3vw, 20px); color: var(--muted); max-width: 660px; margin: 24px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--panel); padding: 7px 13px; border-radius: 999px; }

/* ---------- sections ---------- */
.band { padding: 82px 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.5px; text-wrap: balance; }
.trust-cols { margin-top: 28px; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 720px; margin: 16px 0 40px; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .18s ease, transform .18s ease; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon { font-size: 26px; display: block; margin-bottom: 12px; }

.module { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.module h3 { font-size: 17px; color: var(--accent); margin-bottom: 8px; }
.module p { color: var(--muted); font-size: 15px; }

/* ---------- two-col ---------- */
.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.two-col p { color: var(--muted); margin-bottom: 16px; }
.two-col p strong, .check-list strong { color: var(--text); }

.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--muted); font-size: 16px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: rgba(53,214,166,0.14); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

/* ---------- status card ---------- */
.status-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.status-card h3 { font-size: 20px; margin: 10px 0; }
.status-card p { color: var(--muted); font-size: 15px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(53,214,166,0.18); }

/* ---------- cta / footer ---------- */
.band-cta { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.band-cta .btn { margin-top: 8px; }
.band-cta .small { margin-top: 20px; }
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .band { padding: 60px 0; }
}

/* ---------- docs page ---------- */
.doc-main { padding: 56px 0 90px; }
.doc-main h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.doc-main > .wrap > p.lede { margin-top: 8px; }
.doc-section { padding-top: 42px; border-top: 1px solid var(--line); margin-top: 42px; }
.doc-section:first-of-type { border-top: none; margin-top: 24px; }
.doc-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.doc-section h3 { font-size: 17px; color: var(--accent); margin: 18px 0 8px; }
.doc-section p { color: var(--muted); margin-bottom: 14px; }
.doc-section ul { color: var(--muted); margin: 0 0 14px 20px; }
.doc-section li { margin-bottom: 6px; }
pre { background: #070c15; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 6px 0 18px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
pre code { color: #cfe0f5; line-height: 1.7; }
.inline-code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 13px; color: var(--accent); }
