:root {
  --bg: #071016;
  --bg-2: #0b1821;
  --panel: #102534;
  --panel-2: #142d3d;
  --line: rgba(137, 176, 191, 0.28);
  --text: #f4f8f8;
  --muted: #a9bbc2;
  --accent: #f5a623;
  --accent-2: #4dd0e1;
  --green: #7fd67d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 74% 8%, rgba(245, 166, 35, 0.18), transparent 34%),
    radial-gradient(circle at 9% 18%, rgba(77, 208, 225, 0.12), transparent 32%),
    linear-gradient(180deg, #071016 0%, #0b1720 48%, #061015 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 16, 22, 0.82);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 166, 35, 0.7);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(245, 166, 35, 0.22), rgba(77, 208, 225, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark span,
.brand-mark::before,
.brand-mark::after {
  position: absolute;
  display: block;
  content: "";
  background: var(--accent);
}

.brand-mark::before {
  left: 9px;
  top: 22px;
  width: 24px;
  height: 3px;
  transform: rotate(-34deg);
}

.brand-mark::after {
  left: 9px;
  top: 22px;
  width: 24px;
  height: 3px;
  transform: rotate(34deg);
}

.brand-mark span {
  left: 20px;
  top: 12px;
  width: 3px;
  height: 21px;
  background: var(--accent-2);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy strong span {
  color: var(--accent);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.header-cta,
.button.primary {
  color: #1a1002;
  background: linear-gradient(180deg, #ffc65a 0%, #f5a623 100%);
  box-shadow: 0 16px 34px rgba(245, 166, 35, 0.24);
}

.button.secondary {
  color: var(--text);
  border: 1px solid rgba(77, 208, 225, 0.5);
  background: rgba(77, 208, 225, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  min-height: calc(100vh - 76px);
  padding: 42px clamp(18px, 5vw, 72px) 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 11ch;
  font-size: clamp(3.1rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.lead {
  max-width: 720px;
  color: #c4d3d8;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0;
}

.hero-metrics div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 37, 52, 0.74);
}

.hero-metrics dt {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.roof-command {
  position: relative;
  min-height: 680px;
  border: 1px solid rgba(245, 166, 35, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, rgba(16, 37, 52, 0.92), rgba(6, 18, 27, 0.96));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.roof-map {
  position: absolute;
  left: 6%;
  top: 4%;
  right: 6%;
  height: 390px;
  border: 1px solid rgba(77, 208, 225, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 44%, rgba(77, 208, 225, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 28, 39, 0.34), rgba(3, 10, 14, 0.2));
  overflow: hidden;
}

.scan-hud {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(77, 208, 225, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  color: #dffbff;
  background: rgba(7, 16, 22, 0.78);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scan-hud strong {
  color: var(--green);
}

.house-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sky-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(77, 208, 225, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(77, 208, 225, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 52%, black, transparent 70%);
}

.digital-house {
  position: absolute;
  left: 50%;
  top: 51%;
  width: min(500px, 84%);
  height: 280px;
  transform: translate(-50%, -50%);
}

.house-body {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 24px;
  height: 112px;
  border: 1px solid rgba(77, 208, 225, 0.55);
  background:
    linear-gradient(90deg, rgba(77, 208, 225, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(77, 208, 225, 0.06) 1px, transparent 1px),
    rgba(16, 37, 52, 0.74);
  background-size: 22px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 26px 44px rgba(0, 0, 0, 0.24);
}

.garage {
  display: none;
  position: absolute;
  right: 3%;
  bottom: 22px;
  width: 28%;
  height: 92px;
  border: 1px solid rgba(77, 208, 225, 0.5);
  background: rgba(16, 37, 52, 0.62);
}

.garage span {
  display: block;
  height: 28px;
  border-bottom: 1px solid rgba(77, 208, 225, 0.24);
}

.house-roof {
  position: absolute;
  top: 40px;
  height: 140px;
  border: 2px solid rgba(245, 166, 35, 0.78);
  background:
    repeating-linear-gradient(90deg, rgba(245, 166, 35, 0.2) 0 2px, transparent 2px 22px),
    linear-gradient(145deg, rgba(245, 166, 35, 0.22), rgba(77, 208, 225, 0.08));
  box-shadow: 0 0 26px rgba(245, 166, 35, 0.16);
  transform: none;
}

.roof-left {
  left: 10%;
  width: 40%;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.roof-right {
  right: 10%;
  width: 40%;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.roof-face {
  position: absolute;
  border: 2px solid rgba(245, 166, 35, 0.65);
  background: rgba(245, 166, 35, 0.1);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.roof-front {
  left: 18%;
  top: 40px;
  width: 64%;
  height: 140px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(77, 208, 225, 0.58) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    rgba(245, 166, 35, 0.08);
}

.roof-garage {
  display: none;
}

.window,
.door {
  position: absolute;
  border: 1px solid rgba(77, 208, 225, 0.52);
  background: rgba(77, 208, 225, 0.14);
}

.window {
  top: 38px;
  width: 42px;
  height: 34px;
  box-shadow: inset 0 0 12px rgba(77, 208, 225, 0.18);
}

.window-a {
  left: 15%;
}

.window-b {
  right: 15%;
}

.door {
  left: calc(50% - 20px);
  bottom: 0;
  width: 40px;
  height: 58px;
}

.eave,
.ridge {
  position: absolute;
  height: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(77, 208, 225, 0.9);
}

.eave-left {
  left: 9%;
  top: 180px;
  width: 76%;
}

.eave-right {
  display: none;
}

.ridge-main {
  left: 49.5%;
  top: 42px;
  width: 2px;
  height: 138px;
}

.ridge-garage {
  display: none;
}

.measure {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid rgba(77, 208, 225, 0.35);
  border-radius: 999px;
  color: #dbfbff;
  background: rgba(7, 16, 22, 0.8);
  font-size: 0.74rem;
  font-weight: 800;
}

.measure-one {
  left: 15%;
  top: 29%;
}

.measure-two {
  right: 11%;
  bottom: 27%;
}

.measure-three {
  left: 57%;
  top: 21%;
}

.ai-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(245, 166, 35, 0.12), 0 0 26px rgba(245, 166, 35, 0.9);
}

.node-a {
  left: 36%;
  top: 39%;
}

.node-b {
  right: 31%;
  top: 36%;
}

.node-c {
  right: 20%;
  bottom: 31%;
}

.scan-line {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(77, 208, 225, 0.95), rgba(245, 166, 35, 0.72), transparent);
  box-shadow: 0 0 24px rgba(77, 208, 225, 0.9);
  animation: scan 4.5s linear infinite;
}

.scan-glow {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.16), transparent);
  animation: scan 4.5s linear infinite;
}

.command-panel {
  position: absolute;
  right: 6%;
  top: 438px;
  width: min(390px, 88%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(7, 16, 22, 0.88);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.panel-top,
.line-items {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
}

.panel-top {
  color: var(--muted);
}

.panel-top strong {
  color: var(--green);
}

.estimate-total {
  margin: 12px 0 14px;
  color: var(--accent);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.line-items span {
  color: var(--muted);
}

.line-items b {
  color: var(--text);
}

.schedule-strip {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.schedule-strip span {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dcebed;
  background: rgba(16, 37, 52, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 90px clamp(18px, 5vw, 72px);
}

.platform-band {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.section-heading {
  max-width: 860px;
}

.section-heading p,
.estimate-copy p,
.ops-copy p,
.capability-list p,
.workflow-rail p,
.ai-grid p {
  color: var(--muted);
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.workflow-rail article,
.capability-list article,
.ai-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 45, 61, 0.9), rgba(12, 27, 38, 0.88));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.workflow-rail span,
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #1a1002;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.estimate-grid,
.ops-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.capability-list,
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ops-board {
  min-height: 460px;
  padding: 22px;
  border: 1px solid rgba(77, 208, 225, 0.22);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(13, 32, 44, 0.95), rgba(6, 16, 22, 0.98));
  box-shadow: var(--shadow);
}

.ops-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
}

.ops-header b {
  color: var(--accent);
}

.ops-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ops-columns div {
  min-height: 360px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ops-columns p {
  min-height: 58px;
  padding: 12px;
  border-radius: 7px;
  color: #d9e8ec;
  background: rgba(245, 166, 35, 0.1);
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #ccdade;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
}

.ai-section {
  background:
    linear-gradient(90deg, rgba(245, 166, 35, 0.08), transparent 28%, rgba(77, 208, 225, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.ai-grid {
  margin-top: 34px;
}

.ai-grid article {
  min-height: 210px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  background: #060e13;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer strong {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scan {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    transform: translateX(720px);
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .hero,
  .estimate-grid,
  .ops-section {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 13ch;
  }

  .roof-command {
    min-height: 660px;
  }

  .workflow-rail,
  .capability-list,
  .ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-metrics,
  .workflow-rail,
  .capability-list,
  .ai-grid,
  .ops-columns,
  .schedule-strip {
    grid-template-columns: 1fr;
  }

  .roof-command {
    min-height: 650px;
  }

  .command-panel {
    left: 6%;
    right: 6%;
    top: 430px;
    width: auto;
  }

  .schedule-strip {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

.signin-body {
  min-height: 100vh;
}

.signin-main {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: start center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.signin-card {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.1), transparent 34%),
    rgba(7, 16, 22, 0.9);
  box-shadow: var(--shadow);
}

.signin-card h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.signin-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(6, 18, 27, 0.82);
  font: inherit;
}

.auth-form input:focus {
  border-color: rgba(77, 208, 225, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 208, 225, 0.12);
}

.auth-form .button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-error {
  min-height: 1.5em;
  margin: 0;
  color: #ffcf6e;
  font-weight: 900;
}
