.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 1.45rem;
  padding-bottom: 1.75rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.46), rgba(3, 8, 18, 0.78) 66%, #07111f),
    linear-gradient(90deg, rgba(3, 8, 18, 0.62), rgba(3, 8, 18, 0.08) 48%, rgba(3, 8, 18, 0.74)),
    url("../images/storm-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.98));
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  left: -15%;
  width: 135%;
  height: 7rem;
  background: linear-gradient(90deg, transparent, rgba(228, 241, 255, 0.09), rgba(146, 199, 227, 0.06), transparent);
  filter: blur(12px);
  animation: cloudDrift 22s linear infinite;
}

.cloud-one {
  top: 18%;
}

.cloud-two {
  top: 36%;
  animation-duration: 28s;
  opacity: 0.72;
}

.cloud-three {
  bottom: 18%;
  animation-duration: 34s;
  opacity: 0.54;
}

.hero-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-copy h1 {
  max-width: 9ch;
  margin: 0 auto;
  font-size: 3rem;
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: #d6e6f7;
  font-size: 1rem;
  line-height: 1.52;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.trust-badges span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(119, 233, 255, 0.2);
  border-radius: 999px;
  background: rgba(119, 233, 255, 0.08);
  color: #d8eaff;
  font-size: 0.75rem;
  font-weight: 850;
}

.forecast-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.15rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 16, 31, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.field-group {
  display: grid;
  gap: 0.55rem;
}

.field-group input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0 1rem;
  border: 1px solid rgba(229, 241, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field-group input::placeholder {
  color: rgba(214, 230, 247, 0.68);
}

.field-group input:focus {
  border-color: rgba(119, 233, 255, 0.65);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(119, 233, 255, 0.1);
}

.field-group input[aria-invalid="true"] {
  border-color: rgba(255, 142, 122, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 142, 122, 0.12);
}

.location-button {
  width: 100%;
  min-height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(229, 241, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.location-button span:first-child {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  border-radius: 8px;
  background: rgba(119, 233, 255, 0.12);
  color: var(--ice);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.location-button:hover,
.location-button.is-active {
  border-color: rgba(119, 233, 255, 0.55);
  background: rgba(119, 233, 255, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.location-button.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.search-button,
.secondary-button,
.storm-toggle,
.storm-exit {
  min-height: 3.35rem;
  border: 1px solid rgba(119, 233, 255, 0.36);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.search-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0 1.05rem;
  background: linear-gradient(135deg, #77e9ff, #b9a7ff 54%, #ffd06f);
  color: #07111f;
  box-shadow: 0 18px 45px rgba(119, 233, 255, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.search-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transition: transform 420ms ease;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 62px rgba(119, 233, 255, 0.28);
}

.search-button:hover::before {
  transform: translateX(110%);
}

.search-button.is-loading {
  pointer-events: none;
  filter: saturate(0.78);
}

.button-arrow {
  transition: transform 160ms ease;
}

.search-button:hover .button-arrow {
  transform: translateX(4px);
}

.form-note {
  max-width: 40rem;
  margin: 0.55rem auto 0;
  color: rgba(214, 230, 247, 0.78);
  font-size: 0.9rem;
  text-align: center;
}

.form-note.is-error {
  color: #ffc3b7;
}

.form-note.is-live {
  color: #9ef2c3;
}

