:root {
  color-scheme: dark;
  --bg: #07090a;
  --surface: #101516;
  --surface-2: #141b1d;
  --line: #2a3638;
  --text: #eff7f4;
  --muted: #a5b4b1;
  --accent: #2aa889;
  --accent-2: #9fd8f0;
  --cool: #7fb7c6;
  --ok: #91d8a8;
  --error: #ff9d8f;
  --shadow: rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 9, 10, .86);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #04100d;
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small, .eyebrow { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
nav { display: flex; justify-content: center; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
nav a:hover { color: var(--text); }

.nav-login, .button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #04100d; }
.button.ghost { background: transparent; }
.button.small { min-height: 34px; padding: 0 12px; }
.button:hover, .nav-login:hover { filter: brightness(1.08); }

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,9,10,.96) 0%, rgba(7,9,10,.68) 42%, rgba(7,9,10,.22) 100%),
    radial-gradient(circle at 82% 28%, rgba(42,168,137,.28), transparent 34%),
    linear-gradient(140deg, #0b1518 0%, #17302d 52%, #07090a 100%);
}
.hero-copy {
  position: relative;
  max-width: 760px;
  z-index: 1;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(56px, 10vw, 126px); line-height: .9; margin-bottom: 24px; letter-spacing: 0; }
h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; letter-spacing: 0; }
h3 { font-size: 20px; margin-bottom: 10px; }
.lede { max-width: 640px; color: #d5dfdc; font-size: clamp(19px, 2.2vw, 27px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.product-render {
  position: absolute;
  right: clamp(28px, 10vw, 150px);
  top: 51%;
  width: min(38vw, 520px);
  min-width: 300px;
  height: 500px;
  transform: translateY(-46%);
}
.tower-body {
  position: absolute;
  left: 28%;
  top: 0;
  width: 44%;
  height: 430px;
  background: linear-gradient(160deg, #f0f4f1, #9aa9a8 62%, #263333);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 40px 100px rgba(0,0,0,.52);
}
.tower-display { position: absolute; left: 26%; top: 34px; width: 48%; height: 8px; background: var(--accent); }
.intake-grid {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.intake-grid span { height: 12px; background: rgba(0,0,0,.24); }
.air-column {
  position: absolute;
  top: 58px;
  bottom: 52px;
  width: 120px;
  border-top: 1px solid rgba(159,216,240,.38);
  border-bottom: 1px solid rgba(159,216,240,.24);
  background: linear-gradient(180deg, rgba(159,216,240,.22), transparent);
}
.air-left { left: 4%; transform: skewY(-8deg); }
.air-right { right: 4%; transform: skewY(8deg); }
.floor-shadow { position: absolute; bottom: 0; right: 12%; width: 76%; height: 34px; background: rgba(0,0,0,.55); filter: blur(22px); }

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #0c1011;
}
.metric-band div { padding: 26px clamp(18px, 4vw, 54px); border-right: 1px solid var(--line); }
.metric-band strong { display: block; font-size: 30px; }
.metric-band span { color: var(--muted); }

.section {
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.two-column, .catalog-section, .admin-section, .contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}
.section p { color: var(--muted); max-width: 720px; }
.cards, .tech-grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card, .tech-grid article, .request-form, .admin-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(0,0,0,.18);
}
.card { padding: 22px; }
.card-code { display: inline-block; color: var(--accent-2); font-weight: 900; margin-bottom: 18px; }
.tech-section { background: #0a0f10; }
.section-heading { margin-bottom: 34px; }
.tech-grid { grid-template-columns: repeat(4, 1fr); }
.tech-grid article { padding: 24px; }

.request-form { display: grid; gap: 14px; padding: 22px; }
label { display: grid; gap: 7px; color: #d8e3df; font-weight: 760; }
input, textarea, select {
  width: 100%;
  border: 1px solid #2e3b3d;
  border-radius: 0;
  background: #070a0b;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
}
textarea { resize: vertical; }
.form-status { min-height: 22px; margin: 0; }
.form-status[data-tone="ok"] { color: var(--ok); }
.form-status[data-tone="error"] { color: var(--error); }

.logged-in { display: none; }
body[data-authenticated="true"] .logged-in { display: block; }
body[data-authenticated="true"] .logged-out { display: none; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 580px; }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
th { color: var(--text); }
address { display: grid; gap: 8px; color: var(--muted); font-style: normal; }
address a { color: var(--text); }

dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0;
}
dialog::backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(6px); }
.login-panel { position: relative; display: grid; gap: 14px; padding: 28px; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .product-render { opacity: .38; right: -96px; min-width: 420px; }
  .metric-band, .cards, .tech-grid, .two-column, .catalog-section, .admin-section, .contact-section { grid-template-columns: 1fr; }
  .metric-band div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  h1 { font-size: 54px; }
  .hero { min-height: 78svh; }
  .product-render { right: -180px; top: 57%; }
  .site-header { padding-inline: 14px; }
  .brand small { display: none; }
}
