/* =========================================================
   DUX 2026 — Design Tokens, Reset & Base Typography
   ========================================================= */

:root {
  /* Surfaces */
  --bg:        #0B0B0C;
  --bg-soft:   #0E0E10;
  --surface:   #111114;
  --surface-2: #17181C;
  --surface-3: #1D1F24;
  --border:    #23252B;
  --border-2:  #2C2F36;

  /* Text */
  --text:      #F5F5F7;
  --text-mute: #9A9CA3;
  --text-dim:  #6E7079;

  /* Accent */
  --accent:    #E2483C;
  --accent-2:  #FF5A4A;
  --accent-soft: rgba(226, 72, 60, 0.12);

  /* Status */
  --success:   #22C55E;

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Type scale */
  --font-display: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-eyebrow: 0.75rem;       /* 12px */
  --fs-body:    1rem;           /* 16px */
  --fs-lead:    1.125rem;       /* 18px */
  --fs-h6:      1rem;
  --fs-h5:      1.25rem;
  --fs-h4:      1.5rem;
  --fs-h3:      clamp(1.5rem, 2.4vw, 2rem);
  --fs-h2:      clamp(2rem, 4.5vw, 3.25rem);
  --fs-h1:      clamp(2.5rem, 7vw, 5.25rem);
  --fs-display: clamp(3rem, 9vw, 7rem);

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 200ms;
  --dur-2: 400ms;
  --dur-3: 700ms;
  --dur-4: 1100ms;

  /* Shadows */
  --shadow-glow: 0 0 0 1px rgba(255, 90, 74, 0.4), 0 18px 50px -18px rgba(226, 72, 60, 0.55);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Reset
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

ul,
ol {
  list-style: none;
}

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

/* =========================================================
   Typography utilities
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }
h5 { font-size: var(--fs-h5); font-weight: 600; }
h6 { font-size: var(--fs-h6); font-weight: 600; }

p { color: var(--text-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-mute);
  line-height: 1.65;
  max-width: 60ch;
}

/* =========================================================
   Container & layout
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--container-wide);
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  --btn-bg: var(--accent);
  --btn-color: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              color var(--dur-1) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--text);
  --btn-border: var(--border-2);
}

.btn-ghost:hover {
  --btn-bg: var(--surface-2);
  --btn-border: var(--text);
  box-shadow: none;
}

.btn-light {
  --btn-bg: var(--text);
  --btn-color: var(--bg);
}

.btn-light:hover {
  --btn-bg: #fff;
  box-shadow: 0 18px 40px -20px rgba(255, 255, 255, 0.4);
}

.btn-arrow {
  transition: transform var(--dur-1) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* =========================================================
   Reveal animations
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="fade-in"] { transform: none; }
[data-reveal="fade-up"] { transform: translateY(28px); }
[data-reveal="fade-right"] { transform: translateX(-28px); }
[data-reveal="fade-left"] { transform: translateX(28px); }
[data-reveal="scale-in"] { transform: scale(0.96); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Helpers
   ========================================================= */

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

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.text-accent { color: var(--accent); }
.text-mute   { color: var(--text-mute); }

/* Subtle grain overlay for premium feel */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
