/* Christendom Technologies — Variation A (Terminal / dev) */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F6FB;
  --bg-grid: rgba(31,44,140,0.06);
  --ink: #0B1024;
  --ink-2: #2C334F;
  --ink-3: #6B718E;
  --line: #E3E6F2;
  --line-2: #C9CEE4;
  --brand: #1F2C8C;
  --brand-2: #2A3DBF;
  --brand-soft: #EEF0FB;
  --accent: #00B7FF;
  --ok: #1FB573;
  --warn: #F0A93B;
  --radius: 4px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --max: 1280px;
  --pad: 32px;
  --pad-mobile: 20px;
}
[data-theme="dark"] {
  --bg: #06091A;
  --bg-alt: #0C1130;
  --bg-grid: rgba(112,140,255,0.08);
  --ink: #EAEEFF;
  --ink-2: #B5BCDC;
  --ink-3: #7079A0;
  --line: #1A2050;
  --line-2: #2A3175;
  --brand: #5C77FF;
  --brand-2: #8FA2FF;
  --brand-soft: #131A45;
  --accent: #00D2FF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light dark; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  /* subtle grid backdrop */
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
::selection { background: var(--brand); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- TYPE ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -0.02em; line-height: 1.05; margin: 0; font-weight: 600; }
h1 { font-size: clamp(44px, 6vw, 92px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.6vw, 26px); letter-spacing: -0.015em; }
h4 { font-size: 16px; }
.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
}
p { margin: 0 0 1em; color: var(--ink-2); }
.mono { font-family: var(--mono); }
.ink-3 { color: var(--ink-3); }

/* ---------- TOP NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand);
}
.brand .mark { width: 26px; height: 26px; }
.brand .name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 600;
}
.brand .name span { color: var(--ink-3); font-weight: 400; }
.nav ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.nav ul a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  position: relative;
}
.nav ul a:hover { color: var(--ink); background: var(--bg-alt); }
.nav ul a.active { color: var(--brand); }
.nav ul a.active::before { content: "› "; color: var(--brand); }

.nav-actions { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center; justify-content: center;
  color: var(--ink-2);
}
.nav-toggle:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--line-2); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  transition: transform 200ms, opacity 200ms, top 200ms;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav.open .nav-toggle .bars { background: transparent; }
.nav.open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }
.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: 120ms;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--line-2); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: transform 120ms, background 120ms;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn .arrow { transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- TICKER STRIP ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  overflow: hidden;
  height: 36px;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 11px 0;
  gap: 48px;
  animation: tick 60s linear infinite;
}
.ticker-track span { display: inline-flex; gap: 48px; }
.ticker-track i { color: var(--brand); font-style: normal; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 60%),
    radial-gradient(700px 400px at 0% 80%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
}
.hero h1 .accent { color: var(--brand); font-style: italic; font-family: var(--serif); font-weight: 400; }
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(31,44,140,0.18);
}
.hero-card .head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-3);
}
.hero-card .dots { display: inline-flex; gap: 6px; }
.hero-card .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.hero-card .dots i:first-child { background: #FF5F57; }
.hero-card .dots i:nth-child(2) { background: #FEBC2E; }
.hero-card .dots i:nth-child(3) { background: #28C840; }
.hero-card .body { padding: 18px 14px; line-height: 1.7; }
.hero-card .body .k { color: var(--brand); }
.hero-card .body .s { color: var(--ok); }
.hero-card .body .c { color: var(--ink-3); }
.hero-card .cursor { display: inline-block; width: 8px; height: 14px; background: var(--brand); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- SECTION ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head .titles { max-width: 60ch; }
.section-head h2 { margin-top: 8px; }
.section-head .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.section-head .meta b { color: var(--ink); }

/* services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.svc {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 200ms;
}
.svc:hover { background: var(--bg-alt); }
.svc:nth-child(3n) { border-right: 0; }
.svc:nth-last-child(-n+3) { border-bottom: 0; }
.svc .num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }
.svc h3 { margin-top: 16px; }
.svc p { margin-top: 12px; font-size: 14.5px; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.svc .tag {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--bg-alt);
}
.svc .ico {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  background: var(--bg);
  margin-bottom: 8px;
}

/* metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric .v {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.metric .v sup { font-family: var(--mono); font-size: 14px; color: var(--brand); margin-left: 4px; vertical-align: top; }
.metric .l { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 14px; }

/* clients/logos */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.logos .cell {
  height: 110px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-3); letter-spacing: 0.04em;
  transition: 200ms;
}
.logos .cell:hover { color: var(--ink); background: var(--bg-alt); }
.logos .cell:nth-child(6n) { border-right: 0; }
.logos .cell:nth-last-child(-n+6) { border-bottom: 0; }

