/* Design system: Obsidian Cyber Precision (see ../DESIGN.md). Dark-only by design. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --canvas: #0a0d14;
  --surface-1: #0f172a;
  --surface-2: #1e293b;
  --border: rgba(148, 163, 184, 0.12);
  --border-soft: rgba(148, 163, 184, 0.08);
  --border-focus: rgba(6, 182, 212, 0.4);

  /* Text */
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;

  /* Accents */
  --cyan: #06b6d4;
  --cyan-light: #4cd7f6;
  --emerald: #10b981;
  --emerald-light: #4edea3;
  --violet: #6366f1;
  --violet-light: #818cf8;

  /* Type */
  --font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape and spacing */
  --r: 4px;
  --r-lg: 8px;
  --r-xl: 12px;
  --space-xl: 2.5rem;
  --page-pad: 48px;
  --max: 1280px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(6, 182, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 10%, rgba(99, 102, 241, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan-light); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--cyan), 0 0 12px rgba(6, 182, 212, 0.2); border-radius: var(--r); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-strong);
  font-size: 1.05rem;
}
.logo span { color: var(--cyan); }
.logo:hover { text-decoration: none; }
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
nav a { color: var(--muted); font-size: 14px; line-height: 22px; transition: color 0.15s; }
nav a:hover { color: var(--text-strong); text-decoration: none; }
nav a[aria-current="page"] { color: var(--cyan-light); }

/* Type */
h1, h2, h3 { font-family: var(--font-head); color: var(--text-strong); }
h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 20ch;
}
h2 {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
  border-radius: 9999px;
  padding: 6px 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.lead { font-size: 18px; line-height: 30px; color: var(--muted); max-width: 62ch; margin: 0 0 32px; }

/* Hero */
.hero { padding-block: 96px 72px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r);
  background: var(--cyan);
  color: var(--canvas);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 16px rgba(6, 182, 212, 0.35); }
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: none;
  font-weight: 600;
  margin-left: 8px;
}
.btn.ghost:hover { border-color: var(--cyan); color: var(--text-strong); }

/* Sections */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--border-soft); }
.section-intro { color: var(--muted); max-width: 64ch; margin: 0 0 var(--space-xl); }

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards: obsidian glass with holographic top rim */
.card {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; border-color: var(--border-focus); box-shadow: 0 0 20px -4px rgba(6, 182, 212, 0.15); }
.card .more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-light);
}

/* Service accents: cyan = build, emerald = security, violet = AI */
.card.sec::before { background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.35), transparent); }
.card.sec .more { color: var(--emerald-light); }
a.card.sec:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 25px -2px rgba(16, 185, 129, 0.2); }
.card.ai::before { background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent); }
.card.ai .more { color: var(--violet-light); }
a.card.ai:hover { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 0 25px -2px rgba(99, 102, 241, 0.2); }

/* Chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
  border-radius: var(--r);
  padding: 7px 10px;
}
.tags.ai li { color: var(--violet-light); border-color: rgba(99, 102, 241, 0.3); background: rgba(99, 102, 241, 0.1); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; border-top: 1px solid var(--border); padding-top: 16px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan-light);
  margin-bottom: 8px;
}
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }

/* Tables: terminal-style data matrix */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(15, 23, 42, 0.85);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(30, 41, 59, 0.6);
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(6, 182, 212, 0.04); }
td { color: var(--muted); }
td:first-child { font-weight: 600; color: var(--text-strong); white-space: nowrap; }
td:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--emerald-light);
  white-space: nowrap;
}
.table-title {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 12px;
}
.section-intro + .table-title { margin-top: 0; }

/* Callout */
.note {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  max-width: 72ch;
}
.note p { margin: 0; color: var(--text); }

/* CTA + footer */
.cta { text-align: center; padding-block: 96px; border-top: 1px solid var(--border-soft); }
.cta .lead { margin-inline: auto; }
.cta .btn { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.02em; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer p { margin: 0; }

/* Tablet */
@media (max-width: 1279px) {
  :root { --page-pad: 24px; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --page-pad: 16px; }
  h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; }
  h2 { font-size: 26px; line-height: 34px; letter-spacing: -0.015em; }
  .hero { padding-block: 56px 40px; }
  section { padding-block: 48px; }
  .grid { gap: 16px; }
  .btn.ghost { margin: 12px 0 0; }
  td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
