.hero .container::after {
  content: none;
  display: none;
}

.hero::before {
  display: none;
}

.hero {
  padding: clamp(2.2rem, 6vw, 6rem) 0 2.25rem;
}

.home-hero-inner {
  position: relative;
  min-height: clamp(420px, 43vw, 640px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(0.75rem, 2vw, 2rem);
}

.hero .home-banner-title {
  position: relative;
  z-index: 3;
  display: block;
  width: min(56vw, 900px) !important;
  max-width: 100% !important;
  margin: 0 0 clamp(1.05rem, 2vw, 1.5rem) clamp(-22rem, -18vw, -12rem) !important;
  padding: 0;
  line-height: 1 !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  color: transparent !important;
  background: none !important;
  text-shadow: none !important;
  filter:
    drop-shadow(0 0 16px rgba(77, 255, 136, 0.42))
    drop-shadow(0 0 44px rgba(77, 255, 136, 0.16));
}

.home-banner-title span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-banner-title img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-actions {
  position: relative;
  z-index: 3;
}

.home-hero-inner .hero-actions .btn.secondary {
  color: #041008;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #76ff9f, #1fd469);
  box-shadow: var(--shadow-strong);
}

.home-hero-inner .hero-actions .btn.secondary:hover,
.home-hero-inner .hero-actions .btn.secondary:focus-visible {
  color: #001405;
  background: linear-gradient(180deg, #8cffad, #28e371);
}

main .card {
  height: 100%;
}

main .card-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

main .card-inner .btn {
  margin-top: auto;
}

main .card-inner .btn.secondary,
main .section-head .btn.secondary {
  color: #041008;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #76ff9f, #1fd469);
  box-shadow: var(--shadow-strong);
}

main .card-inner .btn.secondary:hover,
main .card-inner .btn.secondary:focus-visible,
main .section-head .btn.secondary:hover,
main .section-head .btn.secondary:focus-visible {
  color: #001405;
  background: linear-gradient(180deg, #8cffad, #28e371);
}

.home-intro-section {
  padding-top: clamp(2.2rem, 5vw, 4.25rem);
}

.home-intro-grid {
  align-items: stretch;
  gap: clamp(1rem, 2.8vw, 1.55rem);
}

.home-signal-card,
.home-join-card {
  position: relative;
  border-color: rgba(77, 255, 136, 0.42);
  background:
    radial-gradient(circle at 14% 0%, rgba(77, 255, 136, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(0, 27, 12, 0.74), rgba(0, 0, 0, 0.46)),
    repeating-linear-gradient(90deg, rgba(77, 255, 136, 0.035), rgba(77, 255, 136, 0.035) 1px, transparent 1px, transparent 34px);
  box-shadow:
    0 0 34px rgba(77, 255, 136, 0.10),
    inset 0 0 24px rgba(77, 255, 136, 0.045);
}

.home-signal-card::before,
.home-join-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 44%, rgba(77, 255, 136, 0.06) 48%, transparent 56% 100%);
  pointer-events: none;
  opacity: 0.72;
}

.home-signal-card .terminal-bar {
  position: relative;
  z-index: 1;
  border-bottom-color: rgba(77, 255, 136, 0.20);
  background:
    linear-gradient(90deg, rgba(77, 255, 136, 0.13), transparent),
    rgba(0, 0, 0, 0.34);
}

.home-signal-card .terminal-bar::after {
  content: "SIGNAL INTAKE";
  margin-left: auto;
  color: rgba(161, 247, 182, 0.64);
  font-family: "Lucida Console", "Courier New", Monaco, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-signal-card .terminal-body {
  position: relative;
  z-index: 1;
  height: clamp(15rem, 20vw, 18.75rem);
  overflow: hidden;
  padding: 0;
  font-family: "Lucida Console", "Courier New", Monaco, monospace;
}

.home-signal-card .terminal-body::before,
.home-signal-card .terminal-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2.1rem;
  pointer-events: none;
}

.home-signal-card .terminal-body::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 17, 7, 0.94), transparent);
}

.home-signal-card .terminal-body::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 7, 3, 0.96), transparent);
}

.home-terminal-scroll {
  display: flex;
  flex-direction: column;
  padding: clamp(1.05rem, 2vw, 1.45rem);
  animation: homeTerminalScroll 17s linear infinite;
}

.home-signal-card:hover .home-terminal-scroll,
.home-signal-card:focus-within .home-terminal-scroll {
  animation-play-state: paused;
}

