/* ==========================================================================
   INFOLIB DESIGN SYSTEM — HIGH-END AGENCY ARCHITECTURE
   Infused with ui-ux-pro-max intelligence & taste-skill principles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* =============================================
   DESIGN TOKENS / CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  /* Color Architecture (OLED Deep & High Dynamic Range) */
  --bg-deep:         #040714;
  --bg-surface:      #070d22;
  --bg-card:         rgba(9, 16, 38, 0.72);
  --bg-card-hover:   rgba(12, 22, 50, 0.85);

  --accent-cyan:     #00f0ff;
  --accent-blue:     #3b82f6;
  --accent-teal:     #06b6d4;
  --accent-indigo:   #6366f1;

  --text-primary:    #f8fafc;
  --text-secondary:  #cbd5e1;
  --text-muted:      #94a3b8;
  --text-dim:        #64748b;

  --border-glass:    rgba(255, 255, 255, 0.08);
  --border-glass-hi: rgba(255, 255, 255, 0.16);
  --border-cyan:     rgba(0, 240, 255, 0.32);
  --border-cyan-subtle: rgba(0, 240, 255, 0.15);

  --glow-cyan:       0 0 35px rgba(0, 240, 255, 0.28);
  --glow-blue:       0 0 35px rgba(59, 130, 246, 0.28);
  --glow-subtle:     0 8px 32px rgba(0, 0, 0, 0.6);

  /* Typography Scale */
  --font-display:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:       ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Squircles & Radii */
  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       22px;
  --radius-xl:       32px;
  --radius-full:     9999px;

  /* Spacing Scale (Density 4 - Luxurious Whitespace) */
  --space-1:         4px;
  --space-2:         8px;
  --space-3:         12px;
  --space-4:         16px;
  --space-5:         20px;
  --space-6:         24px;
  --space-8:         32px;
  --space-10:        40px;
  --space-12:        48px;
  --space-16:        64px;
  --space-20:        80px;
  --space-24:        96px;
  --space-32:        128px;

  --nav-h:           72px;

  /* Fluid Typography with Optical Contrast */
  --text-xs:         clamp(0.70rem, 0.8vw, 0.78rem);
  --text-sm:         clamp(0.82rem, 1vw, 0.88rem);
  --text-base:       clamp(0.95rem, 1.2vw, 1.05rem);
  --text-lg:         clamp(1.08rem, 1.6vw, 1.18rem);
  --text-xl:         clamp(1.22rem, 2vw, 1.35rem);
  --text-2xl:        clamp(1.45rem, 2.6vw, 1.75rem);
  --text-3xl:        clamp(1.85rem, 3.4vw, 2.35rem);
  --text-4xl:        clamp(2.35rem, 4.4vw, 3.15rem);
  --text-5xl:        clamp(2.95rem, 5.8vw, 4.25rem);
  --text-6xl:        clamp(3.60rem, 7.2vw, 5.25rem);

  /* Spring Physics Timings */
  --ease-spring:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:        cubic-bezier(0, 0, 0.2, 1);
  --duration-fast:   180ms;
  --duration-base:   300ms;
  --duration-slow:   500ms;
}

/* =============================================
   RESET & SYSTEM BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #ffffff;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

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

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

ul, ol {
  list-style: none;
}

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

/* =============================================
   CONTAINER & LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: var(--space-24) 0;
}

/* =============================================
   GRADIENT TEXT
   ============================================= */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, var(--accent-cyan) 65%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.highlight-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* =============================================
   FLOATING ISLAND GLASS NAVBAR
   ============================================= */
.nav-wrapper, .navbar {
  position: fixed;
  top: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 1000;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(6, 11, 26, 0.76);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transition: all var(--duration-base) var(--ease-spring);
}

.nav-wrapper.glass-nav {
  background: rgba(6, 11, 26, 0.80);
}

.nav-inner, .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  width: 100%;
}

.nav-logo, .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity var(--duration-fast) var(--ease-spring), transform var(--duration-fast) var(--ease-spring);
}

.nav-logo:hover, .logo:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.nav-links, .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-links li, .nav-menu li {
  position: relative;
}

.nav-links a, .nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-spring);
  letter-spacing: -0.01em;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover, .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan-subtle);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
}

/* Mega Menu Dropdown */
.has-dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(7, 13, 33, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass-hi);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 0 30px rgba(0, 240, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-spring);
  padding: 0.6rem;
  z-index: 1000;
  min-width: 200px;
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  white-space: nowrap;
}

.mega-menu-inner a {
  padding: 0.65rem 1.25rem !important;
  font-size: var(--text-sm) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--duration-fast) var(--ease-spring) !important;
}

.mega-menu-inner a:hover {
  color: var(--accent-cyan) !important;
  background: rgba(0, 240, 255, 0.09) !important;
  transform: translateX(3px);
}

/* Hamburger Morph */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  transition: background var(--duration-fast) var(--ease-spring);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-spring), opacity var(--duration-fast) var(--ease-spring);
  margin: 2.5px 0;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.nav-mobile {
  display: none;
}

/* =============================================
   BUTTONS (ISLAND & BUTTON-IN-BUTTON ARCHITECTURE)
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.85rem 1.85rem;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0077ff 100%);
  color: #040714;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 8px 24px -4px rgba(0, 240, 255, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all var(--duration-base) var(--ease-spring);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 14px 34px -4px rgba(0, 240, 255, 0.65),
    0 0 24px rgba(0, 240, 255, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary svg {
  transition: transform var(--duration-base) var(--ease-spring);
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

.btn-outline, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.85rem 1.85rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--duration-base) var(--ease-spring);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover, .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px -4px rgba(0, 240, 255, 0.25);
  color: #ffffff;
}

.btn-outline:active, .btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* =============================================
   BADGES & STATUS TAGS
   ============================================= */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.status-live {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}

.status-soon, .status-beta {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: dotPulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.hero-badge, .section-tag, .mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-cyan-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-4);
}

/* =============================================
   FOOTER (ATMOSPHERIC OLED WITH LASER HAIRLINE)
   ============================================= */
.footer {
  position: relative;
  background: #02050f;
  border-top: 1px solid var(--border-glass);
  padding: var(--space-20) 0 var(--space-8);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: radial-gradient(50% 1px at 50% 0%, var(--accent-cyan) 0%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}

.footer-grid, .footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-col h4, .footer-section h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer-col ul li, .footer-section ul li {
  margin-bottom: var(--space-3);
}

.footer-col a, .footer-section a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: all var(--duration-fast) var(--ease-spring);
  display: inline-block;
}

.footer-col a:hover, .footer-section a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.social-link, .social-links a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--duration-base) var(--ease-spring);
}

.social-link:hover, .social-links a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-spring);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* =============================================
   MOBILE RESPONSIVE NAVIGATION
   ============================================= */
@media (max-width: 768px) {
  .nav-wrapper, .navbar {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 60px;
    border-radius: var(--radius-lg);
  }

  .nav-links, .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile {
    position: fixed;
    top: calc(0.75rem + 68px);
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(5, 10, 26, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass-hi);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: none;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: 
      0 24px 60px rgba(0, 0, 0, 0.85),
      inset 0 1px 1px rgba(255, 255, 255, 0.12),
      0 0 35px rgba(0, 240, 255, 0.15);
    z-index: 1000;
  }

  .nav-mobile.open {
    display: flex;
    animation: mobileNavReveal var(--duration-base) var(--ease-spring) forwards;
  }

  .nav-mobile a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-spring);
  }

  .nav-mobile a:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
  }

  .footer-grid, .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
}

@keyframes mobileNavReveal {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
