/* ============================================================
   BLAH-BLAH — Design System
   Black canvas / orange signal / mono-marked infrastructure feel
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Color */
  --black:      #0A0A0A;
  --black-2:    #111113;
  --black-3:    #18181B;
  --line:       rgba(255,255,255,0.08);
  --line-hi:    rgba(255,255,255,0.16);
  --white:      #F5F4F0;
  --white-dim:  #C9C8C3;
  --gray:       #8B8B90;
  --gray-dim:   #5C5C61;
  --orange:     #FF6A00;
  --orange-2:   #E54E00;
  --orange-dim: rgba(255,106,0,0.14);
  --green:      #25D366;

  /* Type */
  --f-display: 'Montserrat', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* Layout */
  --max: 1220px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-y: clamp(88px, 12vw, 168px);
  --radius: 18px;
  --radius-sm: 10px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--white);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--orange); color: #0A0A0A; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Utility ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: clamp(56px,8vw,96px) 0; }
.center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
}
.eyebrow.dim { color: var(--gray); }
.eyebrow.dim::before { background: var(--gray); box-shadow: none; }

.h-xl { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--white-dim);
  font-weight: 400;
  max-width: 640px;
  line-height: 1.65;
}
.lede.center { margin-left: auto; margin-right: auto; }

.mono-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #0A0A0A;
  box-shadow: 0 8px 30px -8px rgba(255,106,0,0.55);
}
.btn-primary:hover { box-shadow: 0 12px 38px -6px rgba(255,106,0,0.75); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--line-hi); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.n-logo { display: flex; align-items: center; gap: 12px; }
.n-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--orange);
  color: #0A0A0A;
  font-family: var(--f-mono); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.n-name { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: 0.01em; }
.n-name span { color: var(--gray); font-weight: 500; }

.n-links { display: flex; align-items: center; gap: 30px; }
.n-links a {
  font-size: 14px; color: var(--white-dim); font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.n-links a:hover, .n-links a.active { color: var(--white); }
.n-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.n-cta { display: flex; align-items: center; gap: 14px; }
.n-login { font-size: 14px; font-weight: 600; color: var(--white-dim); }
.n-login:hover { color: var(--white); }

.n-burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.n-burger span { display: block; width: 16px; height: 1.5px; background: var(--white); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-panel.open { opacity: 1; pointer-events: auto; }
.mobile-panel a { font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--white); }
.mobile-panel .btn { margin-top: 10px; }

/* ---------- Hero shell (shared ambient bg) ---------- */
.ambient {
  position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
}
.ambient::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle at center, rgba(255,106,0,0.30), rgba(255,106,0,0) 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
.ambient::after {
  content: ''; position: absolute; bottom: -25%; left: -15%;
  width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle at center, rgba(255,106,0,0.14), rgba(255,106,0,0) 70%);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-6%, 8%) scale(1.12); }
}
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cards / glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.card {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,106,0,0.4);
  box-shadow: 0 20px 50px -20px rgba(255,106,0,0.25);
  background: var(--black-3);
}
.card .ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--orange-dim); color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 14.5px; line-height: 1.6; }

