:root {
  --ink: #f8f1d2;
  --muted: #c6bfd5;
  --paper: #181923;
  --panel: #22283a;
  --panel-2: #2f3650;
  --line: #6f7895;
  --gold: #ead46b;
  --blue: #63c7d8;
  --green: #72b36a;
  --red: #b9655b;
  --black: #090a0f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(9, 10, 15, 0.86);
  border-bottom: 1px solid rgba(248, 241, 210, 0.16);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 25px;
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(248, 241, 210, 0.32);
  color: var(--ink);
  background: rgba(24, 25, 35, 0.76);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.button.primary {
  background: var(--gold);
  color: #18120b;
  border-color: var(--gold);
}

.button.secondary {
  background: rgba(99, 199, 216, 0.14);
  border-color: rgba(99, 199, 216, 0.62);
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  align-items: end;
  padding: clamp(38px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(9, 10, 15, 0.94) 0%, rgba(9, 10, 15, 0.72) 42%, rgba(9, 10, 15, 0.24) 100%),
    url("assets/main-house.jpg") center / cover no-repeat;
  border-bottom: 4px solid #4d4666;
}

.hero-inner {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(46px, 10vw, 118px);
}

h2 {
  font-size: clamp(30px, 5vw, 58px);
}

h3 {
  font-size: 22px;
}

.lede {
  max-width: 650px;
  margin: 18px 0 0;
  color: #f1e9c9;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.section.alt {
  background: #111622;
}

.section-head {
  width: min(900px, 100%);
  margin-bottom: 28px;
}

.section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.feature {
  background: var(--panel);
  border: 1px solid rgba(248, 241, 210, 0.18);
}

.feature img {
  width: 100%;
  aspect-ratio: 512 / 423;
  object-fit: cover;
  image-rendering: pixelated;
  border-bottom: 1px solid rgba(248, 241, 210, 0.16);
}

.feature-body {
  padding: 18px;
}

.feature-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
}

.screen-frame {
  padding: 10px;
  background: #030406;
  border: 10px solid #4b4d55;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.screen-frame img {
  image-rendering: pixelated;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat {
  padding: 18px;
  background: var(--panel);
  border-left: 5px solid var(--blue);
}

.stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.bar {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
}

.bar-track {
  height: 18px;
  background: #0b0d15;
  border: 1px solid rgba(248, 241, 210, 0.18);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 5vw, 48px);
  align-items: start;
}

.command-panel,
.contact-panel,
.privacy-panel {
  background: var(--panel);
  border: 1px solid rgba(248, 241, 210, 0.2);
  padding: clamp(20px, 4vw, 34px);
}

.command-groups {
  display: grid;
  gap: 18px;
}

.command-group {
  border: 1px solid rgba(248, 241, 210, 0.18);
  background: #111622;
}

.command-group h3 {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(248, 241, 210, 0.18);
  color: var(--gold);
}

.command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.command-pill {
  padding: 7px 10px;
  background: #06080e;
  border: 1px solid rgba(99, 199, 216, 0.34);
  color: #e7f8ff;
  font-weight: 700;
  font-size: 14px;
}

.text-list {
  columns: 2;
  padding-left: 18px;
  color: var(--muted);
}

.text-list li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(20px, 5vw, 44px);
}

.contact-panel p,
.privacy-panel p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #07080d;
  border-top: 1px solid rgba(248, 241, 210, 0.18);
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .feature-grid,
  .showcase,
  .command-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(9, 10, 15, 0.94) 0%, rgba(9, 10, 15, 0.82) 52%, rgba(9, 10, 15, 0.54) 100%),
      url("assets/main-house.jpg") center / cover no-repeat;
  }

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

  .text-list {
    columns: 1;
  }

  .bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
