/* ==========================================================================
   RING 0 PRIVATE - ADVANCED PERFORMANCE & LATENCY OPTIMIZATION DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-primary: #06070a;
  --bg-secondary: #0c0e14;
  --bg-card: rgba(14, 18, 28, 0.7);
  --bg-card-hover: rgba(22, 28, 44, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(0, 242, 254, 0.4);
  
  --text-primary: #f3f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-violet: #8a2be2;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-emerald: #00f59b;
  
  --glow-cyan: rgba(0, 242, 254, 0.25);
  --glow-violet: rgba(168, 85, 247, 0.25);
  --glow-green: rgba(16, 185, 129, 0.3);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows & Grid Pattern */
.bg-ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  animation: pulseGlow 8s infinite alternate ease-in-out;
}

.ambient-glow-2 {
  position: absolute;
  top: 35%;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(138, 43, 226, 0.03) 50%, transparent 70%);
  filter: blur(90px);
  animation: pulseGlow 12s infinite alternate-reverse ease-in-out;
}

.ambient-glow-3 {
  position: absolute;
  bottom: -100px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 245, 155, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}

@keyframes pulseGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation / Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 7, 10, 0.75);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--glow-cyan);
  transition: var(--transition-fast);
}

.brand-logo:hover .brand-icon-box {
  transform: rotate(4deg) scale(1.05);
  border-color: var(--accent-cyan);
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-pill-icon {
  color: var(--accent-cyan);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9d4edd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* Hero Primary Action Hub (Center Icon-Only Logos) */
.hero-cta-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 50px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  flex-shrink: 0;
}

/* Store / Shopping Cart Button (Icon Only) */
.cta-store {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #060810;
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.cta-store:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 42px rgba(0, 242, 254, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.cta-store:active {
  transform: translateY(-2px) scale(1.02);
}

/* Discord Button (Icon Only) */
.cta-discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.95) 0%, rgba(120, 90, 245, 0.95) 100%);
  color: #ffffff;
  border-color: rgba(140, 150, 255, 0.4);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.cta-discord:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, #5865f2 0%, #7b68ee 100%);
  box-shadow: 0 15px 42px rgba(88, 101, 242, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  border-color: rgba(180, 190, 255, 0.7);
}

.cta-discord:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.cta-btn:hover .btn-icon {
  transform: scale(1.12);
}

.btn-glow-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shineLoop 4.5s infinite;
}

@keyframes shineLoop {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

/* Quick Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 50px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-card:nth-child(1) .metric-icon-wrap { color: var(--accent-cyan); background: rgba(0, 242, 254, 0.08); border-color: rgba(0, 242, 254, 0.2); }
.metric-card:nth-child(2) .metric-icon-wrap { color: var(--accent-emerald); background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); }
.metric-card:nth-child(3) .metric-icon-wrap { color: var(--accent-purple); background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.2); }
.metric-card:nth-child(4) .metric-icon-wrap { color: #f59e0b; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); }

.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Benchmark / Latency Comparison Section */
.benchmark-section {
  padding: 40px 0 70px;
}

.benchmark-card {
  background: linear-gradient(180deg, rgba(16, 21, 34, 0.85) 0%, rgba(10, 13, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(20px);
}

.benchmark-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.benchmark-title-wrap h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.benchmark-title-wrap p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.benchmark-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .benchmark-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-box {
  background: rgba(6, 8, 14, 0.7);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  position: relative;
}

.comparison-box.highlight {
  border-color: rgba(0, 242, 254, 0.4);
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.05) 0%, rgba(6, 8, 14, 0.8) 100%);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.1);
}

.comparison-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.tag-stock {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-ring0 {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.comp-stat {
  margin-bottom: 18px;
}

.comp-stat:last-child {
  margin-bottom: 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.stat-name {
  color: var(--text-secondary);
}

.stat-num {
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.5s ease-out;
}

.fill-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.fill-yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fill-cyan { background: linear-gradient(90deg, #00f2fe, #4facfe); }
.fill-emerald { background: linear-gradient(90deg, #10b981, #00f59b); }

/* Features Grid */
.features-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.15);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--glow-cyan);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Call to Action Banner */
.cta-banner-section {
  padding: 60px 0 80px;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(16, 24, 44, 0.9) 0%, rgba(26, 16, 44, 0.9) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 50px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.15);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Footer Links */
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.footer-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* Google Ads Policy Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: #0d111a;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-body h4 {
  color: var(--text-primary);
  margin: 16px 0 6px;
  font-size: 1rem;
}

.modal-body p {
  margin-bottom: 12px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
