/* shared design system for cadremesh / phantomset / guardmoat landing pages */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #07080a;
  --bg-soft: #0b0d11;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --fg: #edeff3;
  --muted: #98a1b0;
  --muted-dim: #6d7684;
  --accent: #7c8cff;
  --accent-soft: rgba(124,140,255,.14);
  --radius: 14px;
  --max: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 460px at 78% -6%, var(--accent-soft), transparent 70%),
    radial-gradient(620px 420px at 8% 4%, rgba(255,255,255,.045), transparent 72%);
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: rgba(7,8,10,.72);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 620; letter-spacing: -.02em; font-size: 17px; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; text-decoration: none;
  font-size: 14.5px; font-weight: 560; letter-spacing: -.01em;
  border: 1px solid var(--line-strong); color: var(--fg);
  background: rgba(255,255,255,.04);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }
.btn-primary { background: var(--fg); color: #08090b; border-color: var(--fg); }
.btn-primary:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

/* ---------- hero ---------- */
.hero { padding: 92px 0 64px; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-dim); margin: 0 0 22px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .9; }
h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 650;
  margin: 0 0 24px;
  max-width: 19ch;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 60ch; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 13px; color: var(--muted-dim); font-family: var(--mono); }

/* ---------- generic sections ---------- */
section { position: relative; z-index: 1; }
.band { border-top: 1px solid var(--line); padding: 74px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -.028em; font-weight: 620; margin: 0; max-width: 26ch; }
.sec-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dim); }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cell { background: var(--bg-soft); padding: 26px 24px; }
.cell h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -.015em; font-weight: 590; }
.cell p { margin: 0; color: var(--muted); font-size: 14.8px; line-height: 1.62; }
.cell .idx { font-family: var(--mono); font-size: 11.5px; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 14px; }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; letter-spacing: .1em; }
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 590; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--muted); max-width: 68ch; font-size: 15px; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- quote ---------- */
.pull { padding: 64px 0; border-top: 1px solid var(--line); }
.pull p {
  margin: 0; font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.28;
  letter-spacing: -.03em; font-weight: 560; max-width: 30ch; text-wrap: balance;
}
.pull span { color: var(--accent); }

/* ---------- cta ---------- */
.cta { border-top: 1px solid var(--line); padding: 78px 0 88px; }
.cta-box {
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 44px 38px; background:
    radial-gradient(520px 220px at 88% 0%, var(--accent-soft), transparent 70%),
    var(--bg-soft);
}
.cta-box h2 { margin: 0 0 12px; }
.cta-box p { margin: 0 0 26px; color: var(--muted); max-width: 54ch; }
.form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.form input[type=email] {
  flex: 1 1 240px; min-width: 0; padding: 13px 15px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.35); color: var(--fg);
  font-family: var(--font); font-size: 15px;
}
.form input::placeholder { color: var(--muted-dim); }
.form button { cursor: pointer; font-family: inherit; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 46px; }
.foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot .muted { color: var(--muted-dim); font-size: 13px; font-family: var(--mono); }
.foot a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.foot a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
