/* ═══════════════════════════════════════════════════════════════════
   KAUZEY EMPIRE — UNIFIED LANDING PAGE DESIGN SYSTEM
   Theme: Titan-Glass Cyberpunk (Black, Glass, Glowing Yellow, Neon Cyan)
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  --bg-color: #050508;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-yellow: #FDF500;
  --accent-yellow-glow: rgba(253, 245, 0, 0.45);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-indigo: #6366f1;
  
  --glass-bg: rgba(10, 10, 15, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --font-sans: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a { 
  color: inherit; 
  text-decoration: none; 
  transition: all var(--transition);
}
button { 
  cursor: pointer; 
  border: none; 
  font-family: var(--font-sans); 
  outline: none; 
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 50% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 240, 255, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(253, 245, 0, 0.03) 0px, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ─── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Header / Navigation ─────────────────────────────────────── */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 3, 6, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.03em;
}
.logo-mark {
  color: var(--accent-yellow);
  text-shadow: 0 0 12px var(--accent-yellow-glow);
}
.logo-full span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.95rem;
}

/* ─── Hero Section ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding-top: 140px;
  padding-bottom: 2rem;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow);
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Tabs Layout ─────────────────────────────────────────────── */
.tabs-container {
  margin: 2rem auto 4rem;
  max-width: 900px;
}
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(10, 10, 15, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-glow);
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.tab-btn:hover {
  color: #ffffff;
}
.tab-btn--active {
  background: rgba(253, 245, 0, 0.08);
  color: var(--accent-yellow);
  border-color: rgba(253, 245, 0, 0.2);
  box-shadow: inset 0 1px 0 0 rgba(253, 245, 0, 0.1), 0 0 15px rgba(253, 245, 0, 0.05);
}
.tab-btn--active:hover {
  color: var(--accent-yellow);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-content--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ─── Glass Cards ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-glow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent-yellow);
  border-left: 2px solid var(--accent-yellow);
  border-top-left-radius: 4px;
  opacity: 0.15;
  transition: opacity var(--transition);
  z-index: 1;
}
.glass-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
  border-bottom-right-radius: 4px;
  opacity: 0.15;
  transition: opacity var(--transition);
}
.glass-card:hover {
  border-color: rgba(253, 245, 0, 0.25);
  box-shadow: 0 10px 30px rgba(253, 245, 0, 0.05), var(--glass-glow);
  transform: translateY(-3px);
}
.glass-card:hover::before,
.glass-card:hover::after {
  opacity: 0.85;
}

/* ─── Portals Grid ────────────────────────────────────────────── */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.portal-card:hover .portal-icon {
  background: rgba(253, 245, 0, 0.1);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-yellow-glow);
}

.portal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.portal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-yellow);
  color: #000000;
  font-weight: 700;
}
.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 20px var(--accent-yellow-glow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Server Status Grid ──────────────────────────────────────── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.server-card {
  padding: 1.5rem;
  background: rgba(10, 10, 15, 0.6);
}
.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.server-game {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}
.server-status {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot--online {
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}
.status-dot--offline {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}
.server-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff;
}
.server-port {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #64748b;
}
.server-metrics {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.metric-value {
  color: #ffffff;
  font-weight: 600;
}

/* ─── Connections List ────────────────────────────────────────── */
.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.connection-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.connection-badge:hover {
  background: var(--glass-hover);
  border-color: rgba(253, 245, 0, 0.2);
  transform: translateY(-2px);
}
.connection-icon {
  font-size: 1.75rem;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.connection-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.connection-value {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}
.connection-value--mono {
  font-family: var(--font-mono);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo-mark {
  background: var(--accent-yellow);
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.6rem;
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .tab-bar { flex-direction: column; width: 100%; }
  .tab-btn { width: 100%; justify-content: center; }
}