/* ============================================
   X F Box — Design System / Base
   Inspired by: Wooting, MCHOSE, Razer, Apple
   Theme: Deep space dark + Electric accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Color Tokens ─────────────────────────────── */
  --bg-base:        #06070D;
  --bg-elevated:    #0B0D14;
  --bg-card:        #11141C;
  --bg-card-hover:  #161A24;
  --bg-glass:       rgba(17, 20, 28, 0.6);

  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);

  --text-primary:   #F5F7FA;
  --text-secondary: #B4BCC9;
  --text-muted:     #6B7280;
  --text-faint:     #4B5563;

  /* ── Brand Accents ────────────────────────────── */
  --accent-cyan:    #00E5FF;
  --accent-violet:  #B026FF;
  --accent-pink:    #FF2D78;
  --accent-lime:    #C6FF3D;

  --gradient-brand:  linear-gradient(135deg, #00E5FF 0%, #B026FF 100%);
  --gradient-warm:   linear-gradient(135deg, #B026FF 0%, #FF2D78 100%);
  --gradient-cool:   linear-gradient(135deg, #00E5FF 0%, #5B8CFF 100%);
  --gradient-aurora: linear-gradient(120deg, #00E5FF 0%, #B026FF 40%, #FF2D78 100%);

  --glow-cyan:   0 0 40px rgba(0, 229, 255, 0.45);
  --glow-violet: 0 0 40px rgba(176, 38, 255, 0.45);
  --glow-pink:   0 0 40px rgba(255, 45, 120, 0.40);

  /* ── Typography ───────────────────────────────── */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* ── Spacing scale ────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ── Radii ────────────────────────────────────── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  /* ── Shadows ──────────────────────────────────── */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(0, 229, 255, 0.15);

  /* ── Layout ───────────────────────────────────── */
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 64px);
  --nav-height: 72px;

  /* ── Motion ───────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Subtle starfield / grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(176, 38, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0, 229, 255, 0.10), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

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

ul, ol { list-style: none; }

/* ── Typography Utilities ───────────────────────── */
.display-1,
.display-2,
.display-3,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
}

.display-1 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; }
.display-2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.display-3 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }

.text-gradient {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite;
}

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

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 6px 14px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.05);
  backdrop-filter: blur(10px);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Layout helpers ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

/* ── Animations on scroll ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-violet));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-violet); }

::selection {
  background: var(--accent-violet);
  color: white;
}
