/* Only things Tailwind can't express */

html { scroll-behavior: smooth; }

/* Hero title — larger on mobile, clamp on desktop */
.hero-title { font-size: 56px; }
@media (min-width: 640px) {
  .hero-title { font-size: clamp(44px, 5.2vw, 76px); }
}

.glass-pill {
  position: relative;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: linear-gradient(145deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.25);
  transition:
    border-color 400ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow   400ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Hover sheen as a pseudo-element so opacity can animate (gradients can't) */
.glass-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.glass-pill:hover {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 6px 32px rgba(0, 0, 0, 0.3);
}

.glass-pill:hover::after {
  opacity: 1;
}

#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

/* JS-toggled opacity reveal */
body.ready {
  opacity: 1;
}


/* Minimal form inputs */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 300;
  padding: 14px 0;
  outline: none;
  transition: border-color 300ms ease;
  resize: none;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.form-input:focus        { border-bottom-color: rgba(255, 255, 255, 0.35); }

/* Override browser autofill — prevents the blue/yellow highlight */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  box-shadow:         0 0 0 1000px #000 inset;
  caret-color: white;
  transition: background-color 5000s ease-in-out 0s;
}
