/* ============================================================
   HubSecure — Design Tokens + Components
   Dark-only, governed-enterprise aesthetic
   ============================================================ */

:root {
  /* Core palette */
  --bg:            #050514;
  --bg-2:          #08071c;
  --surface:       rgba(26, 22, 39, 0.70);
  --surface-solid: #14111f;
  --surface-2:     rgba(40, 34, 58, 0.55);
  --accent:        #EB8FFF;
  --accent-dim:    #b069c9;
  --brand:         #3F1E8D;
  --brand-2:       #5a2fb8;

  /* Text */
  --text:          #ffffff;
  --text-soft:     #cdd4e6;
  --text-muted:    #8A92A6;
  --text-faint:    #5d6478;

  /* Lines */
  --border:        #2D2840;
  --border-soft:   rgba(120, 110, 160, 0.16);
  --border-bright: rgba(235, 143, 255, 0.30);

  /* Module accents */
  --m-crm:        #22c55e;
  --m-vault:      #14b8a6;
  --m-mail:       #06b6d4;
  --m-aml:        #EB8FFF;
  --m-tasks:      #eab308;
  --m-incidents:  #ef4444;
  --m-chat:       #ec4899;
  --m-ai:         #f59e0b;

  /* Type */
  --font:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

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

  /* Shadows */
  --shadow:    0 24px 60px -24px rgba(0,0,0,0.7);
  --shadow-lg: 0 50px 120px -40px rgba(0,0,0,0.85);
  --glow:      0 0 0 1px var(--border-bright), 0 20px 60px -20px rgba(235,143,255,0.25);

  /* Layout */
  --maxw: 1200px;
  --gut: 24px;

  /* Legacy token aliases (used by other pages) */
  --surface-page:  #050514;
  --surface-shell: #1A1627;
  --surface-inset: #13101d;
  --surface-card:  rgba(26,22,39,0.7);
  --surface-elev:  rgba(26,22,39,0.4);
  --border-strong:      #432981;
  --border-card:        #2D2840;
  --brand-primary:       #3F1E8D;
  --brand-primary-hover: #4C24A5;
  --accent-soft:         #E096FF;
  --accent-bg-soft:      rgba(235,143,255,0.12);
  --accent-bg-strong:    rgba(63,30,141,0.3);
  --text-primary: #ffffff;
  --text-body:    #e7eaf4;
  --r-pill:  999px;
  --r-card:  12px;
  --r-input: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Ambient background ---- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  pointer-events: none;
}
.bg-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(150,140,200,0.13) 1px, transparent 0);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 18%, #000 30%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 18%, #000 30%, transparent 72%);
}
.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; top: -200px; left: -160px;
  background: radial-gradient(circle, rgba(63,30,141,0.55), transparent 68%); }
.orb-2 { width: 420px; height: 420px; top: 280px; right: -120px;
  background: radial-gradient(circle, rgba(235,143,255,0.20), transparent 70%); }
.orb-3 { width: 280px; height: 280px; top: 1100px; left: 40%;
  background: radial-gradient(circle, rgba(99,102,241,0.22), transparent 70%); }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(40px, 6vw, 70px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 21px; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

.grad-text {
  background: linear-gradient(100deg, #c084fc, #818cf8, #EB8FFF, #c084fc);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.lead { color: var(--text-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; }
.muted { color: var(--text-muted); }
.mono  { font-family: var(--mono); }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

/* ---- Eyebrow pill ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(235,143,255,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(235,143,255,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(235,143,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(235,143,255,0); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  color: #1a0626;
  box-shadow: 0 14px 34px -12px rgba(235,143,255,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(235,143,255,0.62); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--border-bright); }

/* ---- Icons ---- */
.icon { width: 22px; height: 22px; stroke-width: 1.6; fill: none; stroke: currentColor; }
.icon-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}

/* ---- Section heading ---- */
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 16px 0 16px; }
.sec-head .lead { margin: 0; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .grad-text { animation: none; }
}