.home-terminal-loop {
  padding-bottom: 1.1rem;
}

.home-terminal-loop p,
.home-signal-card .terminal-body p {
  margin: 0 0 1rem;
  color: rgba(202, 255, 215, 0.82);
  font-family: "Lucida Console", "Courier New", Monaco, monospace;
  font-size: clamp(0.88rem, 1vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.55;
  text-shadow: 0 0 12px rgba(77, 255, 136, 0.20);
}

.home-terminal-loop p:last-child {
  margin-bottom: 0;
  color: rgba(227, 255, 233, 0.90);
}

@keyframes homeTerminalScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-terminal-scroll {
    animation: none;
  }
}

.home-join-card .panel-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-card-kicker {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(255, 211, 106, 0.34);
  border-radius: 999px;
  color: rgba(255, 232, 166, 0.78);
  background: rgba(0, 0, 0, 0.34);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-join-card h2 {
  margin-bottom: 0.65rem;
  padding-bottom: 0.16em;
  overflow: visible;
  color: transparent !important;
  background: linear-gradient(180deg, #eaffef 0%, #77ffa1 42%, #1fd469 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2rem, 3.2vw, 3.1rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.045em;
  text-shadow: 0 0 24px rgba(77, 255, 136, 0.22);
}

.home-join-card p {
  max-width: 58ch;
  color: rgba(227, 255, 233, 0.78);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.7;
}

.home-tipline-button {
  position: relative;
  margin: 0.25rem 0 1rem;
  padding-inline: 1.05rem 1.2rem;
  color: #041008 !important;
  border-color: rgba(255, 232, 166, 0.58) !important;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.55), transparent 0.48rem),
    linear-gradient(180deg, #ffe681 0%, #76ff9f 42%, #1fd469 100%) !important;
  box-shadow:
    0 0 20px rgba(255, 211, 106, 0.18),
    0 0 36px rgba(77, 255, 136, 0.22),
    var(--shadow-strong) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-tipline-button:hover,
.home-tipline-button:focus-visible {
  color: #001405 !important;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.66), transparent 0.48rem),
    linear-gradient(180deg, #fff0a8 0%, #8cffad 42%, #28e371 100%) !important;
}

.home-join-card .meta-row {
  margin-top: auto;
}

@media (min-width: 1181px) {
  .hero .home-banner-title img {
    transform: scaleY(1.18);
    transform-origin: center center;
  }

  .home-hero-inner .hero-actions {
    position: absolute;
    left: 57.4%;
    top: 52%;
    z-index: 4;
    width: 12.6rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.08rem;
    transform: translate(-50%, -50%);
  }

  .home-hero-inner .hero-actions .btn {
    width: 100%;
    min-height: 2.62rem;
    padding: 0.72rem 0.78rem;
    font-size: clamp(0.68rem, 0.72vw, 0.82rem);
    white-space: nowrap;
  }
}

.home-radar-layer {
  position: absolute;
  right: clamp(-26rem, -18vw, -13rem);
  top: 50%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  background: url("../img/maine%20radar%20logo.png") center / contain no-repeat;
  opacity: 0.92;
  filter: drop-shadow(0 0 18px rgba(77, 255, 136, 0.28));
  overflow: hidden;
  border-radius: 50%;
  transform: translateY(-50%);
  --sweep-angle: 0deg;
}

.home-radar-layer::before,
.home-radar-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.home-radar-layer::before {
  z-index: 2;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 10.5%, rgba(77, 255, 136, 0.34) 10.65% 10.85%, transparent 11% 22%),
    radial-gradient(circle at 50% 50%, transparent 0 63%, rgba(77, 255, 136, 0.18) 63.15% 63.45%, transparent 63.8%);
  box-shadow: inset 0 0 28px rgba(77, 255, 136, 0.10);
}

.home-radar-layer::after {
  z-index: 3;
  background: conic-gradient(from -14deg at 50% 50%, transparent 0deg, rgba(77, 255, 136, 0.08) 4deg, rgba(77, 255, 136, 0.30) 10deg, rgba(77, 255, 136, 0.42) 14deg, rgba(77, 255, 136, 0.20) 19deg, transparent 28deg 360deg);
  filter: blur(0.18px) drop-shadow(0 0 10px rgba(77, 255, 136, 0.24));
  transform: rotate(var(--sweep-angle));
  mix-blend-mode: screen;
}

.radar-story-dot {
  position: absolute;
  z-index: 4;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.68);
  pointer-events: auto;
  background: #c11212;
  border: 1px solid rgba(255, 122, 96, 0.92);
  opacity: 0;
  box-shadow: 0 0 12px rgba(255, 34, 26, 0.58), 0 0 26px rgba(180, 0, 0, 0.28);
  transition: opacity 80ms linear, transform 100ms linear, box-shadow 100ms linear, background 100ms linear;
}

.radar-story-dot::after {
  content: "";
  position: absolute;
  inset: -0.42rem;
  border: 1px solid rgba(255, 47, 36, 0.54);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 120ms linear, transform 180ms ease-out;
}

.radar-story-dot.is-swept {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.42);
  background: #ff1e18;
  border-color: rgba(255, 184, 164, 0.96);
  box-shadow: 0 0 16px rgba(255, 40, 30, 0.92), 0 0 42px rgba(210, 0, 0, 0.70), 0 0 72px rgba(140, 0, 0, 0.32);
}

