/* ============================================
   JTM Consulting — Tech-forward dark mode
   ============================================ */

:root {
  --gutter: 32px;
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-elev-2: #161616;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --fg: #f5f5f4;
  --fg-dim: #a8a8a5;
  --fg-mute: #6b6b68;

  --accent: oklch(0.92 0.2 130);     /* electric lime */
  --accent-2: oklch(0.85 0.15 200);  /* cyan */
  --accent-rgb: 198, 255, 0;
  --accent-2-rgb: 0, 220, 255;

  --font-display: "Geist", "Inter", system-ui, sans-serif;
  --font-body: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --container: 1280px;
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

::selection { background: var(--accent); color: #000; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Mono label utility */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 32px 0 rgba(var(--accent-rgb), 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--fg-dim);
  background: var(--bg-elev);
}

.btn-sm { padding: 10px 16px; font-size: 12px; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.h-display {
  font-size: clamp(40px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.h-section {
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.h-card {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.nav-logo-mark img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.nav-logo-mark::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 10px;
  background: var(--accent);
  opacity: 0.25;
  filter: blur(8px);
  z-index: -1;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-logo-text-mobile { display: none; }
@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .nav-logo-text-mobile { display: inline; }
}

/* Hamburger */
button.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
  padding: 0;
  flex-shrink: 0;
}
button.nav-burger .burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.2s;
}
button.nav-burger.open .burger-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
  background: var(--accent);
}
button.nav-burger.open .burger-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
  background: var(--accent);
}
@media (max-width: 900px) {
  .nav-links-desktop { display: none !important; }
  button.nav-burger { display: flex !important; }
}

/* Mobile sheet */
.nav-mobile-sheet {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  display: block;
  animation: sheetSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes sheetSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 901px) {
  .nav-mobile-sheet { display: none !important; }
}
.nav-mobile-inner {
  padding: 32px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
}
.nav-mobile-link {
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: color 0.15s, padding 0.15s;
}
.nav-mobile-link:hover { color: var(--accent); }
.nav-mobile-link.active { color: var(--accent); }
.nav-mobile-num { color: var(--fg-mute); font-size: 11px; }
.nav-mobile-link.active .nav-mobile-num { color: var(--accent); }
.nav-mobile-arrow { color: var(--fg-mute); font-size: 18px; text-align: right; }
.nav-mobile-link.active .nav-mobile-arrow { color: var(--accent); }

.nav-mobile-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile-meta a {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--fg);
  padding: 6px 0;
}
.nav-mobile-meta a:hover { color: var(--accent); }
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--fg-dim);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--accent); }

/* ============================================
   PAGE SHELL
   ============================================ */
.page {
  padding-top: 72px;
  position: relative;
  z-index: 2;
}

/* Section dividers */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.section-tight { padding: 80px 0; }
@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 48px 0; }
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) { .footer { padding: 56px 0 24px; } }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand h3 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 24px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--fg-dim);
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}

/* Utility */
.glow-text {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.5);
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.divider-row::before,
.divider-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
