:root {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-soft: #f7f5f0;
  --ink: #1f241f;
  --ink-soft: #5b6258;
  --hero-ink: #f8f8f6;
  --olive-900: #1f2a1d;
  --olive-800: #2d3b28;
  --olive-700: #405236;
  --olive-500: #637a53;
  --rust-400: #bf7d4d;
  --water-500: #2d6f9f;
  --water-300: #6ea6d0;
  --line: #d4d2ca;
  --shadow-lg: 0 24px 60px rgba(14, 17, 13, 0.28);
  --shadow-md: 0 12px 28px rgba(19, 24, 19, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1240px, 94vw);
  --font-stack: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: var(--font-stack);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--water-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  padding: 0.7rem 0;
}

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

.brand-logo {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.brand-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: #2e342e;
  padding: 0.35rem 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.74rem 1.16rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--olive-700), var(--olive-500));
}

.btn-primary:hover {
  background: linear-gradient(135deg, #354931, #546c45);
}

.btn-ghost {
  color: var(--hero-ink);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(14, 18, 14, 0.2);
}

.btn-ghost:hover {
  background: rgba(12, 16, 12, 0.42);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.8rem, 5vw, 4rem);
  min-height: min(82vh, 780px);
  display: flex;
  align-items: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Temporary placeholder image. Replace with real Xanzaree Homestead install photos later. */
  background-image: url('/assets/homestead-hq-placeholder-hero-v1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 11, 9, 0.88) 0%,
    rgba(8, 11, 9, 0.66) 36%,
    rgba(8, 11, 9, 0.36) 58%,
    rgba(8, 11, 9, 0.58) 100%
  );
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-copy {
  color: var(--hero-ink);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #ffe2c6;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
  max-width: 16ch;
}

.lead {
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  color: #f0f0ec;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.45rem 0;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #edf0e8;
  margin-bottom: 0;
}

.trust-icon {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0.22rem;
}

.trust-icon svg {
  width: 100%;
  fill: #fff;
}

.hero-visual {
  display: none;
  min-height: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(14, 18, 16, 0.18), rgba(14, 18, 16, 0.48)),
    linear-gradient(180deg, rgba(101, 90, 72, 0.55), rgba(51, 56, 42, 0.8));
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
}

.scene-ground {
  position: absolute;
  inset: auto -5% 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(118, 113, 78, 0.45), rgba(46, 51, 37, 0.92));
}

