/* Nexus Design System - Components
 * Phase 2: Design System
 * Component library using design tokens
 */

/* ============================================
 * BUTTONS
 * ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  touch-action: manipulation;
}

/* Button variants */
.btn-primary {
  background-color: var(--color-purple);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--color-lavender);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-purple);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: var(--border-1) solid var(--border-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: var(--color-purple);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-tertiary:hover {
  color: var(--color-purple);
}

.btn-cta {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-weight: var(--font-semibold);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--text-inverse);
}

.btn-gold:hover {
  background-color: var(--color-gold-bright, #ffb800);
  box-shadow: var(--shadow-glow-gold);
}

.btn-green {
  background-color: var(--color-green);
  color: var(--text-inverse);
}

.btn-green:hover {
  background-color: var(--color-green-bright, #39ff9a);
  box-shadow: var(--shadow-glow-green);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
}

/* Button states */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spinner 0.75s linear infinite;
}

@keyframes btn-spinner {
  to { transform: rotate(360deg); }
}

/* Button with icon */
.btn-icon {
  padding: var(--space-2);
  width: 40px;
  height: 40px;
}

.btn-icon-lg {
  width: 48px;
  height: 48px;
}

/* ============================================
 * CARDS
 * ============================================ */

.card {
  background-color: var(--bg-elevated);
  border: var(--border-1) solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur) var(--glass-saturation);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturation);
  border: var(--border-1) solid var(--glass-border);
}

.card-metal {
  background: var(--metal-gradient);
  border: var(--border-1) solid var(--border-primary);
  position: relative;
}

.card-metal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--metal-reflect);
  pointer-events: none;
}

/* Card variants */
.card-featured {
  border-color: var(--color-purple);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
}

.card-project {
  min-height: 200px;
}

.card-ecosystem {
  padding: var(--space-4);
}

.card-product {
  transition: all var(--transition-normal);
}

.card-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Card header */
.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.card-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Card footer */
.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-1) solid var(--border-primary);
}

/* Card image container */
.card-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* Card badge */
.card-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  background-color: var(--color-purple);
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.card-badge-green {
  background-color: var(--color-green);
}

.card-badge-gold {
  background-color: var(--color-gold);
  color: var(--text-inverse);
}

.card-badge-red {
  background-color: var(--color-red);
}

/* ============================================
 * NAVIGATION
 * ============================================ */

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--bg-primary);
  background-image: var(--network-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--border-1) solid var(--border-primary);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.logo {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  letter-spacing: var(--tracking-tight);
}

/* Main Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.nav-link-active {
  color: var(--color-purple);
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--color-purple);
  border-radius: var(--radius-full);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--bg-elevated);
  border: var(--border-1) solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

/* ============================================
 * FOOTER
 * ============================================ */

.footer {
  background-color: var(--bg-secondary);
  border-top: var(--border-1) solid var(--border-primary);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.footer-column h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-2);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-purple);
}

.footer-brand {
  margin-bottom: var(--space-8);
}

.footer-brand .logo {
  font-size: var(--text-2xl);
}

.footer-divider {
  height: 1px;
  background-color: var(--border-primary);
  margin: var(--space-8) 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

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

.footer-legal-link {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--color-purple);
}

/* ============================================
 * HERO SECTION
 * ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) 0;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-purple);
  background-color: rgba(139, 92, 246, 0.1);
  border: var(--border-1) solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.hero-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tight);
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-tagline {
  font-size: var(--text-xl);
  color: var(--text-tertiary);
  margin-bottom: var(--space-10);
  font-family: var(--font-secondary);
  letter-spacing: var(--tracking-widest);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* ============================================
 * SECTIONS
 * ============================================ */

.section-header-center {
  text-align: center;
}

.section-title {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-4) auto 0;
  line-height: var(--leading-relaxed);
}

.section-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ============================================
 * GRID LAYOUTS
 * ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
 * FORMS
 * ============================================ */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-elevated);
  border: var(--border-1) solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D3D4E5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-checkbox,
.form-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--color-purple);
}

.form-checkbox:focus,
.form-radio:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-red);
  margin-top: var(--space-2);
}

.form-input.error {
  border-color: var(--color-red);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.2);
}

/* ============================================
 * BADGES & TAGS
 * ============================================ */

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.badge-purple {
  background-color: rgba(139, 92, 246, 0.2);
  color: var(--color-purple);
}

