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

@theme {
  /* ── Core Palette ── */
  --color-bg-base: #050508;
  --color-bg-surface: #0a0a10;
  --color-bg-elevated: #101018;
  --color-bg-overlay: #16161f;
  --color-bg-card: #0c0c14;
  --color-bg-card-hover: #111119;

  /* ── Accent Colors ── */
  --color-accent: #ff6b2c;
  --color-accent-hover: #ff8a50;
  --color-accent-subtle: #ff6b2c1a;
  --color-accent-glow: #ff6b2c40;
  --color-accent-secondary: #6366f1;
  --color-accent-cyan: #22d3ee;
  --color-accent-success: #10b981;
  --color-accent-danger: #ef4444;
  --color-accent-warning: #f59e0b;
  --color-accent-ct: #60a5fa;
  --color-accent-t: #fbbf24;

  /* ── Text ── */
  --color-text-primary: #f0f0f5;
  --color-text-secondary: #a0a0b8;
  --color-text-muted: #5a5a72;
  --color-text-dim: #3a3a4e;

  /* ── Borders ── */
  --color-border: #1a1a2a;
  --color-border-hover: #28283c;
  --color-border-accent: #ff6b2c30;

  /* ── Typography ── */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ═════════════════════════════════════════════
   BASE
   ═════════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  background-color: #050508;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #050508;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 107, 44, 0.35);
  color: #f0f0f5;
}

/* ═════════════════════════════════════════════
   SCROLLBAR
   ═════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1a1a2a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b2c60;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #1a1a2a transparent;
}

/* ═════════════════════════════════════════════
   FOCUS
   ═════════════════════════════════════════════ */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid rgba(255, 107, 44, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═════════════════════════════════════════════
   INPUT NUMBER SPINNERS
   ═════════════════════════════════════════════ */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ═════════════════════════════════════════════
   KEYFRAMES
   ═════════════════════════════════════════════ */

/* Shimmer skeleton */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-shimmer {
  background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-elevated) 50%, var(--color-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px var(--color-accent-glow), 0 0 40px rgba(255,107,44,0.08); }
  50% { box-shadow: 0 0 24px var(--color-accent-glow), 0 0 60px rgba(255,107,44,0.15); }
}
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

/* Live indicator */
@keyframes live-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Breathing border */
@keyframes breathe {
  0%, 100% { border-color: rgba(255,107,44,0.15); }
  50% { border-color: rgba(255,107,44,0.35); }
}

/* Rotating gradient border */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotate-border { to { --border-angle: 360deg; } }

.glow-border {
  --border-angle: 0deg;
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--color-bg-card), var(--color-bg-card)),
    conic-gradient(from var(--border-angle), #ff6b2c, #6366f1, #22d3ee, #ff6b2c);
  animation: rotate-border 4s linear infinite;
}

/* CTA shimmer sweep */
@keyframes cta-shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* Gradient flow */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scan line */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Marquee scroll */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Orbit ring */
@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Subtle breathing scale */
@keyframes breathe-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Gradient text shimmer */
@keyframes text-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═════════════════════════════════════════════
   GRADIENT TEXT
   ═════════════════════════════════════════════ */
