/* ============================================================
   BASE.CSS — Reset · Typography · Global
   Arioun AI v2
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ── Focus ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: rgba(124,58,237,0.35);
  color: var(--text-1);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: var(--accent-border);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Type Scale ───────────────────────────────────────────── */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.t-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.t-body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-2);
}

.t-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-2);
}

.t-body-sm {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-3);
}

.t-caption {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
}

/* ── Gradient text ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-vivid) 0%, var(--accent-bright) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Color helpers ────────────────────────────────────────── */
.text-accent   { color: var(--accent-vivid); }
.text-muted    { color: var(--text-3); }
.text-secondary{ color: var(--text-2); }

/* ── Page routing ─────────────────────────────────────────── */
.page         { display: none; }
.page.active  { display: block; }
