/* ========================================
   Xenkey.org — Custom Styles
   ======================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #06060c;
}
::-webkit-scrollbar-thumb {
  background: #1a1a30;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a2a44;
}

/* Selection */
::selection {
  background: rgba(0, 212, 170, 0.25);
  color: white;
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---- Navigation ---- */
nav {
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav-scrolled {
  background: rgba(6, 6, 12, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom-color: rgba(26, 26, 48, 0.5) !important;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #00d4aa 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-accent {
  background: linear-gradient(135deg, #00d4aa 0%, #00eec4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Glow Effects ---- */
.glow-accent {
  box-shadow: 0 0 80px rgba(0, 212, 170, 0.12), 0 0 160px rgba(0, 212, 170, 0.04);
}
.glow-purple {
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.12), 0 0 160px rgba(139, 92, 246, 0.04);
}

/* ---- Card Hover ---- */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.25);
  box-shadow: 0 12px 48px rgba(0, 212, 170, 0.06);
}

/* ---- Hero Background ---- */
.hero-grid {
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---- Background Orb ---- */
.orb {
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

/* ---- Quote Block ---- */
.quote-block {
  border-left: 3px solid #00d4aa;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.04), transparent);
}

/* ---- Section Label ---- */
.section-label {
  letter-spacing: 0.2em;
}

/* ---- Anatomy Card ---- */
.anatomy-card {
  background: linear-gradient(180deg, rgba(17, 17, 34, 0.8), rgba(12, 12, 22, 0.8));
  border: 1px solid #1a1a30;
  border-radius: 1.5rem;
  overflow: hidden;
}
.anatomy-field {
  border-left: 3px solid #1a1a30;
  padding-left: 1.25rem;
}
.anatomy-field.title-f { border-color: #00d4aa; }
.anatomy-field.fact-f { border-color: #3b82f6; }
.anatomy-field.meaning-f { border-color: #8b5cf6; }
.anatomy-field.context-f { border-color: #f59e0b; }

/* ---- Mobile Menu ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Input Focus ---- */
input:focus, textarea:focus {
  outline: none;
  border-color: #00d4aa !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* ---- Gap Section Columns ---- */
.gap-item {
  position: relative;
  padding-left: 1.5rem;
}
.gap-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.gap-human .gap-item::before {
  background: #ef4444;
  opacity: 0.6;
}
.gap-ai .gap-item::before {
  background: #00d4aa;
  opacity: 0.6;
}

/* ---- Smooth Scroll ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* ---- Stats Number ---- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ---- Divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.15), transparent);
}
