/* ═══════════════════════════════════════
   VYOMA STATUS — DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  --orange: #e8622a;
  --orange-hover: #d4561f;
  --bg: #f8f6f2;
  --bg-card: #f0ece6;
  --bg-dark: #0f0e0c;
  --text: #1a1714;
  --text-muted: #6b6560;
  --text-light: #f0ece6;
  --border: #e0ddd8;
  --border-dark: #2a2722;
  --green: #22c55e;
  --green-muted: rgba(34, 197, 94, 0.08);
  --yellow: #eab308;
  --yellow-muted: rgba(234, 179, 8, 0.08);
  --red: #ef4444;
  --red-muted: rgba(239, 68, 68, 0.08);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-width: 900px;
  --radius-card: 16px;
  --radius-btn: 10px;
  --section-pad: 80px;
  --nav-height: 72px;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.4); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-anim {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(248, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.04);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 18px; height: 18px; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-back:hover {
  background: rgba(26, 23, 20, 0.05);
  color: var(--text);
}

.nav-back svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════
   HERO STATUS
   ═══════════════════════════════════════ */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 28px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: var(--green-muted);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-dot--ok {
  background: var(--green);
  animation: pulse 2.5s ease-in-out infinite;
}

.status-dot--degraded {
  background: var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot--down {
  background: var(--red);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-text {
  letter-spacing: -0.01em;
}

.status-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}

/* ═══════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════ */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════
   SERVICES STATUS
   ═══════════════════════════════════════ */
.services-section {
  padding: var(--section-pad) 0;
}

.services-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.services-list {
  list-style: none;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.service-item:first-child {
  border-top: 1px solid var(--border);
}

.service-item:hover {
  background: rgba(0,0,0,0.01);
}

.service-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.service-status--operational {
  color: var(--green);
  background: var(--green-muted);
}

.service-status--degraded {
  color: var(--yellow);
  background: var(--yellow-muted);
}

.service-status--down {
  color: var(--red);
  background: var(--red-muted);
}

.service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.service-status--operational .service-dot {
  background: var(--green);
}

.service-status--degraded .service-dot {
  background: var(--yellow);
}

.service-status--down .service-dot {
  background: var(--red);
}

/* ═══════════════════════════════════════
   UPTIME
   ═══════════════════════════════════════ */
.uptime-section {
  padding: var(--section-pad) 0;
}

.uptime-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  text-align: center;
}

.uptime-value {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 8px;
}

.uptime-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.uptime-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.uptime-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.uptime-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   INCIDENT HISTORY
   ═══════════════════════════════════════ */
.incidents-section {
  padding: var(--section-pad) 0;
}

.incidents-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
}

.incident-group {
  margin-bottom: 40px;
}

.incident-group:last-child {
  margin-bottom: 0;
}

.incident-month {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.incident-card {
  padding: 20px 0;
  border-bottom: 1px solid rgba(224, 221, 216, 0.5);
}

.incident-card:last-child {
  border-bottom: none;
}

.incident-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.incident-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.incident-badge--minor {
  background: var(--yellow-muted);
  color: var(--yellow);
}

.incident-badge--major {
  background: var(--red-muted);
  color: var(--red);
}

.incident-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.incident-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.incident-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.incident-resolved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
}

.incident-resolved::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner-section {
  padding: 0 0 var(--section-pad);
}

.cta-banner {
  background: var(--bg-dark);
  border-radius: var(--radius-card);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.2;
}

.cta-banner-text p {
  font-size: 0.95rem;
  color: rgba(240,236,230,0.5);
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-orange:hover {
  background: var(--orange-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(240,236,230,0.2);
}

.btn-ghost:hover {
  border-color: rgba(240,236,230,0.5);
  background: rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.82rem;
  color: rgba(240,236,230,0.35);
}

.footer-heart { color: var(--orange); }

.india-map {
  width: 60px;
  height: auto;
  opacity: 0.7;
  display: inline-block;
  vertical-align: middle;
}

/* ═══════════════════════════════════════
   RESPONSIVE — 900px
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }

  .hero { padding-top: calc(var(--nav-height) + 56px); }

  .incident-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .incident-date {
    order: -1;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-banner-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 480px
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 56px;
  }

  .hero h1 { font-size: 2rem; }

  .status-indicator {
    font-size: 0.92rem;
    padding: 10px 20px;
    gap: 10px;
  }

  .services-heading,
  .incidents-heading {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }

  .service-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 0;
  }

  .uptime-card {
    padding: 32px 24px;
  }

  .uptime-value {
    font-size: 2.6rem;
  }

  .cta-banner { padding: 36px 24px; }

  .india-map { width: 40px; }
}
