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

:root {
  --bg-primary: #0a0c0e;
  --bg-secondary: #0f1215;
  --bg-card: #131619;
  --bg-card-hover: #181c20;
  --bg-glass: rgba(19, 22, 25, 0.8);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 255, 136, 0.25);

  --green: #00ff88;
  --green-dim: #00cc6e;
  --green-glow: rgba(0, 255, 136, 0.15);
  --green-glow-strong: rgba(0, 255, 136, 0.3);
  --green-text: #00ff88;

  --text-primary: #e8eaed;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  --red: #ff4d6a;
  --yellow: #ffc107;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.15);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

/* ===== BACKGROUND GRID ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,136,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bg-glow.top-right { top: -200px; right: -200px; }
.bg-glow.bottom-left { bottom: -200px; left: -200px; }

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav.scrolled {
  border-bottom-color: rgba(0,255,136,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 20px rgba(0,255,136,0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px var(--green), 0 0 20px rgba(0,255,136,0.4); }
  50% { box-shadow: 0 0 16px var(--green), 0 0 35px rgba(0,255,136,0.6); }
}

.nav-brand-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-glow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dim);
  border-color: var(--green-dim);
  box-shadow: 0 0 20px var(--green-glow-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: rgba(0,255,136,0.35);
}

.btn-outline:hover {
  background: var(--green-glow);
  border-color: var(--green);
  box-shadow: 0 0 15px var(--green-glow);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10,12,14,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu a:hover { color: var(--green); background: var(--green-glow); }

.mobile-menu .mobile-menu-cta {
  margin-top: 0.5rem;
  justify-content: center;
}

/* ===== SECTIONS / LAYOUT ===== */
.page-content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.text-green { color: var(--green); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

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

/* ===== STAT BADGE ===== */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
}

.stat-badge.up {
  background: rgba(0,255,136,0.12);
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.25);
}

.stat-badge.down {
  background: rgba(255,77,106,0.12);
  color: var(--red);
  border: 1px solid rgba(255,77,106,0.25);
}

.stat-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.stat-badge.up .stat-badge-dot { animation: pulse-dot 2s infinite; }

/* ===== HEARTBEAT BARS ===== */
.heartbeat {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 32px;
}

.heartbeat-main {
  height: 40px;
  gap: 3px;
}

.section-gap-lg {
  margin-top: 3rem;
}

.cta-label {
  margin-bottom: 1.5rem;
}

.footer-brand-link {
  text-decoration: none;
}

.heartbeat-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--green);
  transition: height 0.3s ease;
}

.heartbeat-bar.down { background: var(--red); }
.heartbeat-bar.warn { background: var(--yellow); }

/* ===== RESPONSE CHART ===== */
.chart-area {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
}

.chart-area svg {
  width: 100%;
  height: 100%;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 0.5rem; }

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { animation: fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
}
