/* ==========================================================================
   EXIFIO DESIGN SYSTEM: LAYOUT & STRUCTURAL COMPONENTS
   Header, Navigation, Hero, Dynamic Microstock Rotator, CTA Banner, Footer
   ========================================================================== */

/* Header & Navigation */
header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 10, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  box-sizing: border-box;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-glass);
  color: var(--gold-bright);
  border: 1px solid var(--gold-glass-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover { 
  color: var(--text-main); 
}

[data-href] {
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile Menu Button (Hamburger Toggle) */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.mobile-menu-btn svg {
  display: block;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 30px;
  text-align: center;
  position: relative;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  display: inline-block;
  box-shadow: 0 0 8px var(--gold-bright);
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 24px;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.03em;
  
  background-image: 
    linear-gradient(130deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%, transparent 100%),
    linear-gradient(90deg, var(--gold-light) 0%, var(--gold-bright) 35%, var(--gold-primary) 70%, var(--gold-dark) 100%);
  background-size: 180% 100%, 100% 100%;
  background-position: 130% center, center center;
  background-repeat: no-repeat, no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lightRaySweep 10s ease-in-out infinite;
  filter: drop-shadow(0 2px 14px var(--gold-glow));
}

@keyframes lightRaySweep {
  0% { background-position: 130% center, center center; }
  65% { background-position: -130% center, center center; }
  100% { background-position: -130% center, center center; }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-meta-item { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
}

.hero-meta-item svg { 
  color: var(--gold-bright); 
}

/* Dynamic Microstock Headline Rotator */
.stock-cycler-section {
  padding: 40px 0 30px 0;
  text-align: center;
  position: relative;
}

.cycler-headline {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.5;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -0.02em;
  color: #e2e8f0;
}

.cycler-rotating-stock {
  display: inline-block;
  font-size: 1.25em;
  font-weight: 800;
  min-width: 250px;
  text-align: left;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 35%, var(--gold-primary) 70%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px var(--gold-glow));
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  margin: 0 4px;
  vertical-align: baseline;
}

.cycler-rotating-stock.anim-flip-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
}

.cycler-rotating-stock.anim-flip-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--gold-glass-border);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  margin: 80px 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px 0;
  background: #040609;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-links span {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links span:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: inline-flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-inner {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(5, 7, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 14px;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
    z-index: 100;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    width: 100%;
  }

  .nav-actions {
    display: none !important;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .cta-banner {
    padding: 40px 20px;
    margin: 40px 0;
  }

  .cycler-rotating-stock {
    min-width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Ambient Floating Keywords Nebula (Full Page Document Depth) */
.floating-keywords-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-kw-tag {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'JetBrains Mono', 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, filter, opacity;
}

