/* base.css - ARC structural baseline tokens and global reset */

:root {
  --font-display: "Sora", "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Fira Code", "Consolas", monospace;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.08;
  --lh-heading: 1.16;
  --lh-body: 1.66;
  --lh-ui: 1.42;

  --fs-display-xl: clamp(2.45rem, 7vw, 4.6rem);
  --fs-display-lg: clamp(2rem, 5.2vw, 3.1rem);
  --fs-heading-lg: clamp(1.65rem, 4vw, 2.25rem);
  --fs-heading-md: 1.125rem;
  --fs-body-lg: 1.0625rem;
  --fs-body-md: 1rem;
  --fs-body-sm: 0.9375rem;
  --fs-ui-md: 0.875rem;
  --fs-ui-sm: 0.8125rem;
  --fs-meta: 0.75rem;
  --fs-mono-label: 0.75rem;

  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-100: 100px;
  --space-120: 120px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --header-height: 64px;
  --content-max-width: 1080px;

  --bg-base: #08090e;
  --bg-elevated: #0f1118;
  --bg-card: #151821;
  --bg-glass: rgba(21, 24, 33, 0.7);
  --bg-surface-soft: rgba(255, 255, 255, 0.02);
  --bg-surface-strong: rgba(255, 255, 255, 0.05);

  --border-glass: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(34, 211, 238, 0.45);

  --text-white: #f6f8ff;
  --text-grey: #c2c9da;
  --text-dim: #98a1b6;

  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #556ad3, #764ba2);
  --gradient-hero-emphasis: linear-gradient(135deg, #9ca8ff, #8aa2ff 52%, #7c8dff);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-white);
  background: var(--bg-base);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
}

p {
  color: var(--text-grey);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 110px;
}

.text-muted {
  color: var(--text-dim);
}

.mt-section {
  margin-top: var(--space-48);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
