:root {
  --bg: #0b0d12;
  --bg-soft: #111827;
  --accent: #34f5c5;
  --accent-2: #ff7a59;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text-soft: rgba(226, 232, 240, 0.78);
}

body.site-bg {
  position: relative;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(52, 245, 197, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255, 122, 89, 0.12), transparent 55%),
    var(--bg);
  color: #e2e8f0;
}

body.site-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(transparent 0 48px, rgba(255, 255, 255, 0.03) 49px),
    linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, 0.03) 49px);
  background-size: 48px 48px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

body.site-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("logo-watermark.svg") center/360px no-repeat;
  opacity: 0.08;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -2;
}

@media (max-width: 640px) {
  body.site-bg::after {
    background-size: 220px;
  }
}

.headline {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 50px -30px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #5cf2ff);
  color: #0b0d12;
  box-shadow: 0 12px 30px rgba(52, 245, 197, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.7) 30%, transparent 60%);
  transform: translateX(-120%);
  animation: shimmer 4.5s ease-in-out infinite;
  margin-left: 48px;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.9s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.15s;
}

.reveal.delay-2 {
  animation-delay: 0.3s;
}

.reveal.delay-3 {
  animation-delay: 0.45s;
}

.floaty {
  animation: float 8s ease-in-out infinite;
}

.floaty.slow {
  animation-duration: 12s;
}

.floaty.reverse {
  animation-direction: reverse;
}

.glow-ring {
  background: radial-gradient(circle, rgba(52, 245, 197, 0.35), transparent 65%);
  filter: blur(12px);
  animation: glow-pulse 6s ease-in-out infinite;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.blog-content {
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.65;
}

.blog-content * {
  color: inherit;
  background-color: transparent;
}

.blog-content p {
  margin: 0 0 0.9em;
}

.blog-content h1 {
  color: #e2e8f0 !important;
  font-size: 2em;
  margin: 1.1em 0 0.5em;
}

.blog-content h2 {
  color: #e2e8f0 !important;
  font-size: 1.5em;
  margin: 1.1em 0 0.5em;
}

.blog-content h3 {
  color: #e2e8f0 !important;
  font-size: 1.25em;
  margin: 1em 0 0.5em;
}

.blog-content h4 {
  color: #e2e8f0 !important;
  font-size: 1.1em;
  margin: 0.9em 0 0.5em;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
  list-style-position: inside;
}

.blog-content li {
  margin: 0.2em 0;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content .ql-font-serif {
  font-family: "Georgia", "Times New Roman", serif;
}

.blog-content .ql-font-monospace {
  font-family: "Courier New", monospace;
}

.blog-content .ql-font-manrope {
  font-family: "Manrope", sans-serif;
}

.blog-content .ql-font-space-grotesk {
  font-family: "Space Grotesk", sans-serif;
}

.blog-content .ql-size-small {
  font-size: 0.75em;
}

.blog-content .ql-size-large {
  font-size: 1.5em;
}

.blog-content .ql-size-huge {
  font-size: 2.5em;
}

.blog-content .ql-align-center {
  text-align: center;
}

.blog-content .ql-align-right {
  text-align: right;
}

.blog-content .ql-align-justify {
  text-align: justify;
}

.blog-content .ql-indent-1 { margin-left: 1.5rem; padding-left: 0.5rem; }
.blog-content .ql-indent-2 { margin-left: 3rem; padding-left: 0.5rem; }
.blog-content .ql-indent-3 { margin-left: 4.5rem; padding-left: 0.5rem; }
.blog-content .ql-indent-4 { margin-left: 6rem; padding-left: 0.5rem; }

.blog-content .ql-cursor {
  display: none;
}

.blog-content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 24px 0;
}

.blog-content a {
  color: #5cf2ff;
  text-decoration: underline;
}

.blog-content blockquote {
  border-left: 3px solid rgba(92, 242, 255, 0.6);
  padding-left: 16px;
  color: rgba(226, 232, 240, 0.8);
}

.cover-frame {
  aspect-ratio: 16 / 9;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
