/* ===== MEGA DNS PREMIUM CSS ===== */
:root {
  --bg-primary: #04050e;
  --bg-secondary: #0a0c1b;
  --bg-panel: rgba(16, 20, 36, 0.6);
  --bg-panel-hover: rgba(22, 28, 48, 0.8);
  
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  
  --cyan-main: #00ffcc;
  --cyan-glow: rgba(0, 255, 204, 0.4);
  
  --blue-main: #1A5CFF;
  --blue-glow: rgba(26, 92, 255, 0.4);
  
  --green-main: #4ade80;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 255, 204, 0.2);
  
  --font-ui: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.3s ease;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }
.mono { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: -0.5px; }

/* UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-header { margin-bottom: 60px; max-width: 700px; }
.section-header.center { margin: 0 auto 60px; text-align: center; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.section-desc { font-size: 1.125rem; color: var(--text-secondary); }

.text-gradient {
  background: linear-gradient(135deg, var(--cyan-main), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue-main); color: white;
  box-shadow: 0 4px 14px var(--blue-glow);
}
.btn-primary:hover {
  background: #2563eb; transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--blue-glow);
}
.btn-secondary {
  background: var(--bg-panel); color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-panel-hover); border-color: var(--cyan-main);
}
.btn-outline {
  background: transparent; color: var(--cyan-main);
  border: 1px solid var(--cyan-main);
}
.btn-outline:hover {
  background: rgba(0, 255, 204, 0.1);
}
.btn-small {
  padding: 8px 16px; font-size: 13px; border-radius: 6px;
  background: var(--bg-panel); color: var(--text-primary);
  border: 1px solid var(--border-color); cursor: pointer; transition: var(--transition);
}
.btn-small:hover { background: var(--bg-panel-hover); border-color: var(--text-secondary); }

/* GLASS PANELS */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(4, 5, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}
.navbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 80px;
}
.logo-icon { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-item { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.nav-item:hover { color: var(--text-primary); }
.nav-back-link {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 50px; background: rgba(255,255,255,0.05);
  color: var(--text-primary); transition: var(--transition);
}
.nav-back-link:hover { background: rgba(255,255,255,0.1); }
.nav-back-link svg { width: 14px; height: 14px; }

/* HERO SECTION */
.hero {
  position: relative; padding-top: 140px; padding-bottom: 100px;
  min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  opacity: 0.3;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}
.hero-glow-1 {
  position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%); filter: blur(60px); opacity: 0.5;
}
.hero-glow-2 {
  position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,255,204,0.15) 0%, transparent 70%); filter: blur(60px);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 10;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2); border-radius: 50px;
  margin-bottom: 24px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-main);
  box-shadow: 0 0 8px var(--green-main); animation: pulse 2s infinite;
}
.badge-text { font-size: 13px; font-weight: 600; color: var(--green-main); }
.hero-title { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px; }
.hero-desc { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }

