/* ============================================================
   POWER BIZ CONSULTING — Design System
   High-tech / futurist · dark default · red accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  /* Surface */
  --bg: #0a0a0c;
  --bg-1: #0e0e12;
  --surface: #131318;
  --surface-2: #1a1a22;
  --surface-3: #22222b;
  --border: #25252e;
  --border-strong: #35353f;
  --hairline: rgba(255,255,255,0.06);

  /* Type */
  --text: #ebebef;
  --text-dim: #a0a0aa;
  --text-mute: #61616b;

  /* Accent — Power red */
  --red: #ff2e2e;
  --red-2: #e51e1e;
  --red-deep: #8c1111;
  --red-soft: rgba(255,46,46,0.12);
  --red-glow: rgba(255,46,46,0.35);

  /* Status */
  --ok: #22c55e;
  --warn: #f59e0b;

  /* Fonts */
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Geometry */
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --bracket: 12px;
}

[data-theme="light"] {
  --bg: #f4f4f1;
  --bg-1: #ffffff;
  --surface: #ffffff;
  --surface-2: #ededea;
  --surface-3: #e2e2df;
  --border: #d8d8d2;
  --border-strong: #b8b8b0;
  --hairline: rgba(0,0,0,0.08);
  --text: #0a0a0c;
  --text-dim: #4a4a52;
  --text-mute: #8a8a94;
  --red: #c81818;
  --red-2: #a01010;
  --red-deep: #6a0808;
  --red-soft: rgba(200,24,24,0.10);
  --red-glow: rgba(200,24,24,0.20);
}

/* ============================================================ Reset */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }

/* Page-wide subtle grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
body > * { position: relative; z-index: 1; }

/* ============================================================ Typography */

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 10px;
  vertical-align: 1px;
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 84px); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 600; }
p { margin: 0; color: var(--text-dim); }

.num, .tabular { font-variant-numeric: tabular-nums; }

/* ============================================================ Layout */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ============================================================ Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.logo-mark {
  width: 32px; height: 32px;
  position: relative;
  display: grid;
  place-items: center;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { line-height: 1; }
.logo-text small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  transition: color .2s, background .2s;
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all .2s;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-mobile-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }
  .nav-mobile-toggle {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
  }
}

/* ============================================================ Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 1px var(--red), 0 12px 32px -10px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-2);
  box-shadow: 0 0 0 1px var(--red-2), 0 16px 40px -8px var(--red-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 11px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================ Cards & brackets */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card.interactive:hover {
  transform: translateY(-3px);
  border-color: var(--red-deep);
}
.card.interactive:hover::before,
.card.interactive:hover::after,
.card.interactive:hover .bk-tr,
.card.interactive:hover .bk-bl {
  border-color: var(--red);
  opacity: 1;
}

/* Corner brackets — applied via .brackets class */
.brackets { position: relative; }
.brackets::before, .brackets::after,
.brackets .bk-tr, .brackets .bk-bl {
  content: "";
  position: absolute;
  width: var(--bracket);
  height: var(--bracket);
  border: 1px solid var(--text-mute);
  opacity: 0.6;
  transition: all .25s;
}
.brackets::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.brackets::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.brackets .bk-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.brackets .bk-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }

/* ============================================================ Section headers */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-head-text { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; display: block; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 17px; line-height: 1.55; color: var(--text-dim); }
.section-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================ Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer-list a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================ Sticky WhatsApp */

.wa-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  background: #0e0e12;
  color: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--red-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: all .25s;
  cursor: pointer;
}
.wa-fab:hover {
  border-color: var(--red);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px var(--red-glow);
  transform: translateY(-2px);
}
.wa-fab-icon {
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 12px var(--red-glow);
}
.wa-fab-icon svg { width: 16px; height: 16px; color: #fff; }
.wa-fab-text { line-height: 1.1; }
.wa-fab-text strong { display: block; font-weight: 600; color: #fff; }
.wa-fab-text small { color: var(--text-dim); font-size: 10px; }
[data-theme="light"] .wa-fab { background: #ffffff; color: var(--text); }
@media (max-width: 720px) {
  .wa-fab { right: 16px; bottom: 16px; padding: 10px 16px 10px 12px; }
  .wa-fab-text small { display: none; }
}

/* ============================================================ Utility */

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.center { align-items: center; justify-content: center; }
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.red { color: var(--red); }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 24px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tag-red {
  background: var(--red-soft);
  border-color: var(--red-deep);
  color: var(--red);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ============================================================ Shared CTA band */

.cta-band { padding: 64px 0; }
.cta-inner {
  background: linear-gradient(135deg, rgba(255,46,46,0.10), rgba(140,17,17,0.04) 50%, transparent);
  border: 1px solid var(--red-deep);
  padding: 56px;
  border-radius: var(--r);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  right: -100px; top: -100px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  pointer-events: none;
}
.cta-inner .eyebrow { margin-bottom: 16px; display: block; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; padding: 32px; }
}

/* ============================================================ Page hero (interior pages) */

.page-hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.ph-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.ph-row .eyebrow { margin-bottom: 24px; display: block; }
.ph-row h1 { font-size: clamp(40px, 6vw, 72px); }
.ph-meta {
  display: grid;
  gap: 16px;
  font-size: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.ph-meta .coord { display: block; color: var(--text-mute); margin-bottom: 4px; }
.ph-meta strong { color: var(--text); font-weight: 400; font-size: 14px; }
@media (max-width: 880px) {
  .ph-row { grid-template-columns: 1fr; gap: 32px; }
  .ph-meta { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
}

/* Coordinate marker — for hi-tech feel */
.coord {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