.text-gradient {
  background: linear-gradient(135deg, #ff6b2c 0%, #ff8a50 50%, #ffb380 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-animated {
  background: linear-gradient(90deg, #ff6b2c, #ff8a50, #6366f1, #22d3ee, #ff6b2c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 6s ease infinite;
}

.text-gradient-cool {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-white {
  background: linear-gradient(180deg, #ffffff 0%, #a0a0b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═════════════════════════════════════════════
   HERO GRADIENTS
   ═════════════════════════════════════════════ */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,107,44,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(99,102,241,0.06), transparent);
}

.hero-gradient-intense {
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(255,107,44,0.15), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 60%, rgba(99,102,241,0.08), transparent 70%),
    radial-gradient(ellipse 30% 25% at 80% 40%, rgba(34,211,238,0.05), transparent 70%);
}

/* ═════════════════════════════════════════════
   GLASS EFFECTS
   ═════════════════════════════════════════════ */
.glass {
  background: rgba(10, 10, 16, 0.65);
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(24px) saturate(1.2);
}

.glass-strong {
  background: rgba(12, 12, 20, 0.85);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(40px) saturate(1.3);
}

.glass-panel {
  background: linear-gradient(135deg, rgba(12,12,20,0.7) 0%, rgba(16,16,24,0.5) 100%);
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(30px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 20px 60px -12px rgba(0,0,0,0.5);
}

/* ═════════════════════════════════════════════
   CARD EFFECTS
   ═════════════════════════════════════════════ */
.card-glow {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,107,44,0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-glow:hover::before { opacity: 1; }
.card-glow:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 60px rgba(255,107,44,0.04);
  transform: translateY(-2px);
}

/* Spotlight card - follows cursor glow (needs JS) */
.card-spotlight {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.card-spotlight::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,107,44,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) translate(-50%, -50%);
}
.card-spotlight:hover::before { opacity: 1; }
.card-spotlight:hover { border-color: var(--color-border-hover); }

/* ═════════════════════════════════════════════
   GRID BACKGROUND
   ═════════════════════════════════════════════ */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 60px 60px;
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ═════════════════════════════════════════════
   NOISE TEXTURE OVERLAY
   ═════════════════════════════════════════════ */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ═════════════════════════════════════════════
   NEON ACCENTS
   ═════════════════════════════════════════════ */
.neon-orange {
  text-shadow: 0 0 10px rgba(255,107,44,0.5), 0 0 30px rgba(255,107,44,0.2);
}

.neon-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff6b2c, transparent);
  opacity: 0.4;
}

.neon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b2c;
  box-shadow: 0 0 8px #ff6b2c80, 0 0 24px #ff6b2c30;
}

/* ═════════════════════════════════════════════
   STAT NUMBER
   ═════════════════════════════════════════════ */
.stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ═════════════════════════════════════════════
   BUTTON EFFECTS
   ═════════════════════════════════════════════ */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.5s ease;
}
.btn-shine:hover::after { left: 120%; }

.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═════════════════════════════════════════════
   HORIZONTAL SCROLL
   ═════════════════════════════════════════════ */
.horizontal-scroll-container {
  overflow: hidden;
}

.horizontal-scroll-track {
  display: flex;
  gap: 2rem;
  will-change: transform;
}

.horizontal-scroll-track > * {
  flex-shrink: 0;
}

/* Snap scroll for touch devices */
.snap-scroll {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  scrollbar-width: none;
}
.snap-scroll::-webkit-scrollbar { display: none; }
.snap-scroll > * {
  scroll-snap-align: center;
}

/* ═════════════════════════════════════════════
   MARQUEE / INFINITE SCROLL
   ═════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ═════════════════════════════════════════════
   SECTION DIVIDERS
   ═════════════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,44,0.15) 20%, rgba(99,102,241,0.1) 50%, rgba(255,107,44,0.15) 80%, transparent);
}

.section-divider-strong {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,107,44,0.3) 30%, rgba(99,102,241,0.2) 50%, rgba(34,211,238,0.15) 70%, transparent 95%);
}

/* ═════════════════════════════════════════════
   BENTO GRID
   ═════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.bento-grid > * {
  background: var(--color-bg-card);
  padding: 2rem;
}

/* ═════════════════════════════════════════════
   ORBIT RING DECORATION
   ═════════════════════════════════════════════ */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,107,44,0.08);
  animation: orbit 30s linear infinite;
}

.orbit-ring::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b2c;
  box-shadow: 0 0 12px #ff6b2c80;
}

/* ═════════════════════════════════════════════
   GRADIENT BORDER
   ═════════════════════════════════════════════ */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,44,0.3), rgba(99,102,241,0.2), rgba(34,211,238,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ═════════════════════════════════════════════
   TYPOGRAPHY: DISPLAY FONT
   ═════════════════════════════════════════════ */
.font-display {
  font-family: var(--font-display);
}

/* Large display headings with tight tracking */
.heading-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* ═════════════════════════════════════════════
   STAGGER REVEAL (works with intersection observer)
   ═════════════════════════════════════════════ */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.0s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ═════════════════════════════════════════════
   SCROLL PROGRESS LINE (top of page)
   ═════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b2c, #6366f1, #22d3ee);
  z-index: 9999;
  transform-origin: left;
  will-change: transform;
}

/* ═════════════════════════════════════════════
   CLIP PATHS FOR CREATIVE LAYOUTS
   ═════════════════════════════════════════════ */
.clip-slant {
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
}

.clip-arrow {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
}
