:root {
  --ink: #0b1e2c;
  --ink-muted: #314b5d;
  --paper: #efe5d3;
  --panel: #fff8ee;
  --steel: #123247;
  --blue: #0d6efd;
  --aqua: #34d6c5;
  --orange: #ff8a3d;
  --yellow: #ffd166;
  --line: rgba(11, 30, 44, 0.14);
  --shadow: 0 24px 80px rgba(6, 20, 33, 0.18);
  --radius-lg: 34px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(52, 214, 197, 0.36), transparent 24rem),
    radial-gradient(circle at 90% 12%, rgba(255, 138, 61, 0.28), transparent 24rem),
    linear-gradient(135deg, #eadfca 0%, #dff0ec 48%, #f4dfc7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(11, 30, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 30, 44, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 16px 50px rgba(6, 20, 33, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.trust-strip,
.metric-grid,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 4px;
}

.brand-mark,
.mini-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  background: linear-gradient(135deg, var(--steel), var(--blue));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand small {
  color: var(--ink-muted);
}

.nav {
  gap: 22px;
  color: #355164;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta,
.button {
  border: 0;
  border-radius: 999px;
  font: 800 0.95rem "Archivo", sans-serif;
  cursor: pointer;
}

.header-cta {
  padding: 12px 18px;
  color: white;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--steel));
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.24);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.button.full {
  width: 100%;
}

main {
  overflow: hidden;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.demo-notice {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 12px 16px;
  color: #123349;
  text-align: center;
  background: #fff4d6;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 14px;
}

.demo-notice span {
  color: #476274;
}

.hero {
  min-height: calc(100vh - 80px);
  padding: 84px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6ea8ff;
  font: 900 0.78rem "Archivo", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
}

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

.hero-text,
.section-heading p,
.tracking-copy p,
.estimate-panel > div p,
.demo-cta p {
  color: #476274;
  font-size: 1.14rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 650px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.trust-strip {
  flex-wrap: wrap;
  gap: 12px;
}

.trust-strip span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.84);
  color: #3f5768;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-visual img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border: 12px solid rgba(255, 255, 255, 0.78);
  border-radius: 46px;
  box-shadow: var(--shadow);
  filter: saturate(1.05) contrast(1.02);
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 18px 40px rgba(6, 20, 33, 0.18);
  backdrop-filter: blur(16px);
}

.floating-card small {
  display: block;
  color: var(--ink-muted);
}

.service-alert {
  right: -16px;
  bottom: 118px;
}

.revenue-card {
  left: -22px;
  top: 72px;
  display: block;
}

.revenue-card strong {
  display: block;
  font: 900 2.15rem "Archivo", sans-serif;
}

.pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.7);
  animation: pulse 1.8s infinite;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 70px;
}

.logo-row span {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #3d586a;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 248, 238, 0.82);
}

.automation,
.estimate-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

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

.workflow-card,
.metric-card,
.pipeline-column,
.estimate-panel,
.demo-cta {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 18px 50px rgba(6, 20, 33, 0.09);
  backdrop-filter: blur(18px);
}

.workflow-card {
  min-height: 270px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.workflow-card p,
.job-card small,
.job-card span,
.metric-card span {
  color: #486273;
}

.card-number {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--orange);
  font: 900 0.84rem "Archivo", sans-serif;
}

.crm-section {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--steel), #081b2a);
}

.crm-shell {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  color: white;
  background:
    radial-gradient(circle at 14% 8%, rgba(52, 214, 197, 0.22), transparent 24rem),
    rgba(255, 255, 255, 0.06);
}

.crm-sidebar {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.crm-sidebar button {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 12px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  font: 800 0.9rem "Space Grotesk", sans-serif;
  text-align: left;
  background: transparent;
}

.crm-sidebar button.active,
.crm-sidebar button:hover {
  color: var(--ink);
  background: var(--aqua);
}

.crm-main {
  padding: 22px;
}

.crm-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.crm-topbar h2 {
  margin-bottom: 0;
}

.status-pill {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  background: var(--yellow);
}

.metric-grid {
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  flex: 1;
  padding: 18px;
  border-radius: 20px;
  color: var(--ink);
}

.metric-card small,
.metric-card span {
  display: block;
}

.metric-card strong {
  display: block;
  margin: 4px 0;
  font: 900 2.3rem "Archivo", sans-serif;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pipeline-column {
  min-height: 330px;
  padding: 14px;
  border-radius: 22px;
  color: var(--ink);
}

.pipeline-column h3 {
  font-size: 1rem;
  letter-spacing: 0;
}

.job-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.job-card strong,
.job-card span,
.job-card small {
  display: block;
}

.job-card.hot {
  border-color: rgba(255, 138, 61, 0.55);
  box-shadow: inset 4px 0 0 var(--orange);
}

.job-card.active-job {
  border-color: rgba(52, 214, 197, 0.62);
  box-shadow: inset 4px 0 0 var(--aqua);
}

.job-card.won {
  border-color: rgba(13, 110, 253, 0.38);
  box-shadow: inset 4px 0 0 var(--blue);
}

.tracking {
  padding: 90px 0;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.check-list span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 800;
  background: rgba(255, 248, 238, 0.84);
}

.phone {
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 10px solid var(--ink);
  border-radius: 42px;
  background: #edf5f4;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 96px;
  height: 7px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--ink);
}

.message {
  width: 82%;
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 17px;
  line-height: 1.35;
}

.message.from {
  color: white;
  background: var(--blue);
}

.message.to {
  margin-left: auto;
  background: white;
}

.tracking-map {
  position: relative;
  height: 210px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(30deg, transparent 44%, rgba(18, 50, 71, 0.14) 45% 55%, transparent 56%),
    linear-gradient(120deg, transparent 44%, rgba(18, 50, 71, 0.14) 45% 55%, transparent 56%),
    #d9ebe8;
}

.route-line {
  position: absolute;
  left: 72px;
  top: 52px;
  width: 200px;
  height: 96px;
  border-bottom: 6px dashed var(--orange);
  border-left: 6px dashed var(--orange);
  border-radius: 0 0 0 60px;
}

.map-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 8px 16px rgba(6, 20, 33, 0.2);
}

