/* ==========================================================================
   GuardLine (by Legacy Risk) — Modern Enterprise Security Design System
   ========================================================================== */
:root {
  --gl-dark: #070d1e;
  --gl-navy: #0b1329;
  --gl-slate: #131f3a;
  --gl-border-dark: rgba(148, 163, 184, 0.16);
  --gl-cyan: #0ea5e9;
  --gl-cyan-bright: #38bdf8;
  --gl-blue: #2563eb;
  --gl-emerald: #10b981;
  --gl-amber: #f59e0b;
  --gl-rose: #ef4444;
  --gl-bg: #f8fafc;
  --gl-white: #ffffff;
  --gl-text: #0f172a;
  --gl-muted: #475569;
  --gl-dim: #64748b;
  --gl-border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 13, 30, 0.18);
  --tr: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gl-bg);
  color: var(--gl-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Outfit', 'Inter', sans-serif; letter-spacing: -0.025em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 1.5rem; }

/* Top Utility Bar */
.top-bar {
  background: #040814;
  color: #cbd5e1;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  padding: 0.5rem 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gl-cyan-bright);
  font-weight: 600;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gl-emerald);
  box-shadow: 0 0 8px var(--gl-emerald);
  display: inline-block;
  animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 13, 30, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gl-border-dark);
  transition: var(--tr);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}
.brand-sub-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  padding-left: 0.75rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.main-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--tr);
}
.main-nav a:hover { color: var(--gl-cyan-bright); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--tr);
  font-family: inherit;
}
.btn-sm { padding: 0.52rem 1rem; font-size: 0.84rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--gl-cyan) 0%, var(--gl-blue) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.4);
}
.btn-emerald {
  background: linear-gradient(135deg, var(--gl-cyan) 0%, var(--gl-blue) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.28);
}
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(14, 165, 233, 0.4); }
.btn-outline-light {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.3);
  color: #f8fafc;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gl-cyan-bright); }
.btn-outline-dark {
  background: #fff;
  border-color: var(--gl-border);
  color: var(--gl-text);
}
.btn-outline-dark:hover { border-color: var(--gl-cyan); color: var(--gl-blue); }

