@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@500;700;800&display=swap');

:root {
  --spider-bg: #070a12;
  --spider-surface: rgba(15, 23, 42, 0.58);
  --spider-surface-strong: rgba(15, 23, 42, 0.78);
  --spider-border: rgba(148, 163, 184, 0.2);
  --spider-text: #e2e8f0;
  --spider-muted: #94a3b8;
  --spider-brand-a: #6366f1;
  --spider-brand-b: #d946ef;
  --spider-brand-c: #22d3ee;
  --spider-success: #22c55e;
  --spider-danger: #f43f5e;
  --spider-radius-lg: 1rem;
  --spider-radius-xl: 1.25rem;
  --spider-shadow-soft: 0 20px 45px rgba(2, 6, 23, 0.45);
  --spider-shadow-brand: 0 12px 36px rgba(99, 102, 241, 0.35);
}

html,
body {
  background: var(--spider-bg);
}

body {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  color: var(--spider-text);
}

h1,
h2,
h3,
.hero-title,
.brand-title {
  font-family: 'Syne', 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

img[src*='logo'] {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.h-10.w-14 {
  min-width: 56px;
  max-width: 56px;
  width: 56px !important;
  flex-basis: 56px;
}

#language-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent !important;
  color: #e5e7eb !important;
  border: 0;
  padding: 2px 18px 2px 4px;
  font-size: 0.75rem;
  line-height: 1rem;
  cursor: pointer;
}

#language-select:focus,
#language-select:active,
#language-select:hover {
  background-color: transparent !important;
  color: #e5e7eb !important;
  outline: none !important;
  box-shadow: none !important;
}

#language-select option {
  background-color: #020617 !important;
  color: #e5e7eb !important;
}

.aurora-blob {
  filter: blur(60px);
  transform: translateZ(0);
  opacity: 0.55;
}

.noise-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
  opacity: 0.18;
}

.spider-glass {
  border: 1px solid var(--spider-border);
  background: var(--spider-surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--spider-shadow-soft);
  border-radius: var(--spider-radius-xl);
}

.spider-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.48), rgba(15, 23, 42, 0.36));
  border-radius: var(--spider-radius-xl);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.36);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.spider-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 18px 44px rgba(67, 56, 202, 0.3);
}

.spider-btn-primary {
  background: linear-gradient(90deg, var(--spider-brand-a), var(--spider-brand-b), var(--spider-brand-c));
  color: #fff;
  box-shadow: var(--spider-shadow-brand);
  transition: transform 180ms ease, filter 180ms ease;
}

.spider-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.spider-btn-secondary {
  border: 1px solid rgba(217, 70, 239, 0.34);
  color: #f5d0fe;
  background: rgba(168, 85, 247, 0.08);
}

.spider-input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--spider-surface-strong);
  color: var(--spider-text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.spider-input:focus {
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
  outline: none;
}

.reveal-fade {
  animation: reveal-fade 550ms ease both;
}

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

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

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

@media (max-width: 640px) {
  .spider-card,
  .spider-glass {
    border-radius: 1rem;
  }
}