.grid { display: grid; gap: 22px; min-width: 0; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.divider { height: 1px; background: var(--line); border: none; width: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }

/* ---------- Workforce rail (signature component) ---------- */
.rail {
  display: flex; align-items: center; width: 100%;
  padding: 8px 0;
}
.rail-line {
  flex: 1; height: 1px; background: var(--line); position: relative; min-width: 20px;
  transition: background .4s ease;
}
.rail-line.active { background: linear-gradient(90deg, var(--orange), rgba(255,106,0,0.2)); }
.rail-node {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; background: none; border: none; color: inherit;
}
.rail-dot {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line-hi);
  background: var(--black-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 18px; color: var(--gray);
  transition: all .35s cubic-bezier(.16,.84,.44,1);
}
.rail-node.core .rail-dot {
  border-color: var(--orange); background: var(--orange); color: #0A0A0A;
  box-shadow: 0 0 0 6px rgba(255,106,0,0.12);
}
.rail-node.active .rail-dot {
  border-color: var(--orange); color: var(--orange);
  box-shadow: 0 0 22px rgba(255,106,0,0.35), 0 0 0 6px rgba(255,106,0,0.08);
}
.rail-label { font-family: var(--f-mono); font-size: 11.5px; color: var(--gray); text-align: center; max-width: 90px; letter-spacing: 0.02em; }
.rail-node.active .rail-label, .rail-node.core .rail-label { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}
.f-top { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; margin-bottom: 56px; }
.f-brand p { color: var(--gray); font-size: 14px; max-width: 320px; margin-top: 16px; line-height: 1.7; }
.f-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.f-col h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); font-weight: 500; margin-bottom: 18px; }
.f-col a { display: block; font-size: 14.5px; color: var(--white-dim); margin-bottom: 12px; transition: color .2s; }
.f-col a:hover { color: var(--orange); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.f-bottom p { font-family: var(--f-mono); font-size: 12px; color: var(--gray-dim); }
.f-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.f-legal a { font-family: var(--f-mono); font-size: 12px; color: var(--gray-dim); }
.f-legal a:hover { color: var(--orange); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,0.55);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Section label row ---------- */
.s-head { max-width: 640px; margin-bottom: 56px; }
.s-head.wide { max-width: 780px; }
.s-head .eyebrow { margin-bottom: 18px; }
.s-head h2 { margin-top: 4px; }
.s-head .lede { margin-top: 16px; }

/* ---------- Stat / number ---------- */
.stat-num { font-family: var(--f-mono); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--orange); }
.stat-label { font-size: 13px; color: var(--gray); margin-top: 6px; }

/* ---------- Badge pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; color: var(--white-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  background: rgba(255,255,255,0.02);
}

/* ---------- Tab switcher ---------- */
.tab-triggers { display: flex; flex-wrap: wrap; gap: 10px; }
.tab-trigger {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--gray); background: var(--black-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; transition: all .25s ease;
}
.tab-trigger:hover { color: var(--white); border-color: var(--line-hi); }
.tab-trigger.is-active { color: #0A0A0A; background: var(--orange); border-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Pricing calculator ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.emp-card {
  display: flex; gap: 18px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: all .3s cubic-bezier(.16,.84,.44,1); margin-bottom: 14px;
  color: inherit;
}
.emp-card:hover { border-color: var(--line-hi); }
.emp-card.active, .emp-card.core { border-color: var(--orange); background: var(--black-3); box-shadow: 0 16px 40px -22px rgba(255,106,0,0.4); }
.emp-card.active .emp-check, .emp-card.core .emp-check { background: var(--orange); border-color: var(--orange); color: #0A0A0A; }
.emp-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; margin-top: 2px;
  border: 1.5px solid var(--line-hi); display: flex; align-items: center; justify-content: center;
  transition: all .25s ease; color: transparent;
}
.emp-card.active .emp-check { background: var(--orange); border-color: var(--orange); color: #0A0A0A; }
.emp-body { flex: 1; }
.emp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.emp-name { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; }
.emp-price { font-family: var(--f-mono); font-size: 14px; color: var(--orange); white-space: nowrap; }
.emp-desc { color: var(--gray); font-size: 13.5px; margin-top: 6px; line-height: 1.55; }

.summary-panel { position: sticky; top: 100px; }
.roster-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--white-dim); }
.roster-list li:last-child { border-bottom: none; }
.roster-empty { color: var(--gray-dim) !important; font-style: italic; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .summary-panel { position: relative; top: 0; }
}

/* ---------- Empty state ---------- */
.empty-state {
  border: 1px dashed var(--line-hi); border-radius: var(--radius);
  padding: 48px 32px; text-align: center; color: var(--gray);
}
.empty-state h3 { color: var(--white-dim); font-size: 1.1rem; margin-bottom: 10px; font-family: var(--f-display); font-weight: 700; }
.empty-state p { font-size: 14px; max-width: 420px; margin: 0 auto; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .f-top { flex-direction: column; gap: 40px; }
}
@media (max-width: 860px) {
  .n-links, .n-cta .n-login { display: none; }
  .n-burger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .rail-label { display: none; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .f-cols { gap: 36px 48px; }
}
