/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --bg-primary: #06070a;
  --bg-secondary: #0d0f14;
  --card-bg: rgba(15, 17, 23, 0.7);
  --card-border: rgba(255, 255, 255, 0.04);
  --card-border-hover: rgba(0, 230, 118, 0.3);
  
  /* Colors */
  --clr-green: #00e676;
  --clr-green-glow: rgba(0, 230, 118, 0.15);
  --clr-purple: #8b5cf6;
  --clr-purple-glow: rgba(139, 92, 246, 0.15);
  --clr-gold: #f59e0b;
  --clr-gold-glow: rgba(245, 158, 11, 0.15);
  --clr-blue: #3b82f6;
  --clr-blue-glow: rgba(59, 130, 246, 0.15);
  --clr-gray: #4b5563;
  --clr-gray-glow: rgba(75, 85, 99, 0.1);
  
  /* Text */
  --txt-primary: #f8fafc;
  --txt-secondary: #94a3b8;
  --txt-muted: #64748b;
  
  /* Transition */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--txt-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Background Ambient Elements */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vh;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.12;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--clr-purple) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation: floatGlow 15s infinite ease-in-out alternate;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--clr-green) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
  animation: floatGlow 20s infinite ease-in-out alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(6, 7, 10, 0.7);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   NAVBAR ELEMENTS
   ========================================================================== */
.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--txt-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.logo-accent {
  color: var(--clr-green);
  text-shadow: 0 0 15px var(--clr-green-glow);
}

.status-badge-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--txt-muted);
}

.pulse-dot.online {
  background-color: var(--clr-green);
  box-shadow: 0 0 10px var(--clr-green);
  animation: pulseGreen 2s infinite;
}

.pulse-dot.offline {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseRed 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(85vh - 75px);
  text-align: center;
  padding: 60px 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.15));
}

.hero-subtitle {
  font-size: clamp(16px, 3vw, 22px);
  color: var(--txt-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  letter-spacing: 0.5px;
}

/* Live Status Card */
.live-status-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  padding: 16px 28px;
  border-radius: 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.live-status-container:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--txt-secondary);
}

.latency-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--txt-muted);
  font-family: var(--font-mono);
}

.online-counter {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--txt-primary);
}

.online-count {
  color: var(--clr-green);
  text-shadow: 0 0 15px var(--clr-green-glow);
}

.max-divider {
  color: var(--txt-muted);
  margin: 0 2px;
}

.max-count {
  color: var(--txt-secondary);
}

/* IP Copy Widget */
.ip-widget {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.ip-widget:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 230, 118, 0.05);
}

.ip-address-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 20px;
  flex-grow: 1;
}

.ip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--txt-muted);
  margin-bottom: 2px;
}

.ip-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--txt-primary);
  letter-spacing: 0.5px;
}

.btn-copy {
  background: var(--txt-primary);
  color: var(--bg-primary);
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: #ffffff;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-copy:active {
  transform: scale(0.98);
}

.btn-copy.success {
  background: var(--clr-green);
  color: #06070a;
}

.copy-icon, .check-icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 100px 0 60px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: -0.5px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--clr-green);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--clr-green);
}

/* ==========================================================================
   HOW TO JOIN SECTION
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(12px);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(300px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.03), transparent 80%);
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.step-card:hover .step-num {
  color: var(--clr-green);
  -webkit-text-stroke: 1px var(--clr-green);
  text-shadow: 0 0 20px var(--clr-green-glow);
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--txt-primary);
}

.step-content p {
  font-size: 14px;
  color: var(--txt-secondary);
}

.highlight {
  color: var(--txt-primary);
  font-weight: 600;
}

.code-cmd {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--clr-green);
  font-size: 13px;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Specific glows for cards */
.feature-card:hover:has(.purple-glow) { border-color: var(--clr-purple); box-shadow: 0 12px 30px var(--clr-purple-glow); }
.feature-card:hover:has(.green-glow) { border-color: var(--clr-green); box-shadow: 0 12px 30px var(--clr-green-glow); }
.feature-card:hover:has(.gold-glow) { border-color: var(--clr-gold); box-shadow: 0 12px 30px var(--clr-gold-glow); }
.feature-card:hover:has(.blue-glow) { border-color: var(--clr-blue); box-shadow: 0 12px 30px var(--clr-blue-glow); }

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon {
  width: 24px;
  height: 24px;
}

/* Accent Borders on Icons */
.purple-glow { background: var(--clr-purple-glow); color: var(--clr-purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.green-glow { background: var(--clr-green-glow); color: var(--clr-green); border: 1px solid rgba(0, 230, 118, 0.3); }
.gold-glow { background: var(--clr-gold-glow); color: var(--clr-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.blue-glow { background: var(--clr-blue-glow); color: var(--clr-blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.gray-glow { background: var(--clr-gray-glow); color: var(--txt-muted); border: 1px solid rgba(75, 85, 99, 0.3); }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--txt-secondary);
  line-height: 1.6;
}

.text-highlight {
  font-family: var(--font-mono);
  color: var(--txt-primary);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 14px;
}

/* Disabled/Soon Cards */
.feature-card.disabled-card {
  opacity: 0.6;
  border-style: dashed;
}

.feature-card.disabled-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--card-border);
}

.badge-soon {
  position: absolute;
  top: -12px;
  right: -12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--txt-secondary);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

/* ==========================================================================
   LINKS & CALL TO ACTION SECTION
   ========================================================================== */
.links-section {
  padding-bottom: 120px;
}

.links-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.action-link-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px 36px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  justify-content: space-between;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  position: relative;
  cursor: pointer;
}

.action-link-btn .btn-main-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--txt-primary);
}

.action-link-btn .btn-status-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--txt-secondary);
  font-weight: 600;
  transition: var(--transition-smooth);
}

/* Soon / Placeholder Buttons Style */
.action-link-btn.disabled-btn {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-link-btn.disabled-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.action-link-btn.disabled-btn:hover .btn-status-badge {
  background: var(--clr-purple);
  color: #fff;
  border-color: var(--clr-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Tooltip Custom styling */
.action-link-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--txt-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.action-link-btn[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #030406;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 50px 24px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-copyright {
  font-size: 15px;
  color: var(--txt-secondary);
  font-family: var(--font-heading);
}

.brand-text {
  color: var(--txt-primary);
  font-weight: 700;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--txt-muted);
  max-width: 500px;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: rgba(13, 15, 20, 0.9);
  border: 1px solid var(--clr-green);
  border-left: 4px solid var(--clr-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 230, 118, 0.1);
  color: var(--txt-primary);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  animation: toastEntrance 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  backdrop-filter: blur(12px);
  min-width: 250px;
}

@keyframes toastEntrance {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.fade-out {
  animation: toastExit 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes toastExit {
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

.toast-icon {
  color: var(--clr-green);
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .ip-widget {
    flex-direction: column;
    padding: 10px;
    gap: 12px;
  }
  
  .ip-address-container {
    padding-left: 0;
    align-items: center;
  }
  
  .btn-copy {
    width: 100%;
    justify-content: center;
    padding: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .action-link-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0 40px 0;
  }
}
