/* ============================================
   ROOT / DESIGN TOKENS
   ============================================ */
:root {
  /* Brand palette */
  --bg:          #000000;
  --primary:     #fb8500;
  --secondary:   #ffb703;
  --accent-1:    #219ebc;
  --accent-2:    #023047;

  /* Derived surfaces */
  --surface:     #0a0a0a;
  --surface-2:   #111111;
  --border:      rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Text */
  --text:        #ffffff;
  --text-muted:  rgba(255, 255, 255, 0.62);
  --text-dim:    rgba(255, 255, 255, 0.42);

  /* Type */
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-pill: 999px;
  --radius-md: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ============================================
   RESET
   ============================================ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

::selection {
  background: var(--primary);
  color: #000;
}

/* Focus ring — visible on black */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================
   BUTTONS  (shared across sections)
   ============================================ */
.btn {
  --btn-py: 1.05rem;
  --btn-px: 2rem;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  padding: var(--btn-py) var(--btn-px);
  border: 0;
  border-radius: var(--radius-pill);

  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;

  cursor: pointer;
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              filter 0.3s var(--ease-out);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn:active { transform: translateY(0) scale(0.985); }

/* --- Primary (orange → gold) --- */
.btn--primary {
  color: #0a0600;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 26px -12px rgba(251, 133, 0, 0.85);
}

.btn--primary::after {
  /* soft halo that blooms on hover */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s var(--ease-out);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 16px 42px -14px rgba(251, 133, 0, 0.95);
}

.btn--primary:hover::after { opacity: 0.55; }

/* --- Ghost / outline --- */
.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(33, 158, 188, 0.55);
  background: rgba(33, 158, 188, 0.08);
  transform: translateY(-2px);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger a group of reveals */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}