/* DataGlu — shared custom styles */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.glass-card {
  background: rgba(15, 21, 36, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(15, 21, 36, 0.6);
  transform: translateY(-2px);
}

.glass-card--flat:hover {
  transform: none;
}

.ai-glow {
  box-shadow: 0 0 40px -10px rgba(125, 211, 252, 0.15);
}

.glow-text {
  text-shadow: 0 0 15px rgba(125, 211, 252, 0.3);
}

.gradient-text {
  background: linear-gradient(120deg, #7dd3fc 0%, #c8a0f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body {
  background-color: #0a0e1a;
  color: #e0e8f0;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-mesh {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(125, 211, 252, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200, 160, 240, 0.05) 0%, transparent 50%);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* Sticky, blurred header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.85);
  border-bottom-color: rgba(125, 211, 252, 0.12);
}

.nav-link {
  position: relative;
  color: #a0b4c4;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #e0e8f0; }

.nav-link.is-active { color: #7dd3fc; }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #7dd3fc;
}

/* Scroll reveal — keyframe-based (transitions get restarted by the Tailwind CDN
   MutationObserver, which can leave content stuck at opacity 0).
   Default is visible; JS adds .dg-js to <html> to enable the entrance animation. */
.reveal { opacity: 1; }

.dg-js .reveal { opacity: 0; }

.dg-js .reveal.is-visible {
  animation: reveal-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Eager reveal — for above-the-fold (hero) content. Animates immediately on
   load instead of waiting for the IntersectionObserver, so the LCP element
   isn't held at opacity 0 while JS boots. */
.reveal-eager { opacity: 1; }

.dg-js .reveal-eager {
  animation: reveal-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .dg-js .reveal, .dg-js .reveal.is-visible,
  .reveal-eager, .dg-js .reveal-eager { opacity: 1; transform: none; animation: none; }
  .animate-pulse, .marquee-track { animation: none !important; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

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

/* Floating animation for hero accents */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 6s ease-in-out infinite; }

/* Dotted connector list (data-model style) */
.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(125, 211, 252, 0.08);
}
.spec-row:last-child { border-bottom: none; }

@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #1a2438; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3a48; }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.is-open { max-height: 420px; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   Cookie consent banner — bottom-left glass toast
   --------------------------------------------------------------------------- */
.dg-cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  width: min(380px, calc(100vw - 48px));
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 21, 36, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow:
    0 20px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  color: #e0e8f0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.dg-cookie.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dg-cookie.is-leaving {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.dg-cookie__glow {
  position: absolute;
  inset: -40% auto auto -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.28) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(6px);
}

.dg-cookie__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.22), rgba(200, 160, 240, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #7dd3fc;
  position: relative;
}

.dg-cookie__icon .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.dg-cookie__body {
  position: relative;
  flex: 1;
  min-width: 0;
}

.dg-cookie__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.dg-cookie__text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #a0b4c4;
  margin: 0 0 14px;
}

.dg-cookie__link {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
}
.dg-cookie__link:hover { text-decoration: underline; }

.dg-cookie__actions {
  display: flex;
  gap: 8px;
}

.dg-cookie__btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.dg-cookie__btn:active { transform: scale(0.96); }

.dg-cookie__btn--primary {
  background: #7dd3fc;
  color: #001f2e;
  box-shadow: 0 8px 20px -8px rgba(125, 211, 252, 0.6);
}
.dg-cookie__btn--primary:hover { filter: brightness(1.08); }

.dg-cookie__btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #e0e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}
.dg-cookie__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(125, 211, 252, 0.3);
}

.dg-cookie__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(160, 180, 196, 0.7);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.dg-cookie__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e0e8f0;
}
.dg-cookie__close .material-symbols-outlined { font-size: 18px; }

@media (max-width: 480px) {
  .dg-cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dg-cookie { transition: opacity 0.2s ease; transform: none; }
  .dg-cookie.is-visible { transform: none; }
  .dg-cookie.is-leaving { transform: none; }
}