.radar-story-dot.is-swept::after {
  opacity: 0.70;
  transform: scale(1.85);
}

.radar-story-dot.is-fading {
  opacity: 0.26;
  transform: translate(-50%, -50%) scale(0.94);
}

.radar-story-dot:hover,
.radar-story-dot:focus-visible {
  opacity: 1;
  background: #ff1e18;
  border-color: rgba(255, 196, 180, 0.98);
  box-shadow: 0 0 16px rgba(255, 40, 30, 0.92), 0 0 42px rgba(210, 0, 0, 0.70), 0 0 72px rgba(140, 0, 0, 0.32);
  outline: none;
}

@media (max-width: 1180px) {
  .home-hero-inner {
    min-height: clamp(380px, 48vw, 560px);
  }

  .hero .home-banner-title {
    width: min(62vw, 790px) !important;
    margin-left: clamp(-10rem, -9vw, -4rem) !important;
  }

  .hero .home-radar-layer {
    width: min(56vw, 620px) !important;
    right: clamp(-14rem, -11vw, -7rem) !important;
  }
}

@media (max-width: 880px) {
  .home-hero-inner {
    min-height: clamp(360px, 58vw, 520px);
  }

  .hero .home-banner-title {
    width: min(84vw, 620px) !important;
    margin-left: 0 !important;
  }

  .hero .home-radar-layer {
    width: min(68vw, 500px) !important;
    right: clamp(-4rem, -7vw, -1rem) !important;
    top: 52% !important;
    opacity: 0.45 !important;
    z-index: 1 !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1rem 0 1.45rem !important;
  }

  .home-hero-inner {
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    padding-block: 0.25rem 0;
  }

  .hero .home-banner-title {
    width: min(100%, 560px) !important;
    max-width: 100% !important;
    margin: 0.2rem auto 0.45rem !important;
  }

  .hero .home-radar-layer {
    position: relative !important;
    width: min(92vw, 430px) !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin: 0.15rem auto 1rem !important;
    transform: none !important;
    opacity: 0.72 !important;
    z-index: 1 !important;
    filter: none !important;
    contain: layout paint;
    isolation: isolate;
  }

  .hero .home-radar-layer::before {
    box-shadow: none !important;
  }

  .hero .home-radar-layer::after {
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .hero-actions {
    width: min(100%, 22rem);
    margin-inline: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .home-intro-section {
    padding-top: 1.2rem;
  }

  .home-signal-card .terminal-body,
  .home-join-card .panel-inner {
    padding: 1rem;
  }

  .home-signal-card .terminal-body {
    height: 13.5rem;
    padding: 0;
  }

  .home-terminal-scroll {
    padding: 1rem;
  }

  .home-tipline-button {
    width: 100%;
  }

  .radar-story-dot {
    width: 0.5rem;
    height: 0.5rem;
    box-shadow: 0 0 8px rgba(255, 34, 26, 0.55);
    transition: none;
  }

  .radar-story-dot::after {
    display: none;
  }

  .radar-story-dot.is-swept {
    box-shadow: 0 0 12px rgba(255, 40, 30, 0.80), 0 0 26px rgba(210, 0, 0, 0.45);
  }
}

@media (max-width: 480px) {
  .hero .home-banner-title {
    width: 100% !important;
    margin-top: 0.1rem !important;
  }

  .hero .home-radar-layer {
    width: min(94vw, 380px) !important;
    margin-bottom: 0.9rem !important;
    opacity: 0.74 !important;
  }
}
