/* BlackHalo marketing site — design tokens, reset, typography, utilities. */

:root {
  color-scheme: dark;

  --bg: #07060b;
  --bg-raised: #0d0a15;
  --bg-card: #120e1e;
  --bg-card-hover: #181230;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.4);

  --text: #eeeaf8;
  --text-muted: #aca5c3;

  --purple-deep: #4c1d95;
  --purple: #7c3aed;
  --violet: #a78bfa;
  --blue: #3b82f6;
  --blue-soft: #7cb0fb;

  --gradient-cta: linear-gradient(135deg, #7c3aed 0%, #5b3df0 50%, #2563eb 100%);
  --gradient-text: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 35%, #7cb0fb 100%);
  --shadow-glow: 0 12px 40px -12px rgba(124, 58, 237, 0.6);

  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-height: 4.25rem;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(80% 50% at 50% -10%, rgba(76, 29, 149, 0.32), transparent 70%),
    radial-gradient(45% 35% at 100% 28%, rgba(37, 99, 235, 0.1), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.2rem + 5.2vw, 4.1rem);
}

h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--violet);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #c4b5fd;
}

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(124, 58, 237, 0.55);
  color: #fff;
}

/* Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
