/* TechSpot Trading LLC — design tokens & base reset */

:root {
  /* Surfaces */
  --bg: oklch(13.5% 0 0);
  --bg-elevated: oklch(16.5% 0 0);
  --surface: oklch(19.5% 0 0);
  --surface-2: oklch(23.5% 0 0);
  --border: oklch(30% 0 0);
  --border-strong: oklch(38% 0 0);

  /* Text */
  --fg: oklch(95.5% 0.006 255);
  --muted: oklch(70% 0.02 255);
  --muted-2: oklch(53% 0.018 255);

  /* Accent — white */
  --accent: oklch(100% 0 0);
  --accent-hover: oklch(92% 0 0);
  --accent-active: oklch(84% 0 0);
  --accent-fg: oklch(14% 0.02 255);
  --accent-soft: oklch(100% 0 0 / 0.1);
  --accent-border: oklch(100% 0 0 / 0.3);

  /* State */
  --success: oklch(75% 0.16 155);
  --danger: oklch(68% 0.18 25);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-elevated: 0 20px 60px -20px oklch(0% 0 0 / 0.6);
  --focus-ring: 0 0 0 3px oklch(100% 0 0 / 0.45);
  --header-bg: oklch(13.5% 0 0 / 0.82);
  --header-bg-scrolled: oklch(13.5% 0 0 / 0.96);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(oklch(100% 0 0 / 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto; /* keeps width/height attrs from distorting a scaled image */
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px oklch(100% 0 0 / 0.7);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