/* Hero Section — Modern Tactical Enterprise */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 80% 10%, rgba(14, 165, 233, 0.18), transparent),
    radial-gradient(ellipse 55% 50% at 10% 90%, rgba(37, 99, 235, 0.16), transparent),
    linear-gradient(180deg, #070d1e 0%, #0b1530 100%);
  color: #f8fafc;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--gl-border-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--gl-cyan-bright);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.55rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.proof-item strong { display: block; font-size: 1.1rem; color: #fff; font-family: 'Outfit', sans-serif; }
.proof-item span { font-size: 0.78rem; color: #94a3b8; }

/* Live Command Terminal Preview in Hero */
.hero-terminal {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
}
.terminal-bar {
  background: #060b18;
  padding: 0.8rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.76rem;
  color: #94a3b8;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-body { padding: 1.25rem; }
.kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kpi-mini {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 0.85rem;
}
.kpi-mini .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; }
.kpi-mini .val { font-size: 1.35rem; font-weight: 800; font-family: 'Outfit', sans-serif; margin-top: 0.2rem; }
.kpi-mini .val.green { color: #34d399; }
.kpi-mini .val.cyan { color: #38bdf8; }
.kpi-mini .val.amber { color: #fbbf24; }
.live-feed-list { display: flex; flex-direction: column; gap: 0.55rem; }
.live-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 13, 30, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
}
.live-feed-row .site { font-weight: 600; color: #f8fafc; }
.live-feed-row .meta { font-size: 0.73rem; color: #94a3b8; }
.status-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chip-ok { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.chip-warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.chip-alert { background: rgba(239, 68, 68, 0.18); color: #f87171; }

/* Section Layout Helpers */
.section { padding: 5.5rem 0; }
.section-white { background: #fff; border-top: 1px solid var(--gl-border); border-bottom: 1px solid var(--gl-border); }
.section-dark { background: var(--gl-navy); color: #f8fafc; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 3.2rem; }
.section-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gl-cyan);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); font-weight: 800; margin-bottom: 0.85rem; }
.section-head p { color: var(--gl-muted); font-size: 1.02rem; }
.section-dark .section-head p { color: #94a3b8; }
.highlight { color: var(--gl-cyan); }

/* Trust Strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--gl-border);
  padding: 1.75rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-stat strong { display: block; font-size: 1.7rem; font-family: 'Outfit', sans-serif; color: var(--gl-navy); }
.trust-stat span { font-size: 0.82rem; color: var(--gl-dim); font-weight: 500; }

/* Pain-Point Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.matrix-card {
  background: var(--gl-bg);
  border: 1px solid var(--gl-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--tr);
}
.matrix-card:hover { transform: translateY(-3px); border-color: var(--gl-cyan); box-shadow: var(--shadow-md); }
.pain-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gl-rose);
  margin-bottom: 0.35rem;
}
.solve-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gl-blue);
  margin-top: 1.2rem;
  margin-bottom: 0.35rem;
}

/* Feature Tabs */
.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
}
.tab-btn {
  background: #fff;
  border: 1px solid var(--gl-border);
  color: var(--gl-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--tr);
  font-family: inherit;
}
.tab-btn:hover { border-color: var(--gl-cyan); color: var(--gl-text); }
.tab-btn.active {
  background: var(--gl-navy);
  color: #fff;
  border-color: var(--gl-navy);
  box-shadow: 0 6px 18px rgba(11, 19, 41, 0.2);
}
.tab-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--gl-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.tab-panel.active { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.feature-bullets { list-style: none; margin: 1.25rem 0 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-bullets li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.94rem; color: var(--gl-text); }
.feature-bullets li::before { content: "✓"; color: var(--gl-cyan); font-weight: 800; flex-shrink: 0; }
.feature-visual-box {
  background: var(--gl-navy);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

/* Interactive Wage Calculator & Simulator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.calc-card {
  background: #fff;
  border: 1px solid var(--gl-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.calc-result-card {
  background: linear-gradient(155deg, #070d1e 0%, #102042 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--gl-text); margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: var(--gl-text);
}
.form-control:focus { outline: none; border-color: var(--gl-cyan); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14); }
.calc-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.88rem; }
.calc-table td { padding: 0.55rem 0; border-bottom: 1px solid rgba(148, 163, 184, 0.15); }
.calc-table td:last-child { text-align: right; font-weight: 700; }

/* Live GPS Simulator */
.sim-wrapper {
  background: #0d162d;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sim-topbar {
  background: #050a16;
  padding: 0.95rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.sim-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  padding: 1.5rem;
}
.sim-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.sim-table th {
  text-align: left;
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.sim-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
}
.sim-table tr:hover { background: rgba(56, 189, 248, 0.06); }

/* Pricing */
.guarantee-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(37, 99, 235, 0.1));
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--gl-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--tr);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border: 2px solid var(--gl-cyan);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.14);
}
.featured-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gl-cyan), var(--gl-blue));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-big { font-size: 2.3rem; font-weight: 800; font-family: 'Outfit', sans-serif; color: var(--gl-navy); }
.tier-list { list-style: none; margin: 1.25rem 0 1.75rem; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.88rem; }
.tier-list li { display: flex; gap: 0.55rem; }
.tier-list li::before { content: "✓"; color: var(--gl-cyan); font-weight: 800; }

/* Quote Calculator Card */
.quote-box {
  background: #fff;
  border: 1px solid var(--gl-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}
.quote-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: start; }

/* Modals (PayFast Checkout + PDF Quote) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 13, 30, 0.75);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-header {
  background: var(--gl-navy);
  color: #fff;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-body { padding: 1.6rem; }

/* FAQ & Contact */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gl-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
}
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--gl-navy); font-size: 0.98rem; }
.faq-item p { margin-top: 0.75rem; color: var(--gl-muted); font-size: 0.92rem; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.site-footer {
  background: #050a16;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--gl-border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 { color: #f8fafc; font-size: 0.92rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.86rem; }
.footer-col a:hover { color: var(--gl-cyan-bright); }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .tab-panel.active, .calc-grid, .sim-grid, .pricing-grid, .quote-grid, .contact-grid, .footer-grid, .matrix-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav, .brand-sub-pill { display: none; }
  .mobile-toggle { display: inline-flex; }
}
@media print {
  body * { visibility: hidden; }
  #quotePrintArea, #quotePrintArea * { visibility: visible; }
  #quotePrintArea { position: absolute; left: 0; top: 0; width: 100%; }
  .no-print { display: none !important; }
}
