:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5d6b70;
  --line: #d9e0de;
  --paper: #f7f4ee;
  --white: #ffffff;
  --blue: #0e6b8c;
  --blue-dark: #07506b;
  --coral: #d56c4e;
  --gold: #b98945;
  --green: #577b68;
  --shadow: 0 18px 60px rgba(19, 34, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(12, 31, 37, 0.72);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.form-footer,
.chat-form,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.nav-links {
  gap: 28px;
  justify-content: center;
  font-size: 0.95rem;
}

.header-action {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #122229;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 24, 29, 0.86) 0%, rgba(10, 24, 29, 0.58) 38%, rgba(10, 24, 29, 0.2) 72%),
    linear-gradient(0deg, rgba(12, 31, 37, 0.35), transparent 38%);
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 88px);
  padding-top: 54px;
  color: var(--white);
}

.hero-logo {
  display: block;
  width: min(360px, 82vw);
  margin-bottom: 24px;
  padding: 10px 16px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

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

.hero h1 {
  margin: 0;
  font-size: 7rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.28rem;
  line-height: 1.55;
}

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

.primary-action,
.secondary-action,
.inquiry-form button,
.chat-form button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action,
.inquiry-form button,
.chat-form button {
  color: var(--white);
  background: var(--coral);
}

.primary-action,
.secondary-action {
  padding: 14px 20px;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 24px clamp(18px, 5vw, 56px);
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1rem;
}

.trust-strip span {
  margin-top: 5px;
  color: var(--muted);
}

.section-grid,
.planner-band,
.about-section,
.interactive-zone {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

#journeys,
#about,
#inquiry,
#chat {
  scroll-margin-top: 140px;
}

.section-grid {
  padding: 78px 0 54px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.journey-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(19, 34, 39, 0.06);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #e6f1f3;
  font-size: 1.4rem;
}

.journey-card h3 {
  margin: 36px 0 10px;
  font-size: 1.35rem;
}

.journey-card p,
.planner-copy p,
.inquiry-form label,
.chat-log {
  color: var(--muted);
  line-height: 1.55;
}

.planner-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 44px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
}

.planner-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
}

.status-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.meter-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
}

meter {
  width: 100%;
  height: 10px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(290px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 78px 0 26px;
}

.about-photo {
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 55% 50%;
}

.about-copy {
  max-width: 680px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.about-stats span {
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
}

.about-stats strong {
  color: var(--blue-dark);
  font-size: 1.6rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.interactive-zone {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  align-items: start;
  padding: 56px 0 72px;
}

.inquiry-form,
.chat-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 50px rgba(19, 34, 39, 0.1);
}

.inquiry-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-logo {
  display: block;
  width: min(280px, 100%);
  margin-bottom: 22px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd6d4;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfb;
}

textarea {
  resize: vertical;
}

.form-footer {
  gap: 16px;
  flex-wrap: wrap;
}

.inquiry-form button,
.chat-form button {
  padding: 12px 18px;
}

#formStatus {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.chat-shell {
  overflow: hidden;
}

.mini-about {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fffaf4;
}

.mini-about img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 52% 35%;
}

.mini-about h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.mini-about p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mini-about a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-dark);
  font-weight: 900;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.atlas-icon {
  width: 118px;
  height: 116px;
  flex: 0 0 auto;
  object-fit: contain;
}

.live-dot {
  align-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green);
  background: #eaf1ed;
  font-size: 0.82rem;
  font-weight: 800;
}

.chat-log {
  height: 330px;
  overflow-y: auto;
  padding: 18px 18px 0;
  background: #f5f8f7;
}

.atlas-profile {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.profile-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-bar {
  height: 9px;
  margin: 9px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeee;
}

.profile-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 220ms ease;
}

.atlas-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.message {
  max-width: 84%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(19, 34, 39, 0.06);
  white-space: pre-line;
}

.message.guide,
.message.followup,
.message.handoff {
  position: relative;
  margin-left: 38px;
}

.message.guide::before,
.message.followup::before,
.message.handoff::before {
  position: absolute;
  left: -38px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: url("assets/atlas.png") center / contain no-repeat;
  content: "";
}

.message.followup {
  border: 2px solid #cfe8ed;
  background: #eff8fa;
  font-weight: 800;
}

.message.handoff {
  border: 2px solid #f1d3c9;
  background: #fff4ef;
  font-weight: 800;
}

.message.user {
  margin-left: auto;
  color: var(--white);
  background: var(--blue);
}

.quick-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
}

.dynamic-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px 0;
  background: var(--white);
}

.quick-prompts button,
.dynamic-prompts button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--blue-dark);
  background: var(--white);
  cursor: pointer;
}

.dynamic-prompts button {
  border-color: #b8dbe2;
  background: #eff8fa;
  font-weight: 800;
}

.chat-form {
  gap: 10px;
  padding: 0 18px 18px;
}

.site-footer {
  justify-content: center;
  gap: 26px;
  padding: 28px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.admin-body {
  background: #f3f7f6;
}

.admin-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
}

.admin-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

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

.admin-hero h1 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1;
}

.admin-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.admin-warning {
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid #f1d3c9;
  border-radius: 8px;
  color: var(--ink);
  background: #fff4ef;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.admin-panel,
.lead-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 45px rgba(19, 34, 39, 0.08);
}

.admin-panel {
  padding: 24px;
}

.admin-panel h2 {
  font-size: 2rem;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.admin-actions button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--coral);
  cursor: pointer;
  font-weight: 900;
}

.lead-list {
  display: grid;
  gap: 14px;
}

.lead-card {
  padding: 18px;
}

.lead-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.lead-card-top strong,
.lead-card-top span {
  display: block;
}

.lead-card-top span,
.empty-state,
.transcript {
  color: var(--muted);
}

.lead-card pre {
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #f5f8f7;
  white-space: pre-wrap;
  line-height: 1.45;
}

.lead-card details {
  margin-top: 12px;
}

.transcript p {
  margin: 8px 0;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .header-action {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 4.4rem;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero {
    min-height: 820px;
  }

  .trust-strip,
  .journey-grid,
  .planner-band,
  .about-section,
  .admin-grid,
  .interactive-zone,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .planner-band {
    padding: 28px;
  }

  .about-section {
    padding-top: 56px;
  }

  .about-photo img {
    aspect-ratio: 16 / 10;
    object-position: 50% 38%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .header-action {
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

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

  .mini-about {
    grid-template-columns: 82px 1fr;
  }

  .mini-about img {
    width: 82px;
    height: 82px;
  }

  .chat-header {
    align-items: flex-start;
  }

  .atlas-icon {
    width: 82px;
    height: 80px;
  }

  .chat-form {
    align-items: stretch;
    flex-direction: column;
  }

  .message {
    max-width: 94%;
  }
}
