:root {
  --bg: #eef7ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #092545;
  --muted: #355a7d;
  --line: rgba(9, 47, 86, 0.16);
  --accent: #0ea5a8;
  --accent-strong: #0a8487;
  --shadow: 0 28px 60px rgba(10, 50, 90, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-photo,
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
}

.bg-photo {
  background-image:
    linear-gradient(180deg, rgba(238, 247, 255, 0.82), rgba(238, 247, 255, 0.97)),
    url("assets/sanfran.png");
  background-size: cover;
  background-position: center;
}

.grid-overlay {
  z-index: -3;
  background-image: url("map.xml");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  z-index: -2;
  animation: drift 12s ease-in-out infinite;
}

.glow-left {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 12%;
  background: radial-gradient(circle, rgba(14, 165, 168, 0.34) 0%, rgba(14, 165, 168, 0) 70%);
}

.glow-right {
  width: 420px;
  height: 420px;
  right: -130px;
  top: 46%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
  animation-delay: 2s;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.15rem 0;
}

.brand img {
  width: 196px;
  height: auto;
  display: block;
}

.hero {
  max-width: 780px;
  padding: 4.8rem 0 4.4rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero h1 {
  margin: 0.6rem 0 1rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5.8vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  text-wrap: balance;
  color: #05203d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-copy {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1rem, 2vw, 1.23rem);
  color: #214a70;
}

.format-list {
  margin: 0.95rem 0 0;
  font-weight: 600;
  color: #1c466f;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  max-width: 640px;
}

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

.email-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(9, 47, 86, 0.18);
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  font: inherit;
  color: #103a61;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(10, 50, 90, 0.09);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input::placeholder {
  color: #5a7898;
}

.email-input:focus {
  border-color: #00766f;
  box-shadow: 0 0 0 3px rgba(0, 118, 111, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.90rem;
  padding: 0.8rem 1.3rem;
  border-radius: 0.85rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #ffffff;
  background: #00766f;
  box-shadow: 0 18px 36px rgba(0, 118, 111, 0.3);
}

.micro-note {
  margin: 0.85rem 0 0;
  color: #355a7d;
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  color: #1d4b74;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  backdrop-filter: blur(8px);
}

.site-footer .container {
  padding: 1rem 0 1.35rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: #4d6c8f;
}

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 3.9rem;
    padding-bottom: 3.6rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  .email-input {
    width: 100%;
  }

  .brand img {
    width: 162px;
  }

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