/* DVA Pulse — design tokens
   Inspired by Apple's editorial product-page conventions, mapped onto DVA's red brand.
   Colors are original; type stack is system-first.
*/

:root {
  /* Brand */
  --dva-red: #E5343C;        /* approx. tone of DVA's red logo */
  --dva-red-deep: #B81F26;
  --dva-red-soft: #FFE9EA;

  /* Surfaces */
  --bg: #FBFAF7;             /* warm off-white */
  --bg-alt: #F2EFEA;
  --bg-dark: #0A0A0A;
  --bg-mid: #161616;
  --ink: #0A0A0A;
  --ink-2: #4A4A4A;
  --ink-3: #8B8B8B;
  --line: rgba(10,10,10,0.10);
  --line-dark: rgba(255,255,255,0.12);

  /* Type stack — Inter as primary; fallbacks to SF/system */
  --font-display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Display sizes — editorial scale */
  --fs-mega: clamp(56px, 9vw, 168px);
  --fs-hero: clamp(48px, 7.2vw, 128px);
  --fs-h1:   clamp(40px, 5.4vw, 92px);
  --fs-h2:   clamp(32px, 3.8vw, 64px);
  --fs-h3:   clamp(22px, 1.8vw, 32px);
  --fs-lead: clamp(18px, 1.35vw, 24px);
  --fs-body: 17px;
  --fs-meta: 13px;

  /* Spacing */
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--dva-red); color: #fff; }

/* Display headings — Apple-style: tight, heavy, expressive */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
}
.display.thin { font-weight: 500; letter-spacing: -0.035em; }
.display em { font-style: italic; font-weight: 500; color: var(--dva-red); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
  letter-spacing: -0.015em;
}

/* Section primitives */
.section {
  padding: clamp(72px, 10vh, 140px) var(--pad);
  position: relative;
}
.section--dark { background: var(--bg-dark); color: #F5F5F5; }
.section--alt  { background: var(--bg-alt); }
.section--full { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

.container { max-width: 1440px; margin: 0 auto; width: 100%; }
.container--narrow { max-width: 1080px; }
.container--wide { max-width: 1680px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 200ms var(--ease-out), background 200ms ease, color 200ms ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-1px); background: var(--dva-red); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--red { background: var(--dva-red); color: #fff; }
.btn--red:hover { background: var(--dva-red-deep); }

.section--dark .btn--ghost { color: #fff; border-color: var(--line-dark); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }

/* Link with arrow — Apple convention */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--dva-red); font-weight: 500; font-size: 16px;
  letter-spacing: -0.01em;
}
.link-arrow svg { transition: transform 200ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-motion .reveal { opacity: 1; transform: none; transition: none; }
.no-motion * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
