/* ============================================================
   VoxSystems - Core stylesheet
   Near-black monochrome system. No color branding by design.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces - near-black with subtle steps for depth */
  --bg:           #0a0a0a;
  --bg-raised:    #111111;
  --bg-card:      #131313;
  --bg-card-hov:  #181818;

  /* Ink */
  --ink:          #f5f5f0;   /* primary text */
  --ink-soft:     #b4b4ae;   /* secondary text */
  --ink-mute:     #6f6f6a;   /* tertiary / captions */
  --ink-faint:    #3a3a38;   /* disabled / hairlines text */

  /* Lines */
  --line:         rgba(245,245,240,0.09);
  --line-strong:  rgba(245,245,240,0.16);

  /* Accent is deliberately NOT a color - it is pure white used sparingly */
  --accent:       #ffffff;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, monospace;

  /* Type scale (fluid) */
  --t-display: clamp(2.6rem, 6.2vw, 5.25rem);
  --t-h1:      clamp(2.1rem, 4.6vw, 3.5rem);
  --t-h2:      clamp(1.6rem, 3.2vw, 2.5rem);
  --t-h3:      clamp(1.18rem, 1.8vw, 1.45rem);
  --t-body-lg: clamp(1.05rem, 1.5vw, 1.22rem);
  --t-body:    1rem;
  --t-sm:      0.875rem;
  --t-xs:      0.75rem;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --s-9: 11rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --radius: 14px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "cv02";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Selection ---------- */
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: var(--line-strong);
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
.display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2.section-title { font-size: var(--t-h2); margin-top: var(--s-3); }
.lede { font-size: var(--t-body-lg); color: var(--ink-soft); line-height: 1.55; }

.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #fff; transform: translateY(-2px); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-soft); background: rgba(245,245,240,0.04); }

.btn--lg { padding: 1.1em 2em; font-size: var(--t-body); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Focus visibility (a11y floor) ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

/* ---------- Hairline divider ---------- */
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Scroll reveal base ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
