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

:root {
  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --border: #e2e8f0;
  --primary: hsl(217, 91%, 60%);
  --primary-light: hsl(217, 91%, 95%);
  --primary-dark: hsl(217, 91%, 50%);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --gray: #94a3b8;
  --radius: 0.75rem;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===== Utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== Gradients & Effects ===== */
.gradient-primary {
  background: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(199, 89%, 48%) 100%);
}

.gradient-mesh {
  background-color: #0f172a;
  background-image:
    radial-gradient(at 40% 20%, hsla(217, 91%, 60%, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(199, 89%, 48%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(217, 91%, 60%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(199, 89%, 48%, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(217, 91%, 60%, 0.1) 0px, transparent 50%);
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(199, 89%, 48%) 100%);
  color: white;
  border: none;
}
.btn-primary:hover { opacity: 0.9; }

.btn-white {
  background: white;
  color: #0f172a;
}
.btn-white:hover { background: #f1f5f9; }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-outline-dark:hover {
  background: var(--bg-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: none;
}
.btn-ghost:hover { color: var(--fg); background: var(--bg-muted); }

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-muted);
}

.badge-primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

/* ===== Card ===== */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.1);
}

.card-popular {
  border: 2px solid var(--primary);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== Hero ===== */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  color: white;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero h1 .highlight {
  display: block;
  background: linear-gradient(to right, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-features {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.hero-cards {
  display: none;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-cards { display: block; }
}

.hero-cards-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: 1.5rem;
  filter: blur(48px);
}

.hero-cards-content {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}

.hero-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-item p:first-of-type {
  font-weight: 500;
  color: white;
  margin-bottom: 0.125rem;
}

.hero-card-item p:last-of-type {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-bordered {
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--fg-muted);
}

/* ===== Grid Layouts ===== */
.grid-3 {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-6 {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Feature Cards ===== */
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card {
  padding: 1.5rem;
}

.feature-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ===== Pricing Cards ===== */
.pricing-card {
  padding: 2rem;
  position: relative;
}

.pricing-popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card .pricing-desc {
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.pricing-amount {
  margin-bottom: 1.5rem;
}

.pricing-amount .price {
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-amount .period {
  color: var(--fg-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pricing-features .check-icon {
  color: var(--green);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ===== Status Badge (nav) ===== */
.status-badge {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .status-badge { display: inline-flex; }
}

.status-badge:hover { background: var(--bg-muted); }

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  position: relative;
}

.status-dot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.75;
}

/* Status colors */
.status-operational .status-dot { background: var(--green); }
.status-operational .status-dot-pulse { background: #4ade80; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.status-operational .status-label { color: #16a34a; }

.status-degraded .status-dot { background: var(--yellow); }
.status-degraded .status-dot-pulse { background: #fde047; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.status-degraded .status-label { color: #ca8a04; }

.status-major_outage .status-dot { background: var(--red); }
.status-major_outage .status-dot-pulse { background: #f87171; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.status-major_outage .status-label { color: #dc2626; }

.status-unknown .status-dot { background: var(--gray); }
.status-unknown .status-dot-pulse { background: #cbd5e1; }
.status-unknown .status-label { color: var(--fg-muted); }

/* ===== Footer Status Indicator ===== */
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.footer-status .status-dot {
  width: 0.5rem;
  height: 0.5rem;
}

.footer-status .status-text {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--fg); }

/* ===== SVG Icons (inline) ===== */
.icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