.post {
  position: absolute;
  bottom: 14%;
  left: 12%;
  width: 24px;
  height: 48%;
  border-radius: 8px;
  background: linear-gradient(180deg, #6b4a34, #3f2f23);
}

.gateway-unit {
  position: absolute;
  left: 8.3%;
  bottom: 42%;
  width: 94px;
  height: 130px;
  border-radius: 12px;
  background: linear-gradient(160deg, #d6ddd6, #b7c1b8);
  border: 2px solid rgba(56, 68, 58, 0.45);
}

.gateway-light {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #5adf8c;
  box-shadow: 0 0 0 4px rgba(90, 223, 140, 0.22);
}

.antenna {
  position: absolute;
  left: 14.2%;
  bottom: 69%;
  width: 4px;
  height: 60px;
  border-radius: 99px;
  background: #222;
}

.antenna::before,
.antenna::after {
  content: '';
  position: absolute;
  inset: -11px auto auto -7px;
  width: 18px;
  height: 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: rotate(-45deg);
}

.antenna::after {
  inset: -17px auto auto -11px;
  width: 26px;
  height: 26px;
  opacity: 0.6;
}

.pipeline {
  position: absolute;
  left: 18%;
  right: 23%;
  bottom: 20%;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e5f87, #4fa1d2);
  box-shadow: inset 0 0 0 2px rgba(234, 247, 255, 0.45);
}

.meter {
  position: absolute;
  right: 37%;
  top: -16px;
  width: 58px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(180deg, #164b75, #143752);
  border: 2px solid #8abbe1;
}

.tank-silhouette {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: 182px;
  height: 230px;
  border-radius: 90px 90px 18px 18px;
  background: linear-gradient(180deg, #abb2ad, #879089);
  box-shadow: inset 0 -14px 18px rgba(37, 42, 39, 0.34);
}

.dashboard-card {
  position: absolute;
  top: 7%;
  right: 6%;
  width: min(320px, 68%);
  border-radius: 14px;
  background: rgba(15, 20, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eff4ef;
  padding: 0.9rem;
  backdrop-filter: blur(4px);
}

.dash-title {
  margin-bottom: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dash-list,
.phone-mockup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-list li,
.phone-mockup li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.2rem 0;
}

.dash-metrics {
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  padding-top: 0.55rem;
}

.dash-metrics p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
}

.mini-chart {
  margin-top: 0.68rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0.3rem;
  height: 46px;
}

.mini-chart span {
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--water-300), var(--water-500));
}

.feature-strip {
  background: linear-gradient(135deg, #2d352b 0%, #1e2520 100%);
  color: #eff4ea;
  padding: 1.4rem 0;
}

.feature-grid {
  display: grid;
  gap: 0.8rem;
}

.feature-item {
  border: 1px solid rgba(202, 218, 193, 0.2);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(248, 255, 246, 0.03);
}

.feature-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
}

.feature-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: #d5ddd1;
  font-size: 0.93rem;
}

.section {
  padding: clamp(2.5rem, 5vw, 4.4rem) 0;
}

.section-alt {
  background: #eceae3;
}

.section-product {
  background: var(--surface-soft);
}

.product-layout {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
}

.product-rig,
.product-copy,
.phone-mockup {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.product-rig {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f3e8, #ece5d4 42%, #ddd8c6);
}

.rig-bench {
  position: absolute;
  inset: auto 0 18% 0;
  height: 16px;
  background: linear-gradient(90deg, #7a5c45, #9b795f);
}

.rig-gateway {
  position: absolute;
  left: 13%;
  bottom: 24%;
  width: 100px;
  height: 130px;
  border-radius: 12px;
  background: linear-gradient(180deg, #e2e7e1, #c8d0c9);
  border: 2px solid #7f8f82;
}

.rig-meter {
  position: absolute;
  left: 40%;
  bottom: 24%;
  width: 150px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b628c, #5badd8);
}

.rig-meter::before {
  content: '';
  position: absolute;
  right: 28%;
  top: -13px;
  width: 46px;
  height: 56px;
  border-radius: 12px;
  background: #1f557f;
  border: 2px solid #90c2e4;
}

.rig-puck {
  position: absolute;
  right: 13%;
  bottom: 30%;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fdffff, #a5b0aa 65%);
  border: 2px solid #7f8c84;
}

.product-copy {
  padding: 1.2rem;
}

.product-copy h2,
#how-it-works h2,
#pricing h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.4rem);
}

.tick-list {
  padding-left: 1.15rem;
  margin-bottom: 1.1rem;
}

.tick-list li {
  margin-bottom: 0.42rem;
}

.trial-callout {
  background: #eef4e8;
  border: 1px solid #cfddbf;
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0;
}

.phone-mockup {
  background: linear-gradient(180deg, #1d2521, #131814);
  color: #e7ede8;
  padding: 1rem;
}

.phone-title {
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.steps-row {
  display: grid;
  gap: 0.9rem;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
}

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  background: #e8efe4;
  color: #33452f;
  font-weight: 700;
}

.pricing-leads-wrap {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.pricing-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.2rem;
}

.pricing-grid {
  display: grid;
  gap: 0.8rem;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
}

.price {
  color: #33492d;
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.featured {
  border: 2px solid #6a8858;
}

.pricing-note {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

form {
  margin-top: 0.3rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid #afb2ab;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.full-width {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#form-status {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  font-weight: 600;
}

#form-status.success {
  color: #225f36;
}

#form-status.error {
  color: #8f2f12;
}

.site-footer {
  background: linear-gradient(180deg, #1a211c, #111712);
  color: #e8ece6;
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.1rem;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.32rem;
}

.site-footer a {
  text-decoration: none;
  color: #d9e2d3;
}

.social-placeholders {
  display: flex;
  gap: 0.45rem;
}

.social-placeholders span {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-block;
  background: rgba(237, 243, 234, 0.2);
}

.footer-bottom {
  margin-top: 1.35rem;
  border-top: 1px solid rgba(226, 235, 219, 0.16);
  padding: 0.9rem 0 1.5rem;
  color: #c7d1c2;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .phone-mockup {
    grid-column: span 2;
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  }
}

@media (min-width: 980px) {
  .steps-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -0.66rem;
    top: 46%;
    color: #8c9a88;
    font-size: 1.2rem;
    pointer-events: none;
  }

  .product-layout {
    grid-template-columns: 1.08fr 1.1fr 0.72fr;
  }

  .phone-mockup {
    grid-column: auto;
  }

  .pricing-leads-wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 780px) {
  .header-inner {
    justify-content: center;
  }

  .main-nav {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .nav-list {
    justify-content: center;
  }

  .header-cta {
    margin-inline: auto;
  }

  .dashboard-card {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }

  .hero {
    min-height: 74vh;
  }

  .hero::after {
    background: linear-gradient(
      100deg,
      rgba(8, 11, 9, 0.92) 0%,
      rgba(8, 11, 9, 0.8) 48%,
      rgba(8, 11, 9, 0.7) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
