/* ==============================================================================
   MIN3K SERVER - PROFESSIONAL GAMING NETWORK DESIGN SYSTEM
   Clean, Modern, Engineering-Grade Aesthetics. Zero Clutter.
   ============================================================================== */

:root {
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Neutrals */
  --bg-base: #06080d;
  --bg-card: rgba(14, 19, 31, 0.75);
  --bg-card-hover: rgba(20, 27, 44, 0.85);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Accents */
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.15);
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);

  --accent-indigo: #6366f1;
  --accent-indigo-subtle: rgba(99, 102, 241, 0.15);
  --accent-indigo-glow: rgba(99, 102, 241, 0.35);

  --accent-cyan: #06b6d4;

  /* Typography */
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --blur-amount: blur(14px);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  --radius-card: 16px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==============================================================================
   Navigation Bar
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border-bottom: 1px solid var(--border-light);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  color: var(--accent-emerald);
}

.brand-highlight {
  color: var(--accent-emerald);
  font-weight: 400;
  font-size: 0.95rem;
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
}

.cta-map {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cta-map:hover {
  background: var(--accent-emerald);
  color: #000;
}

.cta-panel {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.cta-panel:hover {
  background: var(--accent-indigo);
  color: #fff;
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(1.1);
  transform: scale(1.04);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(6, 8, 13, 0.3) 0%, rgba(6, 8, 13, 0.95) 90%),
              linear-gradient(to bottom, rgba(6, 8, 13, 0.6) 0%, rgba(6, 8, 13, 1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(14, 19, 31, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  backdrop-filter: var(--blur-amount);
  margin-bottom: 1.75rem;
}

.status-indicator {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  transition: all var(--transition);
}

.status-indicator.is-offline {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.status-pill.is-offline {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}


.hero-heading {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #34d399 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* IP Card */
.ip-card {
  display: flex;
  align-items: center;
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid var(--border-hover);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.ip-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.ip-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ip-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.ip-value-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.ip-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.ip-port {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-hover);
}

.btn-copy.copied {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #000;
}

/* Hero Shortcuts */
.hero-shortcuts {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.shortcut-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition);
  text-align: left;
}

.shortcut-btn .btn-text {
  display: flex;
  flex-direction: column;
}

.shortcut-btn .btn-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.shortcut-btn .btn-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-primary {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.btn-primary:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-indigo);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

/* ==============================================================================
   Sections Common
   ============================================================================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-meta {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==============================================================================
   Portals Grid (With Real Generated Images)
   ============================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.portal-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.portal-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.media-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: var(--blur-amount);
}

.media-tag.tag-indigo {
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.portal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.portal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.portal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-emerald);
  background: var(--accent-emerald-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.portal-badge.badge-indigo {
  color: #a5b4fc;
  background: var(--accent-indigo-subtle);
}

.portal-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.spec-list {
  list-style: none;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.spec-list li {
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.spec-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.portal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all var(--transition);
}

.portal-action-btn:hover {
  background: var(--accent-emerald);
  color: #000;
}

.portal-action-btn.action-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.portal-action-btn.action-indigo:hover {
  background: var(--accent-indigo);
  color: #fff;
}

/* ==============================================================================
   Stats / Infrastructure Numbers
   ============================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: left;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 0.4rem;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==============================================================================
   Features Architecture Grid
   ============================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background: rgba(14, 19, 31, 0.55);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: all var(--transition);
}

.feature-box:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-header svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.feature-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==============================================================================
   Footer
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: #040508;
  padding: 2.25rem 1.5rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 700;
  color: var(--text-white);
}

.footer-version {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

.footer-separator {
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
}

.ssl-guarantee {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .ip-card {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    width: 100%;
  }
  .ip-info {
    text-align: center;
    align-items: center;
  }
  .btn-copy {
    width: 100%;
    justify-content: center;
  }
  .hero-shortcuts {
    flex-direction: column;
    width: 100%;
  }
  .shortcut-btn {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
