:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #edf3f6;
  background: #0e1418;
  --surface: #151d22;
  --surface-raised: #1b252c;
  --input: #0b1115;
  --line: #3c4a54;
  --muted: #a9bbc6;
  --accent: #37b8d4;
  --accent-deep: #117d98;
  --green: #6bd39b;
  --red: #ff8991;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; background: #0e1418; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
a { color: #7cd7e9; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 36px; margin-bottom: 12px; }
h2 { font-size: 20px; }
.eyebrow { margin-bottom: 6px; color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.lede { max-width: 760px; color: #c4d2d9; font-size: 17px; line-height: 1.55; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.error { min-height: 20px; margin: 8px 0 0; color: var(--red); }

.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  background: #172027;
  border-bottom: 1px solid #33414a;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { color: #f2f7f9; font-size: 19px; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 4px; }
nav a { padding: 10px 13px; color: #b9c8d0; text-decoration: none; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: #fff; border-bottom-color: var(--accent); }

.sales-main { overflow: hidden; }
.sales-hero {
  height: min(720px, calc(100vh - 116px));
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #0b1013;
  border-bottom: 1px solid #40505a;
}
.sales-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; z-index: -2; }
.sales-hero-overlay { position: absolute; inset: 0; z-index: -1; background: rgba(5, 11, 14, .72); }
.sales-hero-content { width: min(760px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - 1380px) / 2)); padding: 44px 0; }
.sales-hero h1 { max-width: 680px; margin-bottom: 12px; font-size: 58px; line-height: 1.02; }
.hero-offer { max-width: 720px; margin-bottom: 14px; color: #f4f8fa; font-size: 25px; line-height: 1.28; font-weight: 650; }
.sales-hero .lede { max-width: 690px; color: #d5e0e5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-actions .button-link { min-width: 172px; min-height: 44px; }
.hero-actions .secondary { background: rgba(12, 20, 25, .82); }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 13px; margin: 25px 0 0; color: #c6d5db; }
.hero-price strong { color: #8ce0f0; font-size: 24px; }
.hero-price span:last-child { padding-left: 13px; border-left: 1px solid #60717a; }

.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #172027; border-bottom: 1px solid #394851; }
.value-strip div { min-height: 96px; padding: 21px clamp(18px, 3vw, 42px); border-right: 1px solid #394851; }
.value-strip div:last-child { border-right: 0; }
.value-strip strong, .value-strip span { display: block; }
.value-strip strong { margin-bottom: 5px; color: #f0f5f7; }
.value-strip span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.sales-section { max-width: 1380px; margin: 0 auto; padding: 86px 38px; }
#product-tour, #build-license { scroll-margin-top: 82px; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2, .ownership-band h2, .purchase-heading h2 { margin-bottom: 12px; font-size: 34px; line-height: 1.15; }
.section-heading > p:last-child, .purchase-heading > p:last-child { color: #b7c7cf; font-size: 16px; line-height: 1.6; }
.compact-heading { margin-bottom: 28px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: #35434c; border: 1px solid #46545d; }
.capability-grid article { min-height: 365px; padding: 28px 30px 30px; background: #182127; scroll-margin-top: 90px; }
.capability-grid h3 { margin: 17px 0 9px; font-size: 18px; }
.feature-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); line-height: 1.4; }
.feature-list li { position: relative; padding-left: 18px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.section-number { color: var(--accent); font: 700 12px Consolas, monospace; }

.product-gallery-section { padding-top: 40px; }
.product-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.product-gallery.has-additional { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-gallery.has-additional .gallery-featured { grid-column: 1 / -1; }
.product-gallery figure { margin: 0; overflow: hidden; background: #12191d; border: 1px solid #45545d; border-radius: 5px; }
.product-gallery img { display: block; width: 100%; aspect-ratio: 16 / 8.7; object-fit: cover; object-position: left top; }
.product-gallery figcaption { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 17px 20px; border-top: 1px solid #45545d; }
.product-gallery figcaption span { color: var(--muted); line-height: 1.5; }
.product-gallery .gallery-secondary figcaption { grid-template-columns: 1fr; gap: 6px; }

.deployment-band { padding: 78px max(38px, calc((100vw - 1304px) / 2)); background: #1b252c; border-top: 1px solid #40505a; border-bottom: 1px solid #40505a; }
.deployment-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #56656e; }
.deployment-grid article { padding: 27px 30px 0 0; }
.deployment-grid article + article { padding-left: 30px; border-left: 1px solid #44535c; }
.deployment-grid h3 { margin-bottom: 9px; font-size: 19px; }
.deployment-grid p { color: #b8c8cf; line-height: 1.6; }

.ownership-band { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 70px; max-width: 1380px; margin: 0 auto; padding: 84px 38px; border-bottom: 1px solid #34424b; }
.ownership-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.ownership-copy p { color: #c1d0d7; line-height: 1.65; }

.faq-section { padding-top: 70px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; border-top: 1px solid #45545d; }
.faq-grid details { padding: 18px 0; border-bottom: 1px solid #35434c; }
.faq-grid summary { color: #eef4f6; font-weight: 650; cursor: pointer; }
.faq-grid details p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }

.purchase-section { padding: 82px max(34px, calc((100vw - 1304px) / 2)) 92px; background: #182127; border-top: 1px solid #40505a; }
.purchase-heading { max-width: 760px; margin-bottom: 32px; }
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; align-items: start; }
.purchase-form { padding: 24px 26px 28px; background: #11181c; border: 1px solid #45545d; border-radius: 5px; }
.purchase-form fieldset:first-child { margin-top: 0; }
.checkout-summary { position: sticky; top: 88px; padding: 23px; background: #0f161a; border: 1px solid #53636c; border-radius: 5px; }
.checkout-summary h3 { margin-bottom: 4px; font-size: 22px; }
.summary-includes { display: grid; gap: 8px; margin: 20px 0 0; padding-left: 20px; color: #cad7dc; line-height: 1.45; }
.summary-includes li::marker { color: var(--green); }
.payment-note { margin: 9px 0 0; }
.tax-note { margin: 10px 0 0; }
label { display: grid; gap: 6px; color: #c7d5dc; font-size: 13px; }
.field-note { color: var(--muted); font-size: 12px; font-weight: 400; }
input, select, textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #f4f8fa;
  background: var(--input);
  border: 1px solid #52616b;
  border-radius: 3px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #31a9c4; outline-offset: 1px; }
.form-grid, .capacity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-two { grid-column: span 2; }
fieldset { display: grid; gap: 12px; margin: 24px 0 0; padding: 17px; border: 1px solid #3b4952; }
legend { padding: 0 8px; color: #e8f0f3; font-weight: 650; }
button, .button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  color: #eef4f6;
  background: #27323a;
  border: 1px solid #566772;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button-link:hover { background: #33414a; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--accent-deep); border-color: #41bcd6; }
.primary:hover { background: #1890aa; }
.command { width: 100%; margin-top: 14px; font-weight: 650; }
.terms-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; }
.terms-line input { width: 17px; min-height: 17px; margin-top: 1px; }
.legal-consent { background: #11191e; }
.price-summary { display: grid; gap: 8px; margin-top: 24px; padding: 17px; background: #10171b; border: 1px solid #46545d; }
.price-summary div { display: flex; justify-content: space-between; gap: 14px; }
.price-summary .total { margin-top: 4px; padding-top: 12px; border-top: 1px solid #44525b; font-size: 18px; }
.price-summary .total strong { color: #95e7f6; }
.price-summary.compact { margin-top: 18px; }
.mobile-install-main { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 42px 18px 70px; }
.mobile-install-card { width: min(720px, 100%); padding: 30px; background: #11181c; border: 1px solid #45545d; border-top: 3px solid var(--accent); border-radius: 5px; }
.mobile-browser-warning { margin: 22px 0; padding: 16px 18px; color: #ffe1a6; background: #332714; border: 1px solid #9e7937; }
.mobile-browser-warning p { margin: 8px 0 0; }
.mobile-install-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.mobile-install-steps { display: grid; gap: 10px; padding-left: 24px; color: #cad7dc; line-height: 1.5; }
.mobile-manual-copy { margin: 14px 0; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 22px 34px; color: var(--muted); border-top: 1px solid #34414a; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }

.portal-main { max-width: 1300px; margin: 0 auto; padding: 52px 34px 70px; }
.portal-login { width: min(510px, 100%); margin: 7vh auto 0; padding-top: 24px; border-top: 3px solid var(--accent); }
.portal-login form { display: grid; gap: 13px; margin-top: 28px; }
.recovery-dialog { width: min(500px, calc(100% - 32px)); padding: 0; color: #edf3f6; background: var(--surface-raised); border: 1px solid #53636c; border-radius: 5px; }
.recovery-dialog::backdrop { background: rgba(3, 7, 9, .78); }
.recovery-dialog form { display: grid; gap: 14px; padding: 25px; }
.recovery-dialog h2 { margin-bottom: 0; font-size: 24px; }
.recovery-question { margin: 0; padding: 14px 16px; color: #f0f6f8; background: #10181d; border-left: 3px solid var(--accent); line-height: 1.5; }
.trust-device-line { display: flex; align-items: center; gap: 9px; color: #e4edf1; }
.trust-device-line input { width: 18px; min-height: 18px; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.portal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.status-band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border: 1px solid var(--line); background: var(--surface); }
.status-band div { padding: 17px; border-right: 1px solid #33414a; }
.status-band div:last-child { border-right: 0; }
.status-band span { display: block; color: var(--muted); font-size: 12px; }
.status-band strong { display: block; margin-top: 4px; font-size: 18px; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portal-section { padding: 21px; background: var(--surface); border: 1px solid #40505a; border-radius: 5px; }
.portal-section.span-two { grid-column: span 2; }
.portal-section output { display: block; min-height: 48px; padding: 13px; color: #9ae5b9; background: #0d1511; border: 1px solid #3d7450; font: 700 15px Consolas, monospace; overflow-wrap: anywhere; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.device-list { display: grid; gap: 8px; }
.device-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 11px; background: #10181d; border: 1px solid #35434c; }
.device-row span { display: block; color: var(--muted); font-size: 12px; }
.device-row button { color: #ffb2b7; border-color: #8c424a; }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 14px; align-items: end; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.profile-grid .span-two { grid-column: span 2; }
.profile-grid input[readonly] { color: #91a0a8; background: #11171b; cursor: not-allowed; }
.support-grid { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: end; }
.support-grid .span-two { grid-column: span 2; }
.support-result { min-height: 20px; margin: 0; color: var(--green); align-self: center; }

.result-main { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px; }
.result-panel { width: min(680px, 100%); padding-top: 26px; border-top: 3px solid var(--accent); }
.order-summary { margin: 24px 0; border-top: 1px solid var(--line); }
.order-summary div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #303d45; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; }
.legal-main { max-width: 900px; margin: 0 auto; padding: 55px 34px 80px; }
.legal-main article { line-height: 1.65; }
.legal-main h2 { margin-top: 32px; }
.legal-main h3 { margin-top: 24px; }
.legal-meta { padding: 14px 16px; color: var(--muted); background: #11191e; border-left: 3px solid var(--accent); }
.legal-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.legal-nav a { display: block; padding: 15px; color: #eaf2f5; background: var(--surface); border: 1px solid #41515b; text-decoration: none; }
.legal-nav a:hover { border-color: var(--accent); }
.legal-note { padding: 14px 16px; background: #172027; border: 1px solid #43535d; }
.legal-main table { width: 100%; border-collapse: collapse; }
.legal-main th, .legal-main td { padding: 10px; text-align: left; vertical-align: top; border: 1px solid #40505a; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; padding: 16px 20px; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
  .legal-nav { grid-template-columns: 1fr; }
  .sales-hero { height: min(650px, calc(100svh - 118px)); min-height: 480px; }
  .sales-hero-content { margin-left: 30px; }
  .sales-hero h1 { font-size: 48px; }
  .hero-offer { font-size: 22px; }
  .value-strip { grid-template-columns: 1fr 1fr; }
  .value-strip div:nth-child(2) { border-right: 0; }
  .value-strip div:nth-child(-n+2) { border-bottom: 1px solid #394851; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid article { min-height: 350px; padding: 26px 24px 28px; }
  .deployment-grid { grid-template-columns: 1fr; }
  .deployment-grid article, .deployment-grid article + article { padding: 23px 0; border-left: 0; border-bottom: 1px solid #44535c; }
  .deployment-grid article:last-child { border-bottom: 0; }
  .ownership-band { grid-template-columns: 1fr; gap: 25px; }
  .purchase-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .status-band { grid-template-columns: 1fr 1fr; }
  .status-band div:nth-child(2) { border-right: 0; }
  .status-band div:nth-child(-n+2) { border-bottom: 1px solid #33414a; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-section.span-two { grid-column: auto; }
  .addon-grid { grid-template-columns: 1fr 1fr; }
  .addon-grid .terms-line { grid-column: span 2; }
}

@media (max-width: 560px) {
  #product-tour, #build-license { scroll-margin-top: 172px; }
  .site-header { display: block; }
  nav { justify-content: flex-start; margin-top: 10px; }
  .sales-hero { height: calc(100svh - 126px); min-height: 440px; max-height: 600px; }
  .sales-hero-content { width: calc(100% - 36px); margin-left: 18px; padding: 28px 0; }
  .sales-hero h1 { font-size: 38px; }
  .hero-offer { font-size: 19px; }
  .sales-hero .lede { font-size: 15px; line-height: 1.45; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .button-link { width: 100%; }
  .hero-price { margin-top: 17px; }
  .hero-price span:last-child { width: 100%; padding-left: 0; border-left: 0; }
  .value-strip { grid-template-columns: 1fr; }
  .value-strip div { min-height: auto; border-right: 0; border-bottom: 1px solid #394851; }
  .value-strip div:last-child { border-bottom: 0; }
  .sales-section, .ownership-band { padding: 58px 19px; }
  .section-heading h2, .ownership-band h2, .purchase-heading h2 { font-size: 28px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: auto; padding: 24px 20px 26px; }
  .product-gallery.has-additional { grid-template-columns: 1fr; }
  .product-gallery.has-additional .gallery-featured { grid-column: auto; }
  .product-gallery figcaption { grid-template-columns: 1fr; gap: 7px; }
  .deployment-band { padding: 58px 19px; }
  .ownership-copy, .faq-grid { grid-template-columns: 1fr; }
  .purchase-section { padding: 58px 14px 70px; }
  .purchase-form { padding: 18px 14px 22px; }
  .checkout-summary { padding: 19px 15px; }
  .form-grid, .capacity-grid, .addon-grid, .profile-grid, .support-grid { grid-template-columns: 1fr; }
  .span-two, .addon-grid .terms-line, .profile-grid .span-two, .support-grid .span-two { grid-column: auto; }
  .portal-main { padding: 34px 18px 60px; }
  .portal-heading { display: block; }
  .status-band { grid-template-columns: 1fr; }
  .status-band div { border-right: 0; border-bottom: 1px solid #33414a; }
  .status-band div:last-child { border-bottom: 0; }
  .device-row { grid-template-columns: 1fr; }
}
