/* ============================================
   ONYX VISUAL — Design System
   Premium LED Display Rentals & Sales — NYC
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================
   1. CSS CUSTOM PROPERTIES (TOKENS)
   ============================================ */

:root {
  /* — Colors — */
  --bg-primary:      #0A0A0F;
  --bg-secondary:    #12121A;
  --bg-tertiary:     #1A1A2E;
  --accent-primary:  #3B82F6;
  --accent-secondary:#06B6D4;
  --accent-glow:     linear-gradient(135deg, #3B82F6, #06B6D4);
  --text-primary:    #F8FAFC;
  --text-secondary:  #94A3B8;
  --text-muted:      #7C8DB0;
  --border-color:    #1E293B;
  --success:         #10B981;

  /* Glow effects */
  --glow-shadow:     0 0 20px rgba(59, 130, 246, 0.25),
                     0 0 40px rgba(6, 182, 212, 0.1);
  --glow-shadow-strong: 0 0 24px rgba(59, 130, 246, 0.4),
                        0 0 48px rgba(6, 182, 212, 0.15);

  /* — Typography — */
  --font-heading:    'Plus Jakarta Sans', sans-serif;
  --font-body:       'Inter', sans-serif;

  --fw-regular:      400;
  --fw-medium:       500;
  --fw-semibold:     600;
  --fw-bold:         700;
  --fw-extrabold:    800;

  --lh-heading:      1.15;
  --lh-body:         1.6;

  /* — Spacing (8px base) — */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  28px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-30: 120px;

  /* — Layout — */
  --container-max:   1280px;
  --container-px:    var(--sp-6);

  /* — Radius — */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full:9999px;

  /* — Transition — */
  --transition-fast:    150ms ease;
  --transition-base:    300ms ease;
  --transition-slow:    500ms ease;

  /* — Navbar — */
  --navbar-height:   80px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 2vw + 0.25rem, 1.875rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
}

p {
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.text-muted {
  color: var(--text-muted);
}

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--sp-24);
    padding-bottom: var(--sp-24);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--sp-30);
    padding-bottom: var(--sp-30);
  }
}

/* ============================================
   5. SECTION HEADER PATTERN
   ============================================ */

.section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-16);
}

.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-4);
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ============================================
   6. BUTTON SYSTEM
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-8);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary — gradient glow */
.btn-primary {
  background: var(--accent-glow);
  color: #fff;
  box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-2px);
}

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

/* Secondary — outlined */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(248, 250, 252, 0.25);
}

.btn-secondary:hover {
  background: rgba(248, 250, 252, 0.08);
  border-color: rgba(248, 250, 252, 0.4);
}

/* Small variant */
.btn-sm {
  font-size: 0.8125rem;
  padding: var(--sp-3) var(--sp-5);
}

/* Large variant */
.btn-lg {
  font-size: 1.0625rem;
  padding: var(--sp-5) var(--sp-10);
  border-radius: var(--radius-md);
}

/* ============================================
   7. CARD SYSTEM
   ============================================ */

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .card {
    padding: var(--sp-8);
  }
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--glow-shadow);
}

/* ============================================
   8. SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* ============================================
   9. UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-gradient {
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

/* ============================================
   10. FOCUS & ACCESSIBILITY
   ============================================ */

/* Focus-visible on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link (hidden until focused) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 10001;
  padding: var(--sp-3) var(--sp-6);
  background: var(--accent-primary);
  color: #fff;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: var(--sp-4);
}


/* ============================================
   11. CTA GLOW PULSE ON HOVER
   ============================================ */

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25),
                0 0 40px rgba(6, 182, 212, 0.1);
  }
  50% {
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.4),
                0 0 56px rgba(6, 182, 212, 0.2);
  }
}

.btn-primary:hover {
  animation: glow-pulse 2s ease-in-out infinite;
}


/* ============================================
   12. REDUCED MOTION
   ============================================ */

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

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}

