:root {
  --bg: #f4f0e8;
  --ink: #1d252c;
  --muted: #5a6570;
  --line: #d9d0c3;
  --panel: #fffaf2;
  --white: #ffffff;
  --blue: #1f5f86;
  --blue-dark: #174865;
  --green: #2d7a57;
  --orange: #d96222;
  --shadow: 0 18px 45px rgba(33, 37, 41, 0.14);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

a {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 242, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand small,
.brand strong {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
}

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

nav a {
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: 24px;
  padding: 150px clamp(18px, 5vw, 72px) 46px;
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(15, 22, 28, 0.9), rgba(15, 22, 28, 0.58) 52%, rgba(15, 22, 28, 0.34));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #17202a;
}

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

.hero-content {
  max-width: 820px;
}

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

.hero .eyebrow {
  color: #ffb270;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions,
.dashboard-actions,
.lead-controls,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(217, 98, 34, 0.24);
}

.button-primary:hover {
  background: #c75317;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.58);
}

.dashboard .button-secondary,
.band .button-secondary {
  border-color: var(--line);
}

.hero-panel {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(12, 18, 23, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 8px 0 18px;
  font-size: 24px;
}

.hero-panel dl,
.metrics,
.offer-grid,
.lead-fields {
  display: grid;
  gap: 12px;
}

.hero-panel dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.hero-panel div {
  min-width: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel dt {
  color: rgba(255, 255, 255, 0.62);
}

dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.band,
.dashboard {
  padding: 82px clamp(18px, 5vw, 72px);
}

.band-white {
  background: var(--white);
}

.section-head {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 760px;
}

.funnel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.lead-form,
.funnel-side,
.dashboard,
.offer-grid article,
.lead-card,
.metrics article,
.tools {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(31, 38, 45, 0.08);
}

.lead-form {
  padding: clamp(18px, 3vw, 34px);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cabdaa;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 134, 0.14);
}

textarea {
  resize: vertical;
}

.form-grid + label,
.form-footer {
  margin-top: 16px;
}

.form-footer {
  justify-content: space-between;
}

.form-footer p {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
}

.funnel-side {
  padding: 24px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 850;
}

.dashboard {
  background: #eef4f5;
  box-shadow: none;
}

.dashboard-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.dashboard-top p {
  max-width: 760px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metrics article {
  padding: 20px;
  background: var(--white);
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 34px;
}

.tools {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(180px, 0.5fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--white);
}

.lead-board {
  display: grid;
  gap: 16px;
}

.lead-card {
  padding: 20px;
  background: var(--white);
}

.lead-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.lead-card h3 {
  margin: 10px 0 6px;
}

.lead-contact,
.lead-details {
  margin-bottom: 0;
}

.lead-card time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.score {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #edf4ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.score.hot {
  background: #fff0e7;
  color: #a33e08;
}

.lead-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: #f7f9f9;
}

.lead-controls {
  margin-top: 18px;
}

.lead-controls label {
  min-width: 240px;
}

.draft-box {
  margin-top: 16px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f1faf5;
  padding: 16px;
  color: #244b39;
  line-height: 1.55;
}

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

.offer-grid article {
  padding: 24px;
}

.offer-grid span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.offer-grid p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero,
  .funnel-layout,
  .dashboard-top {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .funnel-layout {
    display: grid;
  }

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

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

@media (max-width: 700px) {
  .app-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
  }

  .hero {
    padding-top: 72px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-panel dl,
  .form-grid,
  .metrics,
  .lead-fields,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .lead-card-top {
    flex-direction: column;
  }

  .lead-card time {
    white-space: normal;
  }
}
