/* HubSecure marketing — design tokens (aligned to live css/tokens.css)
   Dark only. DM Sans. Pink-purple accent. */

:root {
  /* Type */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;

  /* Surfaces */
  --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);
  --surface-hover: rgba(255,255,255,0.05);

  /* Borders */
  --border-strong:      #432981;
  --border-card:        #2D2840;
  --border-soft:        rgba(67,41,129,0.3);
  --border-input:       rgba(255,255,255,0.10);
  --border-input-hover: rgba(235,143,255,0.35);
  --border-input-focus: rgba(235,143,255,0.7);

  /* Brand & accent */
  --brand-primary:       #3F1E8D;
  --brand-primary-hover: #4C24A5;
  --accent:              #EB8FFF;
  --accent-soft:         #E096FF;
  --accent-bg-soft:      rgba(235,143,255,0.12);
  --accent-bg-strong:    rgba(63,30,141,0.3);

  /* Text */
  --text-primary: #ffffff;
  --text-body:    #e7eaf4;
  --text-soft:    #cdd4e6;
  --text-muted:   #8A92A6;
  --text-muted-2: #888799;

  /* Status */
  --success-bg: rgba(74,222,128,0.18);
  --success-fg: #7be492;
  --success-bd: rgba(74,222,128,0.35);
  --warning-bg: rgba(255,183,77,0.18);
  --warning-fg: #ffd193;
  --warning-bd: rgba(255,183,77,0.4);
  --danger-bg:  rgba(244,63,94,0.20);
  --danger-fg:  #ff9eb1;
  --danger-bd:  rgba(244,63,94,0.4);
  --info-bg:    rgba(110,165,255,0.18);
  --info-fg:    #9ec4ff;
  --info-bd:    rgba(110,165,255,0.35);

  /* Module colors */
  --m-aml:    #EB8FFF;
  --m-crm:    #22c55e;
  --m-vault:  #14b8a6;
  --m-svc:    #06b6d4;
  --m-tasks:  #eab308;
  --m-inc:    #ef4444;
  --m-chat:   #ec4899;
  --m-growth: #00d68f;

  /* Pillar accent colors */
  --pillar-record:     #c084fc;   /* Governed Client Record — purple */
  --pillar-comms:      #06b6d4;   /* Secure Communication — cyan */
  --pillar-compliance: #22c55e;   /* Compliance Operations — emerald */
  --pillar-ai:         #f59e0b;   /* Governed AI — amber */
  --pillar-graph:      #ec4899;   /* Operational Graph — pink */

  /* Radii */
  --r-pill:  999px;
  --r-card:  12px;
  --r-input: 10px;

  /* Shadows */
  --shadow-dialog: 0 20px 50px rgba(0,0,0,0.55);
  --shadow-card:   0 3px 0 #432981;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Containers */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide  { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Section labels & titles (the documented pattern) */
.section-label {
  font-size: 0.72rem; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  display: inline-block;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em; line-height: 1.1;
  margin: 0.5rem 0 0;
  text-wrap: balance;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-soft);
  max-width: 640px; margin-top: 1rem;
}

/* Gradient text — for the headline accent words */
.grad-text {
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 35%, #EB8FFF 60%, #c084fc 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s ease infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Hero eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: var(--r-pill);
  padding: .35rem 1rem;
  font-size: .75rem; font-weight: 700; color: var(--accent);
  letter-spacing: .05em; text-transform: uppercase;
}
.eyebrow .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(235,143,255,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(235,143,255,0.6); }
  50%     { box-shadow: 0 0 0 6px rgba(235,143,255,0); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-pill);
  font: 600 0.9rem/1 var(--font-sans);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, filter .2s;
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn-xl { padding: 16px 34px; font-size: 1rem; }
.btn-primary {
  background: var(--brand-primary); color: #fff;
}
.btn-primary:hover { background: var(--brand-primary-hover); filter: brightness(1.12); }
.btn-ghost, .btn-outline {
  background: transparent; border-color: var(--border-card); color: var(--text-soft);
}
.btn-ghost:hover, .btn-outline:hover { border-color: var(--accent); color: var(--text-primary); }

/* Cards */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--accent); }

/* Trust chip */
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-pill);
  padding: .28rem .7rem;
  font-size: .7rem; font-weight: 600; color: var(--text-muted);
}

/* Module dot */
.mod-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}

/* Hero background bits */
.dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(139,92,246,.14) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(var(--border-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-strong) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
  mix-blend-mode: screen;
}
.orb-1 { width: 600px; height: 600px; background: rgba(139,92,246,.10); }
.orb-2 { width: 420px; height: 420px; background: rgba(192,132,252,.08); }
.orb-3 { width: 280px; height: 280px; background: rgba(99,57,195,.06); }

/* Mono accent */
.mono { font-family: var(--font-mono); }
.dim { color: var(--text-muted); }
