:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --muted: 240 6% 96%;
  --muted-foreground: 240 4% 40%;
  --accent: 240 5% 94%;
  --accent-foreground: 240 10% 3.9%;
  --border: 240 6% 88%;
  --input: 240 6% 88%;
  --ring: 240 10% 3.9%;
  --dot-color: 240 6% 80%;
  --hero-glow: 220 100% 58%;
  --hero-soft: 280 70% 74%;
}

.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 7% 7%;
  --card-foreground: 0 0% 98%;
  --muted: 240 4% 12%;
  --muted-foreground: 240 5% 67%;
  --accent: 240 4% 14%;
  --accent-foreground: 0 0% 98%;
  --border: 240 4% 16%;
  --input: 240 4% 16%;
  --ring: 240 5% 84%;
  --dot-color: 240 4% 22%;
  --hero-glow: 210 100% 67%;
  --hero-soft: 270 60% 68%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 1px 1px, hsl(var(--dot-color) / 0.8) 1px, transparent 0),
    radial-gradient(circle at top left, hsl(var(--hero-glow) / 0.14), transparent 30%),
    radial-gradient(circle at 85% 20%, hsl(var(--hero-soft) / 0.12), transparent 28%);
  background-size: 24px 24px, auto, auto;
  background-attachment: fixed;
}

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

.shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted) / 0.78);
  backdrop-filter: blur(12px);
}

.frame {
  background-color: hsl(var(--background) / 0.7);
  backdrop-filter: blur(10px);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.hero-title {
  max-width: 10ch;
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button-primary {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

.button-secondary {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card) / 0.72);
  color: hsl(var(--foreground));
  backdrop-filter: blur(8px);
}

.button-primary:hover,
.button-secondary:hover,
.service-card:hover {
  transform: translateY(-1px);
}

.meta-grid,
.service-grid {
  display: grid;
  gap: 1rem;
}

.meta-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 3rem;
  max-width: 24rem;
}

.meta-card,
.service-card {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card) / 0.75);
  backdrop-filter: blur(10px);
}

.meta-card {
  border-radius: 1.125rem;
  padding: 1.1rem 1.2rem;
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.65rem;
}

.meta-value {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.meta-description {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.service-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.service-card {
  position: relative;
  display: block;
  border-radius: 0.65rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  background-color: hsl(var(--card) / 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.service-card:hover {
  border-color: hsl(var(--foreground) / 0.2);
  background-color: hsl(var(--card) / 0.72);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.service-index {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.service-card h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.2s ease;
}

.service-card.is-offline h3 {
  color: rgb(239 68 68);
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.stack-indicator {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.stack-indicator.is-pulsing::after {
  content: '';
  position: absolute;
  inset: -0.35rem;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.28;
  animation: status-pulse 1.8s cubic-bezier(0.2, 0, 0, 1) infinite;
  pointer-events: none;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.34;
  }

  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.service-copy {
  margin: 0;
  min-height: 4.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.77rem;
  color: hsl(var(--muted-foreground));
}

.service-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 9999px;
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-action.is-hidden {
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card) / 0.72);
  color: hsl(var(--muted-foreground));
  backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transform: translateY(-1px);
}

.footer-note {
  color: hsl(var(--muted-foreground));
  font-size: 0.84rem;
  line-height: 1.7;
}

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

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

@media (max-width: 639px) {
  .shell {
    padding: 0 1rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-copy {
    min-height: 0;
  }
}
