﻿:root {
  --grid: rgba(255,255,255,0.04);
}

* {
  box-sizing: border-box;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  filter: blur(30px);
  opacity: 0.6;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #1e88e5, transparent 60%);
  top: -140px;
  left: -140px;
  animation-delay: -6s;
}

.orb-b {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #5ce0d8, transparent 60%);
  bottom: -220px;
  right: -160px;
  animation-delay: -12s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
}

.feature-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 18px;
}

.feature-card h3 {
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  color: #9db0c7;
  line-height: 1.6;
}

.code-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: #0c1118;
  border-radius: 16px;
  padding: 18px;
}

pre {
  margin: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  color: #c7d4e5;
}

.chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.theme-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 16px;
}

.theme-card .swatch {
  height: 80px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.theme-card .label {
  font-weight: 600;
}

.theme-card.night .swatch { background: linear-gradient(135deg, #0b0f14, #1f2a37); }
.theme-card.nord .swatch { background: linear-gradient(135deg, #2e3440, #88c0d0); }
.theme-card.gruvbox .swatch { background: linear-gradient(135deg, #282828, #d79921); }
.theme-card.solarized .swatch { background: linear-gradient(135deg, #002b36, #268bd2); }
.theme-card.light .swatch { background: linear-gradient(135deg, #f3f6f9, #7aa2f7); }

.reveal {
  animation: fadeUp 0.8s ease both;
  animation-delay: var(--delay, 0s);
}

.float {
  animation: fadeUp 0.8s ease both, float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s), 0s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -12px, 0) scale(1.04);
  }
}
