/* Superstition Technologies — local MSP + AI deployment
   Visual system: enterprise B2B (Stripe/HashiCorp posture), original brand. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-elevated: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --input-bg: #ffffff;
  --nav-mobile-bg: #ffffff;
  --hero-top: #f5f9ff;
  --hero-bottom: #ffffff;
  --bg-dark: #0b1220;
  --bg-brand: #121a2b;
  --ink: #061b31;
  --ink-2: #273951;
  --muted: #5b6b7c;
  --border: #e5edf5;
  --border-strong: #c9d7e6;
  --accent: #1f7fff;
  --accent-hover: #0d5fd4;
  --accent-soft: #e7f2ff;
  --accent-ring: #7eb6ff;
  --glow: #3db7ff;
  --success: #108c3d;
  --success-bg: rgba(21, 190, 83, 0.14);
  --shadow-1: rgba(23, 23, 23, 0.06) 0 3px 6px;
  --shadow-2: rgba(15, 40, 80, 0.12) 0 18px 40px -18px, rgba(0, 0, 0, 0.08) 0 10px 20px -12px;
  --radius: 6px;
  --radius-lg: 10px;
  --max: 1120px;
  --nav-h: 72px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}
p { margin: 0 0 1em; color: var(--muted); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ─── Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 237, 245, 0.9);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #07101f;
  border: 1px solid rgba(61, 183, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(31, 127, 255, 0.08), var(--shadow-1);
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-text { font-size: 1.02rem; line-height: 1.15; }
.brand-text span { color: var(--muted); font-weight: 500; display: block; font-size: 0.82rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--ink);
  text-decoration: none;
}

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-ring);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-dark {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: transparent;
}
.btn-dark:hover { background: var(--bg-soft); color: var(--ink); }
.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ─── Hero ─── */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(61, 183, 255, 0.16), transparent 60%),
    radial-gradient(700px 360px at 10% 0%, rgba(31, 127, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 72%);
  border-bottom: 1px solid var(--border);
}
.hero-logo-float {
  width: min(100%, 280px);
  margin: 0 auto 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(61, 183, 255, 0.25);
  box-shadow: var(--shadow-2);
  background: #07101f;
}
.hero-logo-float img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  max-width: 14ch;
}
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 38ch;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

.hero-panel {
  background: var(--bg-dark);
  color: #e8eef7;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-panel h2 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.stack-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.stack-list .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ec0ff;
  background: rgba(31,111,235,0.18);
  border: 1px solid rgba(158,192,255,0.25);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
}
.stack-list strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.stack-list p {
  margin: 0;
  color: rgba(232,238,247,0.72);
  font-size: 0.9rem;
}

/* ─── Sections ─── */
.section { padding: 4.25rem 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-dark {
  background: var(--bg-brand);
  color: #e8eef7;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(232,238,247,0.72); }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 0.65rem;
}
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-dark .kicker { color: #9ec0ff; }

/* ─── Cards / grids ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-1);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.card p { font-size: 0.98rem; }
.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.card li { margin: 0.3rem 0; }
.card-link {
  display: inline-flex;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.service-card .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(31,111,235,0.15);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ─── Split ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink-2);
}
.checklist .check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* ─── Service area map list ─── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.city {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.city strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}
.city span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ─── CTA band ─── */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2f66 0%, #1f6feb 100%);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 0.35rem;
}
.cta-band p {
  color: rgba(255,255,255,0.85);
  max-width: 42ch;
  margin: 0;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ─── Forms ─── */
.form {
  display: grid;
  gap: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: var(--input-bg);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-ring);
  border-color: var(--accent);
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}
.form-success {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16,140,61,0.25);
  font-weight: 600;
}
.form-success.show { display: block; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.slot-grid label.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
}
.slot-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slot-grid input:checked + span,
.slot-grid label.slot:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}
.booking-note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.booking-note strong { color: var(--ink); }

/* ─── Contact / info ─── */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.info-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.info-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.info-list a { font-weight: 600; }

/* ─── Page hero (inner) ─── */
.page-hero {
  padding: 3rem 0 2.25rem;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  max-width: 18ch;
  margin-bottom: 0.7rem;
}
.page-hero p {
  font-size: 1.08rem;
  max-width: 48ch;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(232,238,247,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.site-footer a {
  color: rgba(232,238,247,0.78);
  text-decoration: none;
  display: inline-block;
  margin: 0.28rem 0;
  font-size: 0.94rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p {
  color: rgba(232,238,247,0.68);
  max-width: 32ch;
  font-size: 0.95rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(232,238,247,0.55);
}

/* ─── SEO / utility ─── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2rem; font-size: 1.15rem; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-soft);
}
td { color: var(--ink-2); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 48px; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .form-row,
  .city-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .container { width: min(100% - 1.5rem, var(--max)); }
}


/* ===== Dark mode + theme toggle ===== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f18;
  --bg-soft: #101826;
  --bg-elevated: #121a28;
  --bg-header: rgba(10, 15, 24, 0.88);
  --bg-dark: #060a12;
  --bg-brand: #0d1524;
  --ink: #e8eef7;
  --ink-2: #c5d0e0;
  --muted: #93a0b5;
  --border: #1e2a3d;
  --border-strong: #2c3b52;
  --accent: #4da3ff;
  --accent-hover: #7cbcff;
  --accent-soft: rgba(77, 163, 255, 0.14);
  --accent-ring: #3d7fd4;
  --glow: #5ec8ff;
  --success: #3dd68c;
  --success-bg: rgba(61, 214, 140, 0.14);
  --shadow-1: rgba(0, 0, 0, 0.35) 0 3px 8px;
  --shadow-2: rgba(0, 0, 0, 0.45) 0 18px 40px -18px, rgba(0, 0, 0, 0.3) 0 10px 20px -12px;
  --input-bg: #0d1520;
  --nav-mobile-bg: #0d1520;
  --hero-top: #0c1422;
  --hero-bottom: #0a0f18;
}
body { transition: background-color 0.2s ease, color 0.2s ease; }
.site-header { background: var(--bg-header); border-bottom-color: var(--border); }
.card, .form, .city { background: var(--bg-elevated); }
.hero {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(61, 183, 255, 0.16), transparent 60%),
    radial-gradient(700px 360px at 10% 0%, rgba(31, 127, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--hero-top, #f5f9ff) 0%, var(--hero-bottom, #ffffff) 72%);
}
.page-hero {
  background: linear-gradient(180deg, var(--hero-top, #f8fbff) 0%, var(--hero-bottom, #fff) 100%);
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  color: var(--accent);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle .icon { font-size: 1.15rem; line-height: 1; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 960px) {
  .nav-links {
    background: var(--nav-mobile-bg);
  }
}
html[data-theme="dark"] .pill {
  border-color: rgba(77, 163, 255, 0.25);
  color: var(--accent);
}
html[data-theme="dark"] .btn-dark {
  background: #fff;
  color: #061b31;
}
html[data-theme="dark"] .section-dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .slot-grid label.slot {
  background: var(--bg-elevated);
}
