:root {
  --ink: #102027;
  --muted: #5e6b70;
  --paper: #f7fbf8;
  --aqua: #027f8f;
  --aqua-deep: #07505f;
  --green: #4f8b54;
  --sun: #f2bc57;
  --clay: #be6b45;
  --white: #ffffff;
  --line: rgba(16, 32, 39, 0.12);
  --shadow: 0 28px 70px rgba(8, 36, 43, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: transparent;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

@supports (animation-timeline: scroll()) {
  .site-header:not(.header-solid) {
    animation: solid-header linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80px;
  }
}

@keyframes solid-header {
  from {
    background: transparent;
    box-shadow: none;
  }

  to {
    background: #31383b;
    box-shadow: 0 12px 32px rgba(16, 32, 39, 0.18);
  }
}

.site-header.is-scrolled {
  color: var(--white);
  background: #31383b;
  box-shadow: 0 12px 32px rgba(16, 32, 39, 0.18);
}

.site-header.header-solid {
  color: var(--white);
  background: #31383b;
  box-shadow: 0 12px 32px rgba(16, 32, 39, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--sun);
  color: #17201b;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 7vw, 110px) 90px;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: -8vh 0;
  background-image: url("assets/hero-app.png");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 33, 39, 0.9) 0%, rgba(5, 33, 39, 0.66) 42%, rgba(5, 33, 39, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 33, 39, 0.44), rgba(5, 33, 39, 0.08) 70%, rgba(247, 251, 248, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 12ch;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-copy,
.feature-copy p,
.cta-layout p {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
}

.button.primary {
  background: var(--sun);
  color: #17201b;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: var(--white);
  transform: translateX(-50%);
  animation: cue 1.6s infinite;
}

@keyframes cue {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 11px);
  }
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  position: relative;
  z-index: 4;
  margin-top: -52px;
  padding-bottom: 54px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-grid div {
  min-height: 142px;
  padding: 30px;
  background: var(--white);
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.stats-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.feature-section {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 13vw, 170px) 0;
}

.feature-map {
  background: #dceee5;
}

.feature-status {
  background: var(--aqua-deep);
  color: var(--white);
}

.feature-alerts {
  background: #f4ead8;
}

.feature-layout,
.alert-layout,
.cta-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
}

.feature-layout.reverse {
  grid-template-columns: 0.92fr 1fr;
}

.feature-copy p {
  color: rgba(16, 32, 39, 0.72);
}

.feature-status .feature-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.texture {
  position: absolute;
  inset: 0;
  opacity: 0.44;
  will-change: transform;
}

.texture-map {
  background:
    linear-gradient(35deg, transparent 38%, rgba(2, 127, 143, 0.18) 39% 40%, transparent 41%),
    linear-gradient(145deg, transparent 46%, rgba(79, 139, 84, 0.2) 47% 48%, transparent 49%),
    radial-gradient(circle at 22% 30%, rgba(242, 188, 87, 0.38), transparent 24%);
  background-size: 170px 170px, 220px 220px, 100% 100%;
}

.water-lines {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background:
    repeating-linear-gradient(105deg, transparent 0 36px, rgba(7, 80, 95, 0.16) 37px 39px),
    radial-gradient(circle at 75% 32%, rgba(190, 107, 69, 0.24), transparent 28%);
}

.phone-card {
  justify-self: center;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 18;
  border: 12px solid #111b20;
  border-radius: 36px;
  background: #ecf6f0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-screen-preview {
  position: relative;
  height: calc(100% - 16px);
  margin-top: -16px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
}

.app-screen-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.timeline-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item > span {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 3px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.timeline-item.active > span {
  border-color: var(--sun);
  background: var(--sun);
}

.timeline-item p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.cards-stack {
  display: grid;
  gap: 16px;
}

.cards-stack article {
  padding: 24px;
  border-left: 6px solid var(--aqua);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(16, 32, 39, 0.14);
}

.cards-stack article:nth-child(2) {
  border-color: var(--green);
  transform: translateX(30px);
}

.cards-stack article:nth-child(3) {
  border-color: var(--clay);
}

.cards-stack span,
.cards-stack strong {
  display: block;
}

.cards-stack span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.how-section {
  padding: clamp(84px, 12vw, 150px) 0;
  background: var(--white);
}

.how-section .eyebrow,
.feature-map .eyebrow,
.feature-alerts .eyebrow {
  color: var(--aqua);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.steps article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--aqua-deep);
  color: var(--white);
  font-weight: 800;
}

.steps p {
  color: var(--muted);
  line-height: 1.6;
}

.cta-section {
  padding: clamp(76px, 10vw, 130px) 0;
  color: var(--white);
  background:
    linear-gradient(130deg, rgba(7, 80, 95, 0.98), rgba(2, 127, 143, 0.9)),
    var(--aqua-deep);
}

.signup-form {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.signup-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 800;
}

.signup-form div {
  display: flex;
  gap: 10px;
}

.signup-form input,
.signup-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font: inherit;
}

