:root {
  --ink: #17323a;
  --muted: #516970;
  --paper: #fff9ec;
  --panel: #ffffff;
  --sand: #f7dfaa;
  --sun: #f2a75b;
  --coral: #f26d5b;
  --ocean: #2e9ab7;
  --palm: #22785d;
  --leaf: #77c780;
  --deep: #0f5768;
  --lavender: #d6c5ff;
  --line: rgba(23, 50, 58, 0.14);
  --shadow: 0 20px 45px rgba(20, 57, 66, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 218, 117, 0.42), transparent 18rem),
    radial-gradient(circle at 93% 9%, rgba(46, 154, 183, 0.28), transparent 23rem),
    radial-gradient(circle at 15% 88%, rgba(119, 199, 128, 0.26), transparent 24rem),
    url("assets/neighborhood-wave-background.svg"),
    linear-gradient(180deg, #fff7df 0%, #f8fbf6 47%, #eef8f8 100%);
  background-size: auto, auto, auto, 100% auto, auto;
  background-repeat: no-repeat;
  background-position: top left, top right, bottom left, top center, center;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.52), transparent 72%);
  z-index: -1;
}

a {
  color: var(--deep);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 249, 236, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(23, 50, 58, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 8px 12px rgba(23, 50, 58, .16));
}

.brand strong {
  display: block;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.nav a:hover,
.nav a.active {
  background: linear-gradient(135deg, rgba(46, 154, 183, 0.18), rgba(242, 167, 91, 0.24));
  color: var(--deep);
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 2vw, 1.5rem) clamp(2rem, 5vw, 4rem);
  margin-top: 1.25rem;
  border-radius: 2.2rem;
  position: relative;
  overflow: hidden;
}

.has-family-backdrop {
  background:
    linear-gradient(90deg, rgba(255, 249, 236, .92), rgba(255,249,236,.72) 47%, rgba(255,255,255,.36)),
    url("assets/family-neighborhood-background.svg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}

.has-family-backdrop::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.45), transparent 67%);
  pointer-events: none;
}

.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 850;
}

h1,
h2 {
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.85rem);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .5);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

p {
  line-height: 1.7;
  font-size: 1rem;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #274951;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button,
button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  color: white;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  font-weight: 850;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 87, 104, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(15, 87, 104, 0.26);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--deep);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-art {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 236, 0.66));
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.hero-art img,
.boundary-panel img,
.family-welcome img {
  display: block;
  width: 100%;
  height: auto;
}

.family-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  margin: 2rem 0 1.25rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(135deg, rgba(255, 244, 199, .93), rgba(205, 238, 241, .88)),
    url("assets/neighborhood-wave-background.svg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.family-welcome-copy {
  max-width: 760px;
}

.family-welcome img {
  filter: drop-shadow(0 20px 22px rgba(23, 50, 58, .16));
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 4rem;
}

.mission-color-band {
  position: relative;
}

.mission-color-band::before {
  content: "";
  position: absolute;
  inset: -2rem -4rem auto;
  height: 64%;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 109, 91, .18), transparent 18rem),
    radial-gradient(circle at 80% 8%, rgba(34, 120, 93, .14), transparent 22rem);
  pointer-events: none;
  z-index: -1;
}

.card,
.signup-form,
.bulletin,
.boundary-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
  border-radius: 1.4rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(242, 167, 91, .28), transparent 8rem),
    radial-gradient(circle at 95% 90%, rgba(46, 154, 183, .16), transparent 9rem);
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 1.1rem;
}

.card p {
  color: var(--muted);
}

.boundary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: center;
  border-radius: 1.7rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 4rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,249,236,.92)),
    url("assets/family-neighborhood-background.svg");
  background-size: cover;
  background-position: center;
}

.page-title {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 2vw, 1.5rem) 1rem;
  max-width: 900px;
  border-radius: 0 0 2rem 2rem;
}

.signup-title-art {
  background:
    linear-gradient(90deg, rgba(255, 249, 236, .93), rgba(255, 249, 236, .72)),
    url("assets/family-neighborhood-background.svg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .7);
  margin-top: 1.25rem;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0 4rem;
}

.signup-form,
.bulletin {
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.signup-form {
  display: grid;
  gap: 0.72rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,249,236,.88)),
    radial-gradient(circle at 100% 0%, rgba(46,154,183,.18), transparent 15rem);
}

label {
  font-weight: 850;
  margin-top: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 50, 58, 0.22);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(46, 154, 183, 0.28);
  border-color: var(--ocean);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.bulletin {
  border: 5px double rgba(242, 167, 91, 0.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,249,236,0.72)),
    url("assets/porch-lights-background.svg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.bulletin::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 247, 187, .48), transparent 65%);
  pointer-events: none;
}

.bulletin-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.bulletin-header img {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 12px 14px rgba(23, 50, 58, .18));
}

.bulletin ul {
  margin: 0;
  padding-left: 1.25rem;
  position: relative;
  z-index: 1;
}

.bulletin li {
  margin: 0.72rem 0;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  font-weight: 800;
  background: rgba(255,255,255,.7);
  border-radius: .75rem;
  padding: .28rem .45rem;
  backdrop-filter: blur(4px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(255, 249, 236, .82), rgba(205, 238, 241, .74)),
    url("assets/neighborhood-wave-background.svg");
  background-size: cover;
  background-position: bottom center;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .signup-layout,
  .boundary-panel,
  .family-welcome {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .boundary-panel img,
  .family-welcome img {
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav a,
  .button,
  button {
    transition: none;
  }
}
