:root {
  --color-brand: #F26522;
  --color-brand-hover: #D95318;
  --color-brand-soft: rgba(242, 101, 34, 0.12);
  --color-coral: #EF4423;
  --color-ink: #09090B;
  --color-navy: #0F172A;
  --color-slate: #334155;
  --color-muted: #475569;
  --color-border: #E2E8F0;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
}

@layer base {
  html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-ink);
    background-color: var(--color-bg);
  }

  h1, h2, h3, h4, .font-display {
    font-family: 'Space Grotesk', system-ui, sans-serif;
  }

  .font-mono-tech {
    font-family: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
  }
}

/* Subtle tech grid background for dark sections */
.bg-tech-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Fiber optic pulse animation */
@keyframes fiber-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

.fiber-glow {
  animation: fiber-pulse 6s ease-in-out infinite;
}

/* Speed bar transition */
.speed-bar-fill {
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Accessible focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* FAQ accordion chevron rotation */
details[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fiber-glow {
    animation: none;
  }
  .speed-bar-fill,
  * {
    transition-duration: 0.01ms !important;
  }
}
