/* ─────────────────────────────────────────
   BASE — Design tokens, reset, globals,
          background, layout, buttons,
          footer, floating WhatsApp button
───────────────────────────────────────── */

/* ── Design tokens ── */
/*
 * Palette derived directly from the OXSEC logo:
 *   Blue    #1d87c8  → brand / accent
 *   Charcoal #3a4654 → logo "oxs" text & dark lens segments
 *   Mid-gray #687888 → medium lens segments
 *   Lt-gray  #96a8b4 → light lens segments & cone
 */
:root {
  /* Brand blue */
  --brand:       #1d87c8;
  --brand-light: #3daee0;
  --brand-dark:  #1568a8;
  --brand-dim:   rgba(29, 135, 200, 0.10);
  --brand-glow:  rgba(29, 135, 200, 0.20);

  /* Legacy aliases */
  --cyan:        #1d87c8;
  --cyan-dim:    rgba(29, 135, 200, 0.10);
  --violet:      #1568a8;
  --violet-dim:  rgba(21, 104, 168, 0.10);

  --green:       #10b981;
  --green-dim:   rgba(16, 185, 129, 0.10);
  --amber:       #f59e0b;

  /*
   * Backgrounds — dark version of logo charcoal (#3a4654).
   * No navy blue; pure desaturated dark gray-slate.
   */
  --bg:          #0e1318;
  --bg-2:        #131c24;
  --bg-card:     rgba(19, 28, 38, 0.94);

  /*
   * Text — logo mid-gray (#687888) and light-gray (#96a8b4)
   * adapted for legibility on dark backgrounds.
   */
  --text:        #e2ecf4;
  --text-2:      #7a96a8;   /* logo mid-gray */
  --text-3:      #445464;   /* logo charcoal area */

  /* Borders — blue-tinted to echo brand */
  --border:      rgba(150, 168, 180, 0.08);   /* logo lt-gray at low opacity */
  --border-2:    rgba(29, 135, 200, 0.16);    /* brand blue at low opacity */

  /* Radii */
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --max-w: 1200px;
  --shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.65);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Background: radial glows + dot grid ── */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Large glow top-right — brand blue */
.bg-fx::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 135, 200, 0.09) 0%, transparent 65%);
  top: -400px;
  right: -300px;
}

/* Smaller glow bottom-left — logo charcoal (#3a4654) at low opacity */
.bg-fx::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 70, 84, 0.35) 0%, transparent 65%);
  bottom: -250px;
  left: -200px;
}

/* Dot grid — logo light-gray (#96a8b4) at very low opacity */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(150, 168, 180, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Layout container ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--brand-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-2);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(29, 135, 200, 0.35);
}

.btn-wa {
  background: #25d366;
  color: #fff;
  font-weight: 600;
}

.btn-wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ── Pulsing green dot (status indicator) ── */
.dot-g {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
  50%       { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.04); }
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 0;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot-copy        { font-size: 13px; color: var(--text-2); }
.foot-copy strong { color: var(--text); }

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

.foot-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s;
}

.foot-links a:hover { color: var(--brand); }

/* ── Floating WhatsApp button ── */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fab-in 0.5s ease 1s both;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.65);
}

.fab svg { width: 28px; height: 28px; color: #fff; }

/* ══════════════════════════════════════════
   LIGHT MODE — activated by html.light
══════════════════════════════════════════ */
html.light {
  --brand:       #1d87c8;
  --brand-light: #1578b4;
  --brand-dark:  #1262a0;
  --brand-dim:   rgba(29, 135, 200, 0.10);
  --brand-glow:  rgba(29, 135, 200, 0.12);

  --cyan:        #1d87c8;
  --cyan-dim:    rgba(29, 135, 200, 0.10);
  --violet:      #1568a8;
  --violet-dim:  rgba(21, 104, 168, 0.10);

  --green:       #059669;
  --green-dim:   rgba(5, 150, 105, 0.10);
  --amber:       #d97706;

  --bg:          #f0f5fa;
  --bg-2:        #e4ecf4;
  --bg-card:     rgba(255, 255, 255, 0.96);

  --text:        #0f1e2e;
  --text-2:      #4a6278;
  --text-3:      #8aa0b2;

  --border:      rgba(29, 135, 200, 0.10);
  --border-2:    rgba(29, 135, 200, 0.18);

  --shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.10);
}

/* Body background */
html.light body { background-color: var(--bg); }

/* Background glows */
html.light .bg-fx::before {
  background: radial-gradient(circle, rgba(29, 135, 200, 0.07) 0%, transparent 65%);
}
html.light .bg-fx::after {
  background: radial-gradient(circle, rgba(29, 135, 200, 0.04) 0%, transparent 65%);
}
html.light .bg-grid {
  background-image: radial-gradient(rgba(29, 135, 200, 0.07) 1px, transparent 1px);
}

/* Nav */
html.light nav {
  background: rgba(240, 245, 250, 0.92);
  border-color: rgba(29, 135, 200, 0.16);
}
html.light .nav-mobile-menu {
  background: rgba(240, 245, 250, 0.98);
  border-color: rgba(29, 135, 200, 0.16);
}

/* Hero grad text */
html.light .grad {
  background: linear-gradient(110deg, var(--brand) 0%, #0f1e2e 50%, var(--brand) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stat gradient text */
html.light .stat-n {
  background: linear-gradient(135deg, #0f1e2e 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Float chip */
html.light .float-chip {
  background: rgba(240, 245, 250, 0.97);
  border-color: rgba(29, 135, 200, 0.22);
  color: var(--text-2);
}

/* Select options */
html.light .f select option { background: #f0f5fa; color: var(--text); }

/* Sticky bar */
html.light .sticky-bar {
  background: rgba(240, 245, 250, 0.97);
  border-top-color: rgba(29, 135, 200, 0.16);
}

/* Hero card */
html.light .hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(29, 135, 200, 0.18);
}
html.light .hc-tile {
  background: rgba(29, 135, 200, 0.04);
  border-color: rgba(29, 135, 200, 0.12);
}
html.light .hc-tile.hi {
  background: var(--brand-dim);
}
