/* ─────────────────────────────────────────────
   Nullem — nullem.io
   Dark technical theme
   ───────────────────────────────────────────── */

:root {
  --bg: #0a0c10;
  --bg-raise: #0d1117;
  --bg-panel: #0b0f14;
  --hair: #1c2430;
  --hair-2: #263040;
  --ink: #e8eef6;
  --dim: #97a3b4;
  --faint: #5c6677;
  --accent: #22d3ee;
  --accent-dim: #0e7490;
  --glow: rgba(34, 211, 238, 0.35);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 18px; height: 18px; flex: none;
  border: 2px solid var(--accent);
  display: grid; place-items: center;
}
.brand-mark::after {
  content: ""; width: 6px; height: 6px; background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.site-nav a {
  color: var(--dim); font-size: 14.5px;
  padding: 8px 14px; border-radius: 6px;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, 0.04); }

.btn {
  display: inline-block;
  font-size: 14.5px; font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--hair-2); border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--glow); }

.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #04151a;
}
.btn-accent:hover { box-shadow: 0 0 20px var(--glow); }

.site-nav .btn { margin-left: 12px; }

/* ── Hero ───────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 0 110px;
  background-image: radial-gradient(rgba(151, 163, 180, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--hair);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 75% 20%, rgba(34, 211, 238, 0.06), transparent 70%);
}

.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.05;
}

.hero .lead {
  margin: 22px 0 0; max-width: 46ch;
  font-size: 18px; color: var(--dim);
}

.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { padding: 12px 24px; font-size: 15px; }

/* Terminal + schematic visual */

.hero-visual { min-width: 0; }

.terminal {
  border: 1px solid var(--hair-2); border-radius: 8px;
  background: var(--bg-panel);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.07), 0 24px 60px -30px #000;
  overflow: hidden;
}

.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--hair);
}
.terminal-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hair-2);
}
.terminal-bar i:nth-child(3) { background: var(--accent); box-shadow: 0 0 6px var(--glow); }
.terminal-bar .term-title {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--faint);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.9;
  color: var(--dim);
}
.terminal-body p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body b { color: var(--ink); font-weight: 600; }
.terminal-body .ok { color: var(--accent); }

.cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.schematic { margin-top: 30px; text-align: center; }

.schematic .drop {
  width: 1px; height: 26px; margin: 0 auto;
  background: repeating-linear-gradient(180deg, var(--hair-2) 0 4px, transparent 4px 8px);
}

.node {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  padding: 12px 26px;
  border: 1px solid var(--accent); border-radius: 4px;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.15), inset 0 0 12px rgba(34, 211, 238, 0.05);
}

.branches {
  width: 66%; height: 26px; margin: 0 auto;
  border-left: 1px dashed var(--hair-2);
  border-right: 1px dashed var(--hair-2);
  border-top: 0;
  position: relative;
}
.branches::before {
  content: ""; position: absolute; left: 50%; top: -26px;
  width: 1px; height: 26px;
  background: repeating-linear-gradient(180deg, var(--hair-2) 0 4px, transparent 4px 8px);
}
.branches::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  border-top: 1px dashed var(--hair-2);
}
.branches i { position: absolute; left: 50%; top: 0; width: 1px; height: 26px; background: repeating-linear-gradient(180deg, var(--hair-2) 0 4px, transparent 4px 8px); }

.leaves { display: flex; justify-content: space-between; gap: 12px; }
.leaves span {
  flex: 1;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em;
  color: var(--dim);
  padding: 11px 8px;
  border: 1px solid var(--hair-2); border-radius: 4px;
  background: var(--bg-panel);
}

/* ── Sections ───────────────────────────── */

section { padding: 88px 0; border-bottom: 1px solid var(--hair); }

.section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 44px;
}
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.section-head .tick { width: 8px; height: 8px; background: var(--accent); flex: none; }
.section-head h2 {
  margin: 0;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
}

/* Cards */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  border: 1px solid var(--hair); border-radius: 8px;
  background: var(--bg-raise);
  padding: 30px 28px;
  position: relative;
}
.card::before {
  content: ""; position: absolute; top: -1px; left: 28px;
  width: 44px; height: 2px; background: var(--accent);
}
.card .num {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em;
}
.card h3 { margin: 14px 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--dim); font-size: 15.5px; }

/* Products */

.product-strip {
  border: 1px dashed var(--hair-2); border-radius: 8px;
  padding: 44px 32px;
  text-align: center;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(34, 211, 238, 0.05), transparent 70%),
    var(--bg-panel);
}
.product-strip .status {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  color: var(--accent); text-transform: uppercase;
}
.product-strip h3 { margin: 14px 0 10px; font-size: 24px; letter-spacing: -0.01em; }
.product-strip p { margin: 0 auto; max-width: 52ch; color: var(--dim); font-size: 15.5px; }

/* About */

.about-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 56px; align-items: start;
}
.about-grid .big {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 650;
  letter-spacing: -0.015em; line-height: 1.35;
}
.about-grid .big em { color: var(--accent); font-style: normal; }
.about-copy p { margin: 0 0 16px; color: var(--dim); font-size: 15.5px; }
.about-copy p:last-child { margin-bottom: 0; }

/* Contact */

.contact-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  border: 1px solid var(--hair-2); border-radius: 8px;
  background: var(--bg-raise);
  padding: 40px 40px;
}
.contact-box h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.01em; }
.contact-box p { margin: 0; color: var(--dim); font-size: 15.5px; }
.contact-box .mail {
  font-family: var(--mono); font-size: 16px;
  padding: 14px 24px;
  border: 1px solid var(--accent); border-radius: 6px;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
  white-space: nowrap;
}
.contact-box .mail:hover { text-decoration: none; background: rgba(34, 211, 238, 0.08); }

/* ── Footer ─────────────────────────────── */

.site-footer { padding: 36px 0 44px; }
.site-footer .wrap {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
}
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--ink); }
.site-footer .spacer { flex: 1; }

/* ── Subpages (privacy / support / 404) ─── */

.page { padding: 72px 0 96px; min-height: 55vh; }
.page-head { margin-bottom: 40px; }
.page-head h1 { margin: 10px 0 0; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.page-head .meta { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

.prose { max-width: 72ch; color: var(--dim); font-size: 16px; }
.prose h2 { margin: 40px 0 12px; font-size: 21px; color: var(--ink); letter-spacing: -0.01em; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--bg-raise); border: 1px solid var(--hair); border-radius: 4px; padding: 1px 6px; }

.support-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 8px 0 48px; max-width: 860px; }
.support-cards .card h3 { margin-top: 0; }
.support-cards .card .mail {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 14.5px;
  padding: 10px 18px;
  border: 1px solid var(--accent); border-radius: 6px;
  color: var(--accent);
}
.support-cards .card .mail:hover { text-decoration: none; background: rgba(34, 211, 238, 0.08); }

/* ── Responsive ─────────────────────────── */

@media (max-width: 920px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .support-cards { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

@media (max-width: 680px) {
  .site-header .wrap { gap: 10px; }
  .site-nav a:not(.btn) { display: none; }
  .contact-box { padding: 28px 24px; }
  .leaves { flex-direction: column; }
  .branches { display: none; }
  .schematic .drop { height: 20px; }
  .leaves { gap: 8px; margin-top: 8px; }
}
