@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,700;9..144,800&display=swap");

:root {
  --bg: #f7f9fc;
  --ink: #092044;
  --muted: #5d6b82;
  --primary: #005bff;
  --secondary: #2f80ff;
  --accent: #7cb9ff;
  --line: rgba(0, 91, 255, 0.12);
  --card: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(9, 32, 68, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(124, 185, 255, 0.34), transparent 30rem),
    radial-gradient(circle at 85% 15%, rgba(47, 128, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 18%, var(--bg) 100%);
  color: var(--ink);
}

.font-display {
  font-family: "Fraunces", serif;
}

.glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.soft-card {
  background: #fff;
  border: 1px solid rgba(9, 32, 68, 0.07);
  box-shadow: 0 18px 55px rgba(9, 32, 68, 0.08);
}

.gradient-text {
  background: linear-gradient(110deg, #092044 0%, #005bff 52%, #2f80ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 91, 255, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(0, 91, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(0, 91, 255, 0.16);
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.nav-link {
  position: relative;
  color: #496077;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: transform 180ms ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mesh-panel {
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 185, 255, 0.38), transparent 13rem),
    radial-gradient(circle at 90% 10%, rgba(0, 91, 255, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
}

.dashboard-grid {
  background-image:
    linear-gradient(rgba(0, 91, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 91, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.78;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}

.blob:nth-child(2) {
  animation-delay: -2s;
}

.blob:nth-child(3) {
  animation-delay: -4s;
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.6) 45%, transparent 62%);
  transform: translateX(-130%);
  animation: shine 5.5s ease-in-out infinite;
}

.icon-tile {
  background: linear-gradient(145deg, #fff, #f8fbff);
  border: 1px solid rgba(0, 91, 255, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.icon-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 91, 255, 0.22);
  box-shadow: 0 18px 50px rgba(0, 91, 255, 0.1);
}

.feature-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(9, 32, 68, 0.12);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 4.25rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 91, 255, 0.28), rgba(124, 185, 255, 0));
}

.timeline-item:last-child::before {
  display: none;
}

.code-window {
  background: #ffffff;
  color: #0b1f3d;
  border: 1px solid rgba(9, 32, 68, 0.08);
  box-shadow: 0 24px 70px rgba(9, 32, 68, 0.1);
}

.code-window-dark {
  background:
    radial-gradient(circle at 15% 5%, rgba(47, 128, 255, 0.22), transparent 18rem),
    linear-gradient(145deg, #081a38, #0c2347);
  color: #eaf2ff;
  border: 1px solid rgba(124, 185, 255, 0.2);
  box-shadow: 0 24px 70px rgba(9, 32, 68, 0.18);
}

.code-window code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.token-key {
  color: #005bff;
}

.token-string {
  color: #087f5b;
}

.token-number {
  color: #b45309;
}

.copy-btn.copied {
  background: #e8f8ef;
  color: #087f5b;
  border-color: rgba(8, 127, 91, 0.18);
}

.operator-orb {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 34%, transparent 35%),
    linear-gradient(135deg, rgba(0, 91, 255, 0.95), rgba(124, 185, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 32px rgba(0, 91, 255, 0.2);
}

.api-pill {
  border: 1px solid rgba(0, 91, 255, 0.12);
  background: linear-gradient(135deg, #ffffff, #f6faff);
  box-shadow: 0 12px 30px rgba(9, 32, 68, 0.06);
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(0, 91, 255, 0.2);
  animation: pulse-ring 2.4s ease-out infinite;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgba(9, 32, 68, 0.08);
}

.faq-item[open] summary {
  color: var(--primary);
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  animation: marquee 28s linear infinite;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.mobile-menu.open {
  max-height: 36rem;
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -14px, 0);
  }
}

@keyframes shine {
  0%, 68% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.92);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
