/* Shared layout for contact, updates, and other marketing satellite pages. */
:root {
  --marketing-text: #f6fff9;
  --marketing-body: #bdd2d6;
  --marketing-muted: #9eb5ba;
  --marketing-accent: #8df5ce;
  --marketing-panel-border: rgba(141, 245, 206, 0.22);
  --marketing-panel-bg: rgba(6, 16, 20, 0.82);
  --marketing-mouse-x: 50%;
  --marketing-mouse-y: 28%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.marketing-page {
  min-height: 100vh;
  color: var(--marketing-text);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  position: relative;
}

body.marketing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("/marketing/homepage-map-background.webp") center / cover no-repeat, #12100e;
  filter: blur(3px);
  transform: scale(1.03);
}

body.marketing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.62) 0%, rgba(8, 16, 20, 0.34) 24%, rgba(8, 16, 20, 0.06) 48%, rgba(8, 16, 20, 0.04) 72%, rgba(8, 16, 20, 0.28) 100%),
    radial-gradient(circle at var(--marketing-mouse-x) var(--marketing-mouse-y), rgba(105, 255, 213, 0.12), transparent 24rem),
    radial-gradient(ellipse at center, transparent 0%, rgba(6, 16, 20, 0.18) 48%, rgba(6, 16, 20, 0.7) 100%);
}

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

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 21, 26, 0.76);
  border-bottom: 1px solid rgba(137, 169, 173, 0.22);
}

.landing-nav-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.landing-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.landing-title {
  color: #f1fbf7;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
  white-space: nowrap;
}

.landing-tagline {
  color: #a9bec2;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.landing-nav-links a {
  color: #c5d8dc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.landing-nav-links a:hover,
.landing-nav-links a[aria-current="page"] {
  color: var(--marketing-accent);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(141, 245, 206, 0.4);
  background: rgba(41, 117, 105, 0.34);
  color: #d9fff0 !important;
}

.marketing-page-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 34px 0 24px;
}

.landing-text-panel {
  border: 1px solid var(--marketing-panel-border);
  border-radius: 12px;
  background: var(--marketing-panel-bg);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(20px, 3vw, 32px);
}

.landing-text-panel h1,
.landing-text-panel h2 {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.58);
}

.landing-text-panel p,
.landing-text-panel li {
  color: var(--marketing-body);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.marketing-hero {
  max-width: 780px;
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--marketing-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marketing-hero h1 {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  margin-bottom: 14px;
  color: var(--marketing-text);
}

.marketing-hero p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 66ch;
}

.marketing-content {
  max-width: 760px;
}

.marketing-form {
  display: grid;
  gap: 16px;
}

.marketing-form label {
  display: grid;
  gap: 8px;
  color: #e8f8f4;
  font-size: 14px;
  font-weight: 600;
}

.marketing-form input,
.marketing-form select,
.marketing-form textarea {
  width: 100%;
  border: 1px solid rgba(141, 245, 206, 0.22);
  border-radius: 8px;
  background: rgba(5, 14, 18, 0.72);
  color: var(--marketing-text);
  font: inherit;
  padding: 12px 14px;
}

.marketing-form input:focus,
.marketing-form select:focus,
.marketing-form textarea:focus {
  outline: 2px solid rgba(141, 245, 206, 0.35);
  border-color: rgba(141, 245, 206, 0.55);
}

.marketing-form textarea {
  min-height: 160px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: #061014;
  background: linear-gradient(180deg, #b9ffe3 0%, #67d0ad 100%);
  box-shadow: 0 16px 42px rgba(58, 218, 171, 0.24);
  justify-self: start;
}

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

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

.marketing-status {
  min-height: 22px;
  font-size: 14px;
  color: var(--marketing-muted);
}

.marketing-status.error {
  color: #fca5a5;
}

.marketing-status.success {
  color: #86efac;
}

.marketing-note {
  margin-top: 16px;
  color: var(--marketing-muted);
  font-size: 13px;
  line-height: 1.6;
}

.marketing-note a {
  color: var(--marketing-accent);
  text-decoration: underline;
}

.landing-footer {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 20px 0 46px;
  border-top: 1px solid rgba(137, 169, 173, 0.18);
  color: #8fa7ad;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-footer-links a {
  color: #bdd2d6;
  text-decoration: none;
}

.landing-footer-links a:hover {
  color: var(--marketing-accent);
  text-decoration: underline;
}

/* Updates timeline */
.updates-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.timeline-rail {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.timeline-rail h2 {
  color: var(--marketing-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.timeline-dates {
  display: grid;
  gap: 12px;
}

.timeline-month {
  display: grid;
  gap: 8px;
}

.timeline-month-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border: 1px solid rgba(141, 245, 206, 0.14);
  border-radius: 8px;
  background: rgba(5, 14, 18, 0.45);
  color: #c5d8dc;
  padding: 9px 10px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.timeline-month-toggle:hover,
.timeline-month.is-expanded > .timeline-month-toggle {
  border-color: rgba(141, 245, 206, 0.34);
  background: rgba(20, 48, 52, 0.42);
  color: #e8f8f4;
}

.timeline-month-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.timeline-month-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.timeline-month-meta::after {
  content: "▾";
  color: #8df5ce;
  font-size: 11px;
  line-height: 1;
  transition: transform 160ms ease;
}

.timeline-month.is-collapsed .timeline-month-meta::after {
  transform: rotate(-90deg);
}

.timeline-month-count {
  min-width: 1.4em;
  text-align: center;
  border-radius: 999px;
  background: rgba(141, 245, 206, 0.1);
  color: #9eb5ba;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
}

.timeline-month-dates {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 4px;
}

.timeline-month.is-collapsed .timeline-month-dates {
  display: none;
}

.timeline-month-dates::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 1px;
  background: linear-gradient(var(--marketing-accent), rgba(141, 245, 206, 0.06));
  opacity: 0.5;
}

.timeline-date {
  position: relative;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border: 1px solid rgba(141, 245, 206, 0.16);
  border-radius: 8px;
  background: rgba(5, 14, 18, 0.52);
  color: #dcebf0;
  font-weight: 600;
  padding: 10px 12px 10px 28px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.timeline-date::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.timeline-date:hover,
.timeline-date.active {
  border-color: rgba(141, 245, 206, 0.55);
  background: rgba(31, 92, 91, 0.34);
  color: #d9fff0;
}

.updates-detail {
  min-height: 520px;
  overflow: hidden;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(141, 245, 206, 0.16);
}

.detail-head h2 {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  color: var(--marketing-text);
}

.detail-count {
  align-self: flex-start;
  border: 1px solid rgba(141, 245, 206, 0.34);
  border-radius: 999px;
  color: #d9fff0;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
  white-space: nowrap;
}

.change-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.change-item {
  border: 1px solid rgba(141, 245, 206, 0.16);
  border-radius: 8px;
  background: rgba(5, 14, 18, 0.52);
  color: var(--marketing-body);
  padding: 14px 16px;
  opacity: 0;
  transform: translateX(-12px);
  animation: marketingChangeIn 360ms ease forwards;
}

@keyframes marketingChangeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-empty {
  color: var(--marketing-muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .landing-nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-tagline {
    white-space: normal;
  }

  .landing-nav-links a:not(.landing-cta) {
    display: none;
  }

  .updates-layout {
    grid-template-columns: 1fr;
  }

  .timeline-rail {
    position: static;
    max-height: none;
  }

  .timeline-month-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-month-dates::before {
    display: none;
  }

  .detail-head {
    flex-direction: column;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .landing-tagline {
    display: none;
  }
}
