:root {
  color-scheme: light;
  --blue: #1266f1;
  --blue-dark: #0b3f91;
  --green: #15966f;
  --sun: #f7a928;
  --ink: #132033;
  --muted: #5b6a80;
  --line: #dbe6f5;
  --soft: #f4f8fd;
  --white: #ffffff;
  --cta: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-door="green"] { --cta: var(--green); }
body[data-door="sun"] { --cta: var(--sun); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 230, 245, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--blue-dark);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(18, 102, 241, 0.2);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-cta {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 4vw, 56px) 36px;
  overflow: hidden;
}

.hero-copy {
  max-width: 690px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.hero-sub,
.routes p,
.feature-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 28px 0 22px;
}

.primary-cta,
.secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-cta {
  border: 0;
  background: var(--cta);
  color: white;
  box-shadow: 0 16px 36px rgba(18, 102, 241, 0.22);
}

.secondary-link {
  color: var(--blue-dark);
  border: 1px solid var(--line);
  background: white;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(244, 248, 253, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  align-self: stretch;
  min-width: 0;
  min-height: 500px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 70px rgba(19, 32, 51, 0.17);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scaleX(-1);
}

.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 0;
}

.section-heading {
  max-width: 610px;
  margin-bottom: 30px;
}

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

.feature-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.routes-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: start;
}

.quick-form,
.modal-form {
  display: grid;
  gap: 14px;
}

.form-step {
  display: none;
  gap: 14px;
}

.form-step.is-active {
  display: grid;
}

.form-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.form-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.quick-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 46px rgba(19, 32, 51, 0.08);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdff;
}

input:focus {
  outline: 3px solid rgba(18, 102, 241, 0.18);
  border-color: var(--blue);
}

.form-submit {
  width: 100%;
  margin-top: 2px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.text-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 800;
  text-align: center;
}

.form-note,
.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="error"] { color: #c93636; }

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 32, 51, 0.55);
}

.modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  padding: 28px;
  background: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.icon-button {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 920px) {
  .hero,
  .routes-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-media {
    min-height: 340px;
    order: -1;
  }

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

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }

  .nav a {
    display: none;
  }

  .nav-cta {
    padding: 9px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 260px;
  }

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

  .feature-grid article {
    min-height: auto;
  }
}
