/* Small amount of CSS to complement Tailwind CDN (no build step). */

html { scroll-behavior: smooth; }

/* Give the fixed navbar some scroll margin so anchors aren't hidden */
section { scroll-margin-top: 92px; }

/* Reusable card styles (shadcn-ish) */
.card {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.875rem;
  line-height: 1.2;
  background: rgba(46, 77, 167, 0.12);
  color: #2e4da7;
  border: 1px solid rgba(46, 77, 167, 0.15);
}

.badge-outline {
  background: transparent;
  color: #111827;
  border: 1px solid rgba(17,24,39,0.18);
}

.input, .textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(243,243,245,1);
  outline: none;
}

.input:focus, .textarea:focus {
  box-shadow: 0 0 0 3px rgba(46, 77, 167, 0.22);
  border-color: rgba(46, 77, 167, 0.55);
}

/* Hero background */
.soundwave-bg {
  background: linear-gradient(135deg, #2e4da7, #3558ba, #243a85);
}

.wave {
  fill: none;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 2;
}

/* Different opacities to match the Figma export */
.wave:nth-of-type(1) { opacity: 0.15; }
.wave:nth-of-type(2) { opacity: 0.12; }
.wave:nth-of-type(3) { opacity: 0.10; }
.wave:nth-of-type(4) { opacity: 0.08; }
.wave:nth-of-type(5) { opacity: 0.06; }

.decor-lines line {
  stroke: rgba(255,255,255,0.05);
  stroke-width: 1;
}

.bg-circle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.9);
  opacity: 0.06;
  animation: floatPulse var(--dur) ease-in-out var(--delay) infinite;
}

@keyframes floatPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.06; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.12; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.06; }
}

/* Toast */
.toast {
  pointer-events: none;
  background: rgba(17,24,39,0.95);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  max-width: min(360px, calc(100vw - 3rem));
}

.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-sub { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .bg-circle { animation: none; }
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.7);
}

.lang-btn {
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 0.6rem;
  color: #111827;
}

.lang-btn[aria-pressed="true"] {
  background: #2e4da7;
  color: white;
}