/* process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.step .n { font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: 0.06em; }
.step h3 { margin-top: 12px; }
.step p { margin-top: 10px; font-size: 14.5px; }

/* CTA strip */
.cta {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 100% 0%, color-mix(in oklab, var(--brand) 60%, transparent), transparent 60%);
  pointer-events: none;
}
.cta h2 { color: var(--bg); position: relative; }
.cta p { color: color-mix(in oklab, var(--bg) 70%, transparent); position: relative; }
.cta .btns { display: inline-flex; gap: 12px; position: relative; }
.cta .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta .btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- FOOTER ---------- */
footer { padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--brand); }
.foot-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* newsletter */
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
}
.newsletter input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.newsletter button {
  font-family: var(--mono); font-size: 12px;
  background: var(--brand); color: #fff;
  padding: 10px 14px; border-radius: var(--radius);
}

/* ---------- PAGE HEADER ---------- */
.page-head {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head .breadcrumb {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.page-head .breadcrumb b { color: var(--ink); }
.page-head h1 { font-size: clamp(36px, 4.5vw, 64px); }
.page-head .lead { margin-top: 20px; }

/* ---------- CARDS ---------- */
.card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 200ms, box-shadow 200ms;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(31,44,140,0.15); }

/* utility */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gap-lg { gap: 48px !important; }

/* badges */
.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--bg);
  display: inline-flex; align-items: center; gap: 6px;
}
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent); }
.badge.brand { color: var(--brand); border-color: color-mix(in oklab, var(--brand) 30%, var(--line)); background: var(--brand-soft); }

/* responsive helpers used inline in pages */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.row-2-wide { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.row-2-narrow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.row-split { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.row-split-end { align-items: end; }

/* ---------- RESPONSIVE ---------- */
/* Tablet & below */
@media (max-width: 1000px) {
  :root { --pad: 24px; }
  .hero-grid, .col-2, .col-3, .col-4 { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc { padding: 24px 22px 26px; }
  .svc:nth-child(3n) { border-right: 1px solid var(--line); }
  .svc:nth-child(2n) { border-right: 0; }
  .svc:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .svc:nth-last-child(-n+2) { border-bottom: 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 22px 20px; }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logos .cell { height: 88px; font-size: 12px; }
  .logos .cell:nth-child(6n) { border-right: 1px solid var(--line); }
  .logos .cell:nth-child(3n) { border-right: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .cta { padding: 36px; grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 12px; margin-bottom: 40px; }
  section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .page-head { padding: 56px 0 40px; }
  .row-2-wide, .row-2-narrow { grid-template-columns: 1fr; gap: 32px; }
  .row-split { grid-template-columns: 1fr; align-items: start; }
  .row-split .btn, .row-split a.btn { justify-self: start; }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; max-height: 0; overflow: hidden; transition: max-height 280ms ease; }
  .nav.open nav { max-height: 480px; }
  .nav nav ul {
    display: flex; flex-direction: column; gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .nav nav ul a { display: block; padding: 12px 8px; font-size: 14px; border-radius: var(--radius); }
  .nav-actions .btn { padding: 10px 14px; font-size: 12px; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --pad: 16px; }
  body { background-size: 40px 40px; }
  h1 { font-size: clamp(34px, 9vw, 52px); }
  h2 { font-size: clamp(26px, 6.5vw, 38px); }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }

  section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .page-head { padding: 40px 0 32px; }

  .hero-grid { gap: 32px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-card { font-size: 11.5px; }
  .hero-card .body { padding: 14px 12px; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .svc:last-child { border-bottom: 0 !important; }

  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 18px 14px; }
  .metric .v { font-size: 32px; }

  .logos { grid-template-columns: 1fr 1fr; }
  .logos .cell { height: 76px; font-size: 11px; }
  .logos .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .logos .cell:nth-child(2n) { border-right: 0; }

  .process { grid-template-columns: 1fr; gap: 20px; }

  .cta { padding: 28px 22px; }
  .cta .btns { flex-wrap: wrap; gap: 10px; }
  .cta .btns .btn { flex: 1 1 auto; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .foot-meta { grid-template-columns: 1fr; gap: 8px; }

  .ticker { height: 32px; font-size: 10.5px; }
  .ticker-track { padding: 9px 0; gap: 36px; }

  .section-head { margin-bottom: 32px; padding-bottom: 16px; }
  .section-head .meta { font-size: 11px; }

  .nav-inner { padding: 10px var(--pad); }
  .brand .name { font-size: 12px; }
  .brand .mark { width: 22px; height: 22px; }
  .nav-actions .btn { padding: 9px 12px; font-size: 11.5px; gap: 6px; }
  .nav-actions .icon-btn { width: 34px; height: 34px; }
  .nav-toggle { width: 36px; height: 36px; }
}
