.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  width: 100%;
  margin: 14px 0;
  padding: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(2, 6, 5, 0.94) 0%, rgba(2, 6, 5, 0.74) 46%, rgba(2, 6, 5, 0.50) 100%),
    radial-gradient(circle at 0% 0%, rgba(244,178,74,0.14), transparent 34%),
    url("../../img/klevgo-home-hero-bg.png") center/cover no-repeat;
  border: 1px solid rgba(244,178,74,0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 196, 88, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 5, 0.12) 0%, rgba(2, 6, 5, 0.58) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  padding: 12px 8px 16px;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: var(--radius-ui);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(244,178,74,0.13);
  color: rgba(255,248,234,0.84);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  font-weight: 800 !important;
  text-shadow: 0 10px 28px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.35);
}

.hero p {
  max-width: 650px;
  margin: 0 0 18px;
  color: rgba(255,248,234,0.84);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 0 8px 22px rgba(0,0,0,0.42);
}

.hero-features {
  margin-top: 4px;
}

.hero-features-title {
  margin: 0 0 8px;
  color: rgba(255, 248, 234, 0.72);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-feature-chip {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 178, 74, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 32, 28, 0.92), rgba(12, 18, 16, 0.88));
  color: rgba(255, 248, 234, 0.92);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.hero-feature-chip:active {
  transform: scale(0.98);
}

.trust-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

.trust-item {
  min-height: 84px;
  padding: 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas:
    "icon value"
    "icon label";
  align-items: center;
  column-gap: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 24, 20, 0.90), rgba(8, 14, 11, 0.86));
  border: 1px solid rgba(244,178,74,0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 24px rgba(0,0,0,0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.trust-icon {
  grid-area: icon;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.trust-icon.fish {
  color: var(--gold);
  background: rgba(244,178,74,0.15);
}

.trust-icon.pin {
  color: #ff7a57;
  background: rgba(255,122,87,0.14);
}

.trust-value {
  grid-area: value;
  color: rgba(255, 236, 196, 0.96);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.35px;
}

.trust-label {
  grid-area: label;
  color: rgba(255,248,234,0.72);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-image: url("../../img/klevgo-home-hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
}

.forecast-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(244,178,74,0.12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255,159,46,0.10), transparent 36%),
    var(--panel);
  border: 1px solid rgba(244,178,74,0.12);
  border-radius: var(--radius-card);
  padding: 22px;
  margin: 14px 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.forecast-panel::before,
.forecast-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.weather-sunny::before {
  width: 240px;
  height: 240px;
  right: -75px;
  top: -85px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,178,74,0.18), rgba(255,159,46,0.08) 42%, transparent 70%);
  animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

.weather-cloudy .cloud {
  display: block;
}

.cloud {
  display: none;
  position: absolute;
  width: 180px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  filter: blur(1px);
  opacity: 0.50;
  pointer-events: none;
  animation: cloudMove 18s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.cloud::before {
  width: 76px;
  height: 76px;
  left: 28px;
  top: -34px;
}

.cloud::after {
  width: 96px;
  height: 96px;
  right: 24px;
  top: -46px;
}

.cloud-1 {
  top: 34px;
  left: -220px;
  animation-duration: 22s;
}

.cloud-2 {
  top: 96px;
  left: -280px;
  transform: scale(0.7);
  animation-duration: 28s;
  animation-delay: -8s;
}

@keyframes cloudMove {
  from {
    translate: 0 0;
  }

  to {
    translate: calc(100vw + 440px) 0;
  }
}

.rain-layer {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
}

.weather-rainy .rain-layer {
  display: block;
}

.drop {
  position: absolute;
  top: -80px;
  width: 1px;
  height: 64px;
  background: linear-gradient(transparent, rgba(143,212,255,0.66), transparent);
  animation: rainFall 1.1s linear infinite;
}

.drop:nth-child(1) { left: 6%; animation-delay: -0.1s; }
.drop:nth-child(2) { left: 14%; animation-delay: -0.8s; }
.drop:nth-child(3) { left: 22%; animation-delay: -0.3s; }
.drop:nth-child(4) { left: 31%; animation-delay: -0.6s; }
.drop:nth-child(5) { left: 39%; animation-delay: -1s; }
.drop:nth-child(6) { left: 48%; animation-delay: -0.2s; }
.drop:nth-child(7) { left: 57%; animation-delay: -0.9s; }
.drop:nth-child(8) { left: 66%; animation-delay: -0.4s; }
.drop:nth-child(9) { left: 75%; animation-delay: -0.7s; }
.drop:nth-child(10) { left: 84%; animation-delay: -0.15s; }
.drop:nth-child(11) { left: 92%; animation-delay: -0.5s; }

@keyframes rainFall {
  from {
    transform: translateY(-100px) rotate(12deg);
  }

  to {
    transform: translateY(520px) rotate(12deg);
  }
}

.forecast-head,
.forecast-grid,
.bite-line {
  position: relative;
  z-index: 2;
}

.forecast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.forecast-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800 !important;
  letter-spacing: -0.4px;
  color: var(--text);
}

.forecast-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.forecast-item {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(244,178,74,0.09);
  border-radius: var(--radius-ui);
  padding: 20px;
  transition: 0.22s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.forecast-icon {
  font-size: 32px;
  margin-bottom: 10px;
  transition: 0.3s ease;
  display: inline-block;
}

.forecast-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

.forecast-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.bite-line {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  padding: 14px 17px;
  border-radius: var(--radius-ui);
  border: 0;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bite-line.bite-good-line {
  background: linear-gradient(135deg, rgba(244,178,74,0.22), rgba(255,255,255,0.045));
  color: #ffe8b5;
}

.bite-line.bite-medium-line {
  background: linear-gradient(135deg, rgba(229,185,87,0.22), rgba(255,255,255,0.045));
  color: #ffe7a3;
}

.info-line {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(244,178,74,0.10);
  color: var(--muted);
  padding: 17px 19px;
  border-radius: var(--radius-ui);
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.error-line {
  background: rgba(228,88,88,0.12);
  color: #ffd2d2;
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(244,178,74,0.12);
  border: 1px solid rgba(244,178,74,0.16);
  color: #ffe2a5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15px;
}

.home-feed-head,
.home-trip-link-card {
  margin: 16px 0;
  padding: 20px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 0% 0%, rgba(244,178,74,0.13), transparent 34%),
    rgba(13, 20, 17, 0.84);
  border: 1px solid rgba(244,178,74,0.13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-feed-head h2 {
  margin: 0;
  color: #fff8ea;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900 !important;
  letter-spacing: -0.9px;
}

.home-feed-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(255,248,234,0.68);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.home-feed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-trip-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-trip-link-card strong {
  display: block;
  margin-bottom: 5px;
  color: #fff8ea;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.home-trip-link-card span {
  display: block;
  color: rgba(255,248,234,0.66);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

#tripsSection {
  animation: sectionFadeIn 0.22s ease both;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
