/**
 * Oreveon Net Speed - Next-Gen Cyber-Telemetry UI Architecture
 * Flagship Executive Design System (Desktop & Mobile First)
 */

@import url("colors.css");
@import url("fonts.css");
@import url("main.css");
@import url("server-selector.css");
@import url("button.css");
@import url("results.css");
@import url("dialog.css");
@import url("oreveon-suite.css");

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

html,
body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: #030712;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(0, 242, 254, 0.16) 0%, transparent 65%),
    radial-gradient(circle at 12% 28%, rgba(56, 189, 248, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 32%, rgba(168, 85, 247, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(14, 165, 233, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #030712 0%, #070d1f 50%, #040814 100%);
  background-attachment: fixed;
  font-size: 10px;
}

@media screen and (max-width: 640px) {
  html {
    font-size: 9px;
  }
}

body {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: transparent;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Precision Cyber Grid Backdrop Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 4.8rem 4.8rem;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Executive Floating Header & Brand Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  padding: 1.6rem 4.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo {
  height: 3.8rem;
  width: auto;
  display: block;
}

.node-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
}

.node-live-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

.header-pills {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.75rem 1.5rem;
  height: auto;
  min-width: unset;
  margin: 0;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.header-pill svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #38bdf8;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.header-pill:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.header-pill:hover svg {
  stroke: #00f2fe;
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  header {
    padding: 1.2rem 1.6rem;
    flex-direction: column;
    gap: 1rem;
  }

  .brand-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo {
    height: 3.2rem;
  }

  .header-pills {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .header-pill {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 0.8rem;
    font-size: 1.15rem;
  }
}

/* Executive Footer */
footer {
  position: relative;
  z-index: 2;
  margin: auto auto 0 auto;
  padding: 3.2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(12px);
  width: 100%;
}

footer > p.copyright {
  font-size: 1.3rem;
  color: #64748b;
  margin-bottom: 0.8rem;
  margin-top: 0;
  letter-spacing: 0.03em;
}

footer > p.source {
  margin-top: 0;
}

footer > p.source a {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.2s ease;
}

footer > p.source a:hover {
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}