.map-pin.start {
  left: 60px;
  top: 42px;
}

.map-pin.end {
  right: 66px;
  bottom: 52px;
  background: var(--blue);
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 28px;
}

.gallery-card.tall {
  min-height: 596px;
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.gallery-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(transparent, rgba(6, 20, 33, 0.82));
}

.gallery-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  color: white;
  font: 900 1.15rem "Archivo", sans-serif;
}

.estimate-panel {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.75fr;
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius-lg);
}

.estimate-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-muted);
  font-weight: 800;
}

select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  font: 600 1rem "Space Grotesk", sans-serif;
  background: white;
}

select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

.estimate-output {
  min-height: 100%;
  padding: 22px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(160deg, var(--steel), #07121d);
}

.estimate-output small {
  color: rgba(255, 255, 255, 0.68);
}

.estimate-output strong {
  display: block;
  margin: 10px 0;
  font: 900 2.7rem "Archivo", sans-serif;
  letter-spacing: -0.06em;
}

.automation-note {
  margin-top: 28px;
  padding: 16px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--aqua);
}

.automation-note span {
  font-weight: 900;
}

.automation-note p {
  margin: 6px 0 0;
}

.demo-cta {
  width: min(980px, calc(100% - 32px));
  margin: 30px auto 90px;
  padding: clamp(28px, 6vw, 70px);
  border-radius: 42px;
  text-align: center;
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 40px;
  color: var(--ink-muted);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: reveal 700ms ease forwards;
  }

  .delay-1 {
    animation-delay: 120ms;
  }

  .delay-2 {
    animation-delay: 240ms;
  }

  .delay-3 {
    animation-delay: 360ms;
  }

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

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 14px rgba(255, 138, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 61, 0);
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .section-grid,
  .estimate-panel,
  .crm-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .workflow-grid,
  .pipeline,
  .logo-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .crm-sidebar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .crm-sidebar button {
    min-width: 120px;
  }

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

  .gallery-card.tall {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 18px);
    margin-top: 9px;
    padding: 9px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .section-grid,
  .automation,
  .estimate-section,
  .gallery,
  .crm-shell,
  .logo-row,
  .site-footer {
    width: calc(100% - 22px);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 3.45rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 34px;
  }

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

  .trust-strip span {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    height: auto;
    min-height: 0;
  }

  .hero-visual img {
    min-height: 360px;
    height: 360px;
    border-width: 7px;
    border-radius: 30px;
  }

  .floating-card {
    position: static;
    margin-top: 10px;
    width: 100%;
  }

  .workflow-grid,
  .pipeline,
  .metric-grid,
  .logo-row,
  .check-list {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    display: grid;
  }

  .crm-section {
    padding: 46px 0;
  }

  .crm-shell {
    padding: 10px;
    border-radius: 26px;
  }

  .crm-main {
    padding: 8px 2px 2px;
  }

  .crm-sidebar {
    padding: 10px;
    scrollbar-width: none;
  }

  .crm-sidebar::-webkit-scrollbar {
    display: none;
  }

  .pipeline-column {
    min-height: auto;
  }

  .tracking {
    padding: 54px 0;
  }

  .phone {
    border-width: 7px;
    border-radius: 32px;
  }

  .gallery-card,
  .gallery-card.tall {
    min-height: 310px;
  }

  .estimate-panel {
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
  }

  .estimate-output strong {
    font-size: 2.25rem;
  }

  .demo-cta {
    margin-bottom: 54px;
    border-radius: 28px;
  }

  .crm-topbar,
  .site-footer {
    display: block;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 0.95rem;
  }

  .brand-mark,
  .mini-logo {
    width: 38px;
    height: 38px;
  }

  .hero-text,
  .section-heading p,
  .tracking-copy p,
  .estimate-panel > div p,
  .demo-cta p {
    font-size: 1rem;
  }

  .workflow-card {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 32px;
  }

  .message {
    width: 90%;
  }
}
