/* =========================================================
   Aube Research & Analytics — Global styles
   Design tokens, reset, typography, base utilities
   ========================================================= */

:root {
  --bg: #06090b;
  --panel: #0b1012;
  --card: #10171a;
  --card-hover: #131b1e;
  --border: rgba(237, 242, 241, 0.08);
  --border-strong: rgba(237, 242, 241, 0.16);
  --accent: #3ddc97;
  --accent-hover: #4ee5a5;
  --accent-dim: rgba(61, 220, 151, 0.12);
  --accent-line: rgba(61, 220, 151, 0.35);
  --text: #edf2f1;
  --muted: #8fa3a8;
  --muted-dim: #5d6e72;

  --font-display: "Avenir Next", "Segoe UI Semibold", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-body: -apple-system, "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;

  --max-width: 1440px;
  --gutter: 1.5rem;
}

@media (min-width: 1024px) {
  :root {
    --gutter: 2.5rem;
  }
}

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

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

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 85% -10%, rgba(61, 220, 151, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 10% 15%, rgba(61, 220, 151, 0.05), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #06090b;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1b2528;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #253134;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography helpers ---------- */
.font-display {
  font-family: var(--font-display);
}
.font-mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}
.eyebrow--sm {
  font-size: 0.65rem;
}
.eyebrow--pill {
  border: 1px solid var(--accent-line);
  background: rgba(61, 220, 151, 0.07);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
}
.eyebrow--dim {
  color: var(--muted-dim);
  letter-spacing: 0.14em;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 6rem;
}
.section--tight {
  padding-block: 5rem;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  max-width: var(--max-width);
  margin-inline: auto;
}

.glass {
  background: rgba(16, 23, 26, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-border {
  border: 1px solid var(--border);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #06090b;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