.signup-form input {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
}

.signup-form button {
  padding: 0 18px;
  background: var(--sun);
  color: #17201b;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 58px);
  color: rgba(255, 255, 255, 0.74);
  background: #102027;
}

.site-footer span {
  color: var(--white);
  font-weight: 800;
}

.site-footer p {
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.contact-main {
  padding-top: 74px;
  background: var(--paper);
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 11vw, 140px) 0 clamp(52px, 8vw, 96px);
  color: var(--white);
  background:
    linear-gradient(130deg, rgba(7, 80, 95, 0.98), rgba(2, 127, 143, 0.88)),
    var(--aqua-deep);
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    repeating-linear-gradient(105deg, transparent 0 36px, rgba(255, 255, 255, 0.22) 37px 39px),
    radial-gradient(circle at 78% 28%, rgba(242, 188, 87, 0.32), transparent 26%);
}

.contact-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
}

.contact-hero h1 {
  max-width: 11ch;
}

.contact-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.contact-note {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-note strong,
.contact-note span {
  display: block;
}

.contact-note strong {
  margin-bottom: 12px;
}

.contact-note span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.contact-section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
}

.contact-copy .eyebrow {
  color: var(--aqua);
}

.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-list span {
  padding: 14px 16px;
  border-left: 5px solid var(--aqua);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 32, 39, 0.08);
  font-weight: 700;
}

.contact-list span:nth-child(2) {
  border-color: var(--green);
}

.contact-list span:nth-child(3) {
  border-color: var(--clay);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfb;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(2, 127, 143, 0.18);
  border-color: var(--aqua);
}

.contact-form button {
  min-height: 50px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--sun);
  color: #17201b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--aqua-deep);
  font-weight: 700;
}

.policy-main {
  padding: 124px 0 clamp(72px, 10vw, 120px);
  background:
    linear-gradient(180deg, #e6f1ed 0, var(--paper) 320px),
    var(--paper);
}

.policy-document {
  max-width: 920px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(16, 32, 39, 0.12);
}

.policy-document .eyebrow {
  color: var(--aqua);
}

.policy-document h1 {
  max-width: 12ch;
  color: var(--ink);
}

.policy-document h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.policy-document p,
.policy-document li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.policy-document ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.policy-document a {
  color: var(--aqua-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-date {
  margin-bottom: 30px;
  color: var(--aqua-deep) !important;
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 92vh;
    padding: 116px 20px 86px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  .stats-grid,
  .feature-layout,
  .feature-layout.reverse,
  .alert-layout,
  .cta-layout,
  .contact-hero-layout,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    min-height: auto;
  }

  .cards-stack article:nth-child(2) {
    transform: none;
  }

  .signup-form div,
  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

  .nav-links a {
    padding: 8px 0;
  }

  .hero-actions,
  .signup-form div {
    display: grid;
  }

  .button,
  .signup-form button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 28px, 1160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-layer,
  [data-parallax] {
    transform: none !important;
  }
}
