/* ============================================================
   HostSPDP — modern.css
   High-performance server hosting platform
   Design language: animejs.com aesthetic
   ============================================================ */

/* --- Google Fonts ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Custom Properties --------------------------------- */
:root {
  --bg:             #0a0a0a;
  --surface:        rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --primary:        #FF4B4B;
  --secondary:      #18E0FF;
  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --success:        #2EE59D;
  --warning:        #F6D365;
  --danger:         #FF4B4B;
  --ease-out-expo:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Body & Background ------------------------------------- */
body {
  background: #0a0a0a;
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(255, 75, 75, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 90%, rgba(24, 224, 255, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#anime-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

.anime-grid-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #18E0FF;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3 {
  font-family: 'Inter', sans-serif;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

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

.subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* --- Container --------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
  flex-grow: 1;
  width: 100%;
}

/* --- Glass Panel (Cards) ----------------------------------- */
.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF4B4B, #18E0FF, transparent);
  opacity: 0.6;
}

.glass-panel:hover {
  border-color: rgba(255, 75, 75, 0.3);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 75, 75, 0.1);
  transform: translateY(-4px);
}

/* --- Navbar ------------------------------------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.brand:hover {
  color: #FF4B4B;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF4B4B;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* --- Buttons ----------------------------------------------- */
.btn-primary {
  background: #FF4B4B;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #ff2929;
  box-shadow: 0 0 24px rgba(255, 75, 75, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  border-color: #18E0FF;
  color: #18E0FF;
  background: rgba(24, 224, 255, 0.05);
  box-shadow: 0 0 16px rgba(24, 224, 255, 0.15);
}

/* --- Pricing Grid ------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* --- Pricing Card ------------------------------------------ */
.pricing-card {
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(24, 224, 255, 0.3);
}

.pricing-card.featured {
  border-color: rgba(255, 75, 75, 0.4);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  opacity: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-card h3 {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-card.featured h3 {
  color: #FF4B4B;
}

/* --- Features List ----------------------------------------- */
.features-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.features-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li strong {
  color: #ffffff;
}

/* --- Price ------------------------------------------------- */
.price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 24px 0;
  letter-spacing: -1px;
}

.price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0;
}

/* --- Forms ------------------------------------------------- */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #FF4B4B;
  box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* --- Tables ------------------------------------------------ */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.table th,
.table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table th {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table td {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Badges ------------------------------------------------ */
.badge {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
}

.badge-success {
  background: rgba(46, 229, 157, 0.12);
  color: #2EE59D;
  border: 1px solid rgba(46, 229, 157, 0.3);
}

.badge-warning {
  background: rgba(246, 211, 101, 0.12);
  color: #F6D365;
  border: 1px solid rgba(246, 211, 101, 0.3);
}

.badge-danger {
  background: rgba(255, 75, 75, 0.12);
  color: #FF4B4B;
  border: 1px solid rgba(255, 75, 75, 0.3);
}

/* --- Tabs -------------------------------------------------- */
.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: rgba(255, 75, 75, 0.1);
  color: #FF4B4B;
  border-color: rgba(255, 75, 75, 0.4);
  box-shadow: 0 0 20px rgba(255, 75, 75, 0.15);
}

.tab-content {
  display: none;
}

/* --- Footer ------------------------------------------------ */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

/* --- Utility: Glow Text ------------------------------------ */
.glow-text {
  text-shadow: 0 0 20px rgba(255, 75, 75, 0.5);
}

/* --- Utility: Server Badge --------------------------------- */
.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(24, 224, 255, 0.08);
  border: 1px solid rgba(24, 224, 255, 0.2);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #18E0FF;
  margin-bottom: 24px;
}

/* --- Hero Section ------------------------------------------ */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

/* --- Stats Grid -------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 32px;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #FF4B4B;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  display: block;
}

/* --- Responsive (≤ 768px) ---------------------------------- */
@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  .container {
    margin: 24px auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
