/* ============================================
   00b5e2 Status - Styles
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-hover: rgba(255, 255, 255, 0.06);
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.5);
  --accent: #00b5e2;
  --accent-dim: rgba(0, 181, 226, 0.1);
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;
  --font: "Space Mono", monospace;
  --container-padding: clamp(20px, 5vw, 40px);
  --section-padding: clamp(60px, 10vh, 100px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.25s var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text-dim);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-transform: lowercase;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.accent {
  color: var(--accent);
}

/* Site container */
.site {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--container-padding);
}

.nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg) 50%,
    transparent 100%
  );
  z-index: -1;
}

.nav__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.nav__lang:hover {
  background: var(--bg-hover);
}

.nav__lang-option {
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.nav__lang-divider {
  color: rgba(255, 255, 255, 0.2);
}

[data-lang="es"] .nav__lang-option[data-lang-value="es"],
[data-lang="en"] .nav__lang-option[data-lang-value="en"] {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--container-padding) var(--section-padding);
}

.hero__title {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 500px;
}

/* Section */
.section {
  padding: 0 var(--container-padding) var(--section-padding);
}

.section__tag {
  display: inline-flex;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 5px 12px;
  background: var(--accent-dim);
  border-radius: 4px;
}

/* Services */
.services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 10px;
  transition: background var(--transition-fast);
}

.service:hover {
  background: var(--bg-hover);
}

.service__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.status__dot.operational {
  background: var(--success);
}

.status__dot.degraded {
  background: var(--warning);
}

.status__dot.offline {
  background: var(--error);
}

.status__dot.checking {
  background: var(--text-dim);
  animation: pulse 1.5s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.status__text {
  font-size: 13px;
  color: var(--text-dim);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--container-padding);
  margin-top: auto;
  font-size: 13px;
}

.footer__logo {
  font-size: 16px;
  font-weight: 700;
}

.footer__tagline a {
  color: var(--text);
  transition: color var(--transition-fast);
}

.footer__tagline a:hover {
  color: var(--accent);
}

.footer__year {
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