/* HERO STATS */
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* TERMINAL SIMULATOR */
.terminal-window {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden; width: 100%; max-width: 500px; margin-left: auto;
}
.terminal-header {
  background: #161b22; padding: 12px 16px; display: flex; align-items: center; border-bottom: 1px solid #30363d;
}
.terminal-dots { display: flex; gap: 8px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }
.terminal-title { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12px; color: #8b949e; }
.terminal-body {
  padding: 16px; height: 320px; overflow-y: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: #c9d1d9;
}
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
.t-line { margin-bottom: 4px; display: flex; gap: 8px; }
.t-time { color: #8b949e; }
.t-type { color: #ff7b72; font-weight: bold; width: 40px; }
.t-query { color: #79c0ff; flex: 1; }
.t-ms { color: #7ee787; }
.t-ms.slow { color: #ffbd2e; }

/* FEATURES */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 32px; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: 0 8px 30px rgba(0,255,204,0.05); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.feature-icon svg { width: 24px; height: 24px; }
.icon-cyan { background: rgba(0,255,204,0.1); color: var(--cyan-main); }
.icon-green { background: rgba(74,222,128,0.1); color: var(--green-main); }
.icon-blue { background: rgba(26,92,255,0.1); color: #60a5fa; }
.feature-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.feature-desc { font-size: 0.95rem; color: var(--text-secondary); }

/* RECORDS SECTION */
.records-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.records-features { margin-top: 24px; }
.records-features li { margin-bottom: 12px; color: var(--text-secondary); }
.dashboard-header {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-color); font-weight: 600;
}
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; text-align: left; }
.dashboard-table th { padding: 16px 24px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.dashboard-table td { padding: 16px 24px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.dashboard-table tr:last-child td { border-bottom: none; }
.badge { padding: 4px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: bold; }
.badge-a { background: rgba(26,92,255,0.15); color: #60a5fa; }
.badge-aaaa { background: rgba(167,139,250,0.15); color: #a78bfa; }
.badge-cname { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-mx { background: rgba(52,211,153,0.15); color: #34d399; }
.badge-txt { background: rgba(156,163,175,0.15); color: #9ca3af; }

/* GLOBAL NETWORK */
.global-network { position: relative; overflow: hidden; }
.map-container {
  position: relative; width: 100%; height: 500px; max-width: 900px; margin: 0 auto;
}
.map-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
}
.node {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translate(-50%, -50%);
}
.node-pulse {
  width: 12px; height: 12px; background: var(--blue-main); border-radius: 50%;
  box-shadow: 0 0 10px var(--blue-main);
}
.node-pulse.active {
  background: var(--cyan-main); box-shadow: 0 0 15px var(--cyan-main);
  animation: pulse 1.5s infinite;
}
.node-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); background: var(--bg-primary); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-color); }

/* PLANS */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; }
.plan-card { padding: 40px 32px; position: relative; }
.plan-pro {
  background: linear-gradient(180deg, rgba(26,92,255,0.1) 0%, rgba(16,20,36,0.6) 100%);
  border: 1px solid rgba(26,92,255,0.4);
  transform: scale(1.05); z-index: 2; border-radius: var(--radius-lg); backdrop-filter: blur(12px);
}
.pro-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue-main), var(--cyan-main));
  color: #000; font-weight: bold; font-size: 12px; padding: 4px 12px; border-radius: 20px;
}
.plan-header { margin-bottom: 32px; border-bottom: 1px solid var(--border-color); padding-bottom: 32px; }
.plan-name { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.plan-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.plan-price { font-size: 40px; font-weight: 900; line-height: 1; }
.price-period { font-size: 16px; color: var(--text-secondary); font-weight: 500; }
.plan-features { margin-bottom: 40px; }
.plan-features li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.plan-features li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-main); }
.plan-features li:last-child { border-bottom: none; }
.plan-btn { width: 100%; }

/* CTA BANNER */
.cta-banner {
  padding: 60px; text-align: center;
  background: linear-gradient(45deg, rgba(26,92,255,0.1), rgba(0,255,204,0.05));
  border-color: rgba(26,92,255,0.3);
}
.cta-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* FOOTER */
.footer { border-top: 1px solid var(--border-color); padding: 80px 0 40px; background: #020308; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-desc { color: var(--text-secondary); margin-top: 16px; font-size: 14px; max-width: 300px; }
.footer-links-group h4 { font-size: 16px; margin-bottom: 24px; color: var(--text-primary); }
.footer-links-group a { display: block; margin-bottom: 12px; color: var(--text-secondary); font-size: 14px; transition: var(--transition); }
.footer-links-group a:hover { color: var(--cyan-main); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border-color); text-align: center; font-size: 13px; color: var(--text-secondary); }

/* ANIMATIONS */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.fade-in-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner, .records-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-grid, .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .terminal-window { margin: 0 auto; }
  .plan-pro { transform: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .features-grid, .plans-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 36px; }
}
