/* MELDIX — shell.css: tokens, reset, typography, utilities */

:root {
  --ink: #E8E9F3;
  --ink-2: #B6B9CC;
  --ink-3: #7E839A;
  --midnight: #0B0D14;
  --charcoal: #1A1D2E;
  --slate: #232739;
  --violet: #6B2BC9;
  --violet-2: #7B5CFF;
  --electric: #4D9AFF;
  --crimson: #CC0033;
  --paper: #0B0D14;
  --line: rgba(232, 233, 243, 0.10);
  --line-2: rgba(232, 233, 243, 0.22);

  --grad-stage: linear-gradient(135deg, #0B0D14 0%, #1A1D2E 52%, #2A1E5A 100%);
  --grad-cta: linear-gradient(96deg, #6B2BC9 0%, #4D9AFF 100%);
  --grad-accent: radial-gradient(circle at 28% 36%, rgba(123, 92, 255, 0.22), transparent 62%);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Space Mono", ui-monospace, monospace;

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  --step-1: 8px;
  --step-2: 16px;
  --step-3: 24px;
  --step-4: 32px;
  --step-5: 48px;
  --step-6: 64px;
  --step-7: 96px;
  --step-8: 128px;

  --wrap: 1240px;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--electric); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--step-2) 0;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 18px; letter-spacing: 0; }
p { margin: 0 0 var(--step-2) 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--step-3); }
@media (min-width: 768px) { .wrap { padding: 0 var(--step-4); } }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--step-1);
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  letter-spacing: 0.02em;
  border: 0; cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-primary {
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 6px 24px -10px rgba(123, 92, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); color: #fff; }
.btn-ghost {
  color: var(--ink); background: transparent;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(123, 92, 255, 0.08); color: var(--ink); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--electric);
  border: 1px solid rgba(77, 154, 255, 0.32);
  border-radius: var(--r-sm);
  background: rgba(77, 154, 255, 0.06);
}

.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;
}

.jump-to-main {
  position: absolute; top: -120px; left: 16px; z-index: 9999;
  background: var(--ink); color: var(--midnight);
  padding: 10px 16px; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 13px;
  transition: top 0.18s ease;
}
.jump-to-main:focus { top: 16px; color: var(--midnight); }

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

hr {
  border: 0; height: 1px; background: var(--line); margin: var(--step-5) 0;
}

::selection { background: var(--violet); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
