/* ══════════════════════════════════════════════════════════════
   shadcn/ui Official Design System & Theme Tokens (Zinc Dark)
   Fully Responsive & Mobile-Optimized with 0ms Poster Paint
   ══════════════════════════════════════════════════════════════ */

:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  --radius: 0.5rem;
  
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

/* ─── RESET & DEFAULTS ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  background-color: #050508;
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  color-scheme: dark;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: transparent;
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ─── 3D BACKGROUND VIDEO CONTAINER WITH ZERO-DELAY POSTERS ──── */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  background-color: #050508;
  background-image: url('poster-desktop.jpg');
  background-size: cover;
  background-position: center;
}

@media (max-width: 767px) {
  .video-bg-container {
    background-image: url('poster-mobile.jpg');
  }
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: contrast(1.08) saturate(1.15);
  will-change: transform;
}

/* Desktop vs Mobile Video Display */
.desktop-video {
  display: block;
}

.mobile-video {
  display: none;
}

@media (max-width: 767px) {
  .desktop-video {
    display: none !important;
  }
  .mobile-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
  }
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 9, 11, 0.15) 0%, rgba(9, 9, 11, 0.6) 100%);
  pointer-events: none;
}

.video-grid-overlay {
  position: absolute;
  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: 48px 48px;
  pointer-events: none;
}

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

/* ─── UTILITY CLASSES ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.bg-background { background-color: transparent; }
.text-foreground { color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/20 { background-color: hsla(var(--muted) / 0.2); }
.bg-muted\/40 { background-color: hsla(var(--muted) / 0.4); }
.bg-muted\/50 { background-color: hsla(var(--muted) / 0.5); }
.bg-muted\/60 { background-color: hsla(var(--muted) / 0.6); }
.bg-muted\/80 { background-color: hsla(var(--muted) / 0.8); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.border-border { border-color: hsl(var(--border)); }
.border-border\/40 { border-color: hsla(var(--border) / 0.4); }
.border-border\/60 { border-color: hsla(var(--border) / 0.6); }
.border-border\/70 { border-color: hsla(var(--border) / 0.7); }
.border-border\/80 { border-color: hsla(var(--border) / 0.8); }

.font-mono { font-family: var(--font-mono); }
.break-words { word-break: break-word; overflow-wrap: break-word; }
.shrink-0 { flex-shrink: 0; }

/* Backdrop Blur */
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.backdrop-blur-2xl { backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }

/* Flex & Grid */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Sizing & Spacing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-14 { height: 3.5rem; }
.h-1\.5 { height: 0.375rem; }
.w-1\.5 { width: 0.375rem; }
.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-full { max-width: 100%; }
.max-w-screen-2xl { max-width: 1536px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-2 { margin-left: 0.5rem; }

.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-28 { padding-bottom: 7rem; }
.pb-32 { padding-bottom: 8rem; }

.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Border Radius */
.rounded { border-radius: var(--radius); }
.rounded-none { border-radius: 0; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }
.rounded-full { border-radius: 9999px; }

/* Borders & Shadows */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }

/* Typography */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }

/* Status Colors */
.bg-emerald-500 { background-color: #10b981; }
.text-emerald-400 { color: #34d399; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ─── SHADCN BUTTON VARIANTS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

/* Default (Primary Solid White) */
.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}
.btn-default:hover {
  background-color: hsla(var(--primary) / 0.9);
}

/* Secondary */
.btn-secondary {
  background-color: hsla(var(--secondary) / 0.8);
  color: hsl(var(--secondary-foreground));
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background-color: hsla(var(--secondary) / 1);
}

/* Outline */
.btn-outline {
  border-color: hsla(var(--border) / 0.8);
  background-color: hsla(var(--background) / 0.6);
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background-color: hsla(var(--accent) / 0.8);
  color: hsl(var(--accent-foreground));
}

/* Sizes */
.btn-sm {
  height: 2.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  height: 2.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ─── SHADCN CARD COMPONENT ─────────────────────────────────── */
.card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease;
  max-width: 100%;
}

.card:hover {
  border-color: hsla(var(--foreground) / 0.25);
}

/* ─── SHADCN ACCORDION ──────────────────────────────────────── */
.accordion-trigger {
  cursor: pointer;
  background: none;
  border: none;
}

.accordion-trigger:hover {
  text-decoration: underline;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  display: block;
}

/* ─── RESPONSIVE BREAKPOINTS (SM, MD, LG) ───────────────────── */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
  .sm\:max-w-none { max-width: none; }
  .sm\:bg-transparent { background-color: transparent; }
  .sm\:border-0 { border-width: 0; }
  .sm\:rounded-xl { border-radius: calc(var(--radius) + 4px); }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
  .sm\:py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
  .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .sm\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sm\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:pt-24 { padding-top: 6rem; }
  .sm\:pb-4 { padding-bottom: 1rem; }
  .sm\:pb-36 { padding-bottom: 9rem; }
  .sm\:mb-2 { margin-bottom: 0.5rem; }
  .sm\:mb-3 { margin-bottom: 0.75rem; }
  .sm\:mb-4 { margin-bottom: 1rem; }
  .sm\:mb-8 { margin-bottom: 2rem; }
  .sm\:mb-12 { margin-bottom: 3rem; }
  .sm\:mb-14 { margin-bottom: 3.5rem; }
  .sm\:mb-16 { margin-bottom: 4rem; }
  .sm\:mt-6 { margin-top: 1.5rem; }
  .sm\:mt-8 { margin-top: 2rem; }
  .sm\:mr-1\.5 { margin-right: 0.375rem; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:gap-8 { gap: 2rem; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:text-left { text-align: left; }
  .sm\:text-\[10px\] { font-size: 10px; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:h-8 { height: 2rem; }
  .sm\:w-8 { width: 2rem; }
  .sm\:h-2 { height: 0.5rem; }
  .sm\:w-2 { width: 0.5rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:pt-36 { padding-top: 9rem; }
  .md\:pb-44 { padding-bottom: 11rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1.05; }
}