.badge-gold {
  background-color: rgba(255, 215, 0, 0.2);
  color: var(--color-gold);
}

.badge-green {
  background-color: rgba(57, 255, 20, 0.2);
  color: var(--color-green);
}

.badge-red {
  background-color: rgba(183, 28, 28, 0.2);
  color: var(--color-red);
}

.badge-lavender {
  background-color: rgba(211, 212, 229, 0.2);
  color: var(--color-lavender);
}

/* ============================================
 * ALERTS & NOTIFICATIONS
 * ============================================ */

.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.alert-message {
  font-size: var(--text-sm);
}

.alert-info {
  background-color: rgba(211, 212, 229, 0.1);
  border: var(--border-1) solid rgba(211, 212, 229, 0.3);
  color: var(--color-lavender);
}

.alert-success {
  background-color: rgba(57, 255, 20, 0.1);
  border: var(--border-1) solid rgba(57, 255, 20, 0.3);
  color: var(--color-green);
}

.alert-warning {
  background-color: rgba(255, 128, 171, 0.1);
  border: var(--border-1) solid rgba(255, 128, 171, 0.3);
  color: var(--color-pink);
}

.alert-error {
  background-color: rgba(183, 28, 28, 0.1);
  border: var(--border-1) solid rgba(183, 28, 28, 0.3);
  color: var(--color-red);
}

/* ============================================
 * PROGRESS & LOADING
 * ============================================ */

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-primary);
  border-top-color: var(--color-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.loading-placeholder {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
 * DIVIDERS
 * ============================================ */

.divider {
  height: 1px;
  background-color: var(--border-primary);
  margin: var(--space-8) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background-color: var(--border-primary);
}

/* ============================================
 * AVATARS
 * ============================================ */

.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-sm);
}

.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: var(--text-lg);
}

.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: var(--text-2xl);
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  margin-left: -12px;
  border: 2px solid var(--bg-primary);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ============================================
 * TOOLTIPS
 * ============================================ */

.tooltip {
  position: relative;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  background-color: var(--bg-elevated);
  border: var(--border-1) solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: all var(--transition-fast);
  z-index: var(--z-tooltip);
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-primary);
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -4px);
}

/* ============================================
 * MODALS & DIALOGS
 * ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: var(--bg-elevated);
  border: var(--border-1) solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.modal-body {
  margin-bottom: var(--space-6);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-purple);
}

/* ============================================
 * SUPPORT WIDGET
 * ============================================ */

.support-widget {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-fixed);
}

.support-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-purple);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.support-btn:hover {
  background-color: var(--color-lavender);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
}

.support-btn-icon {
  width: 20px;
  height: 20px;
}

.support-popup {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: var(--space-4);
  width: 300px;
  background-color: var(--bg-elevated);
  border: var(--border-1) solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: var(--z-popover);
}

.support-widget:hover .support-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.support-popup-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.support-popup-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.support-popup-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.support-popup-actions {
  display: flex;
  gap: var(--space-2);
}

.support-popup-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.support-popup-link:hover {
  color: var(--color-purple);
  background-color: var(--bg-tertiary);
}

/* ============================================
 * NETWORK VISUALIZATION
 * ============================================ */

.network-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.network-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--color-purple);
  border-radius: 50%;
  opacity: 0.3;
  animation: network-pulse 4s ease-in-out infinite;
}

.network-node::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  animation: network-ripple 4s ease-in-out infinite;
}

@keyframes network-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes network-ripple {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1); opacity: 0.2; }
  100% { transform: scale(1.5); opacity: 0; }
}

.network-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  opacity: 0.5;
}

/* ============================================
 * RESPONSIVE ADJUSTMENTS
 * ============================================ */

@media (max-width: 639px) {
  .hero-title {
    font-size: clamp(2.5rem, 11.5vw, 3.25rem);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .header-container {
    padding: 0 var(--space-4);
  }
  
  .support-widget {
    bottom: var(--space-4);
    right: var(--space-4);
  }
  
  .support-popup {
    width: 280px;
    right: -100px;
  }
  
  .modal {
    width: 95%;
    margin: var(--space-4);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
  
  .section {
    padding: var(--space-32) 0;
  }
}

/* ============================================
 * PRINT STYLES
 * ============================================ */

@media print {
  .header,
  .footer,
  .support-widget,
  .nav-dropdown,
  .mobile-menu-btn {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
