/* ═══════════════════════════════════════
   Components — Buttons, Glass, Cursor, Scroll
═══════════════════════════════════════ */

/* ── Glass card ── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: none;
  text-decoration: none;
  transition: box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover {
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

.btn:hover::before { opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-ring.expand {
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

/* ── Nav Dropdown ── */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(8, 8, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3100;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--steel-light);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(0, 200, 150, 0.05);
}

/* Hide dropdown on mobile (covered by mobile-menu) */
@media (max-width: 768px) {
  .nav-dropdown-menu { display: none !important; }
}

/* ── Sticky Mobile CTA Bar ── */

.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4000;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(2, 2, 6, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 200, 150, 0.12);
    gap: 10px;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .mobile-cta-bar.visible {
    transform: translateY(0);
  }

  .mobile-cta-bar .mcta-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--accent);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-cta-bar .mcta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--steel-light);
    text-decoration: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  /* Offset chatbot button and window above sticky bar */
  #sw-chat-btn { bottom: 76px !important; }
  #sw-chat-window { bottom: 140px !important; }
}

/* Scroll indicator styles moved to hero.css */
