:root {
  color-scheme: light;
  --bg: #f7faff;
  --ink: #121318;
  --muted: #626b7a;
  --soft: #334155;
  --line: rgba(4, 82, 148, 0.13);
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --blue: #045294;
  --electric: #315bff;
  --sky: #63b3ff;
  --pale: #eef5ff;
  --ice: #f9fcff;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(49, 91, 255, 0.12), transparent 30%),
    radial-gradient(circle at 18% 34%, rgba(99, 179, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  color: var(--ink);
  font-family:
    "Segoe UI Variable Text", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
}

#webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  pointer-events: none;
}

.screen-vignette,
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.screen-vignette {
  background:
    radial-gradient(circle at 73% 48%, rgba(54, 110, 255, 0.16), transparent 36%),
    radial-gradient(circle at 42% 78%, rgba(99, 179, 255, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.52) 38%, rgba(255, 255, 255, 0.16) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.1) 34%, rgba(247, 250, 255, 0.84) 100%);
}

.grain {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(4, 82, 148, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 82, 148, 0.08) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, black, transparent 92%);
}

.hud {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(1220px, calc(100% - 40px));
  min-height: 64px;
  transform: translateX(-50%);
  grid-template-columns: max-content 1fr max-content;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 10px;
  box-shadow: 0 18px 60px rgba(4, 82, 148, 0.09);
  backdrop-filter: blur(22px);
}

.brand,
.nav,
.scene-actions,
.product-dock,
.segmented,
.calc-tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  padding-left: 8px;
}

.brand-logo {
  width: 148px;
  height: auto;
  display: block;
}

.concept-badge {
  border: 1px solid rgba(49, 91, 255, 0.22);
  background: #eef3ff;
  color: var(--electric);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav {
  justify-self: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.78);
  padding: 4px;
}

.nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  padding: 0 16px;
  color: #263142;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #ffffff;
  color: var(--electric);
  outline: 0;
  box-shadow: 0 8px 24px rgba(4, 82, 148, 0.09);
}

.nav-cta,
.scene-actions a,
.quote-cta,
.lead-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 91, 255, 0.12);
  border-radius: 16px;
  background: var(--electric);
  color: #ffffff;
  padding: 0 20px;
  box-shadow: 0 16px 32px rgba(49, 91, 255, 0.18);
  font-weight: 760;
}

.mega {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 19;
  display: grid;
  width: min(1040px, calc(100% - 40px));
  transform: translate(-50%, -12px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.12);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.mega.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.mega div {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 20px;
  backdrop-filter: blur(22px);
}

.mega p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.mega a {
  color: var(--muted);
  font-size: 14px;
}

.mega a:hover {
  color: var(--electric);
}

.story {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.scene-panel {
  position: absolute;
  top: 50%;
  left: max(30px, calc((100vw - 1220px) / 2));
  width: min(690px, calc(100vw - 52px));
  min-width: 0;
  transform: translate3d(0, -42%, 0);
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.scene-panel.is-active {
  opacity: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  border: 1px solid rgba(49, 91, 255, 0.24);
  border-radius: 999px;
  background: rgba(238, 243, 255, 0.86);
  color: var(--electric);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1,
.scene-panel h2,
.contact-drawer h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

h1::first-letter {
  color: inherit;
}

.accent-word {
  color: var(--electric);
}

.scene-panel h2,
.contact-drawer h2 {
  font-size: 43px;
}

.scene-panel p,
.contact-drawer p {
  max-width: 565px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.58;
}

.scene-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  pointer-events: auto;
}

.scene-actions a + a {
  border-color: rgba(4, 82, 148, 0.16);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(4, 82, 148, 0.08);
}

.proof-list {
  display: grid;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--ink);
  list-style: none;
}

.proof-list li {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 13px;
  color: var(--soft);
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(4, 82, 148, 0.07);
  backdrop-filter: blur(14px);
}

.signal-rail {
  position: fixed;
  right: max(28px, calc((100vw - 1220px) / 2));
  top: 138px;
  z-index: 7;
  display: grid;
  width: 230px;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(4, 82, 148, 0.1);
}

.signal-rail div {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
  backdrop-filter: blur(18px);
}

.signal-rail span {
  color: var(--blue);
  font-size: 26px;
  font-weight: 850;
}

.signal-rail small {
  color: var(--muted);
}

.progress-shell {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 7;
  width: 180px;
  height: 3px;
  border-radius: 999px;
  background: rgba(4, 82, 148, 0.13);
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--electric);
}

.product-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 8;
  width: min(980px, calc(100% - 40px));
  transform: translateX(-50%) translateY(18px);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 24px 70px rgba(4, 82, 148, 0.13);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.product-dock.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-dock article {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
  backdrop-filter: blur(18px);
}

.product-dock span {
  display: block;
  margin-bottom: 8px;
  color: var(--electric);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.product-dock strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.configurator {
  position: fixed;
  right: max(28px, calc((100vw - 1220px) / 2));
  top: 50%;
  z-index: 9;
  display: grid;
  width: 430px;
  max-height: calc(100vh - 152px);
  transform: translate3d(36px, -48%, 0);
  gap: 10px;
  border: 1px solid rgba(4, 82, 148, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  box-shadow: 0 28px 80px rgba(4, 82, 148, 0.14);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  backdrop-filter: blur(24px);
}

.configurator.is-visible {
  transform: translate3d(0, -48%, 0);
  opacity: 1;
  pointer-events: auto;
}

.config-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.configurator .kicker {
  margin-bottom: 10px;
}

.calc-tabs,
.segmented {
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f1f5ff;
  padding: 4px;
}

.calc-tabs button,
.segmented button {
  flex: 1;
  min-height: 34px;
  border-radius: 14px;
  background: transparent;
  color: #657189;
  cursor: pointer;
}

.calc-tabs button.is-selected,
.segmented button.is-selected {
  background: #ffffff;
  color: var(--electric);
  box-shadow: 0 8px 18px rgba(4, 82, 148, 0.08);
  font-weight: 760;
}

.calc-panel {
  display: none;
  gap: 14px;
}

.calc-panel.is-active {
  display: grid;
  gap: 10px;
}

.calc-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faff;
  padding: 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.configurator label,
.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.configurator label {
  grid-template-columns: 1fr max-content;
  gap: 7px 10px;
}

.configurator label strong {
  color: var(--electric);
}

.configurator input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--electric);
}

.quote-breakdown {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.quote-breakdown div,
.quote-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.quote-breakdown strong {
  color: var(--ink);
}

.quote-total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.quote-total span {
  color: var(--muted);
}

.quote-total strong {
  color: var(--blue);
  font-size: 25px;
  text-align: right;
}

.quote-cta {
  width: 100%;
}

.contact-drawer {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  display: grid;
  width: min(1040px, calc(100% - 40px));
  transform: translate(-50%, 42px);
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 30px 86px rgba(4, 82, 148, 0.15);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  backdrop-filter: blur(24px);
}

.contact-drawer.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.contact-drawer h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.08;
}

.contact-drawer .kicker {
  margin-bottom: 9px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  color: var(--soft);
}

.contact-list strong {
  min-width: 74px;
  color: var(--blue);
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form span {
  font-size: 13px;
}

.lead-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 0 13px;
  color: var(--ink);
  outline: 0;
}

.lead-form input:focus-visible {
  border-color: rgba(49, 91, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(49, 91, 255, 0.12);
}

.lead-form button {
  width: 100%;
  cursor: pointer;
}

.scroll-space {
  height: 690vh;
}

@media (max-width: 1080px) {
  .hud {
    grid-template-columns: max-content 1fr;
  }

  .nav {
    display: none;
  }

  .nav-cta {
    justify-self: end;
  }

  h1 {
    font-size: 48px;
  }

  .scene-panel h2 {
    font-size: 38px;
  }

  .signal-rail {
    display: none;
  }

  .configurator {
    right: 22px;
    width: 390px;
  }

  .mega {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .screen-vignette {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35) 50%, rgba(247, 250, 255, 0.96)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.34));
  }

  .hud {
    top: 12px;
    left: 12px;
    width: auto;
    min-height: 56px;
    transform: none;
    grid-template-columns: max-content;
  }

  .brand {
    padding-left: 0;
  }

  .brand-logo {
    width: 118px;
  }

  .concept-badge,
  .nav-cta,
  .mega {
    display: none;
  }

  .scene-panel {
    top: auto;
    bottom: 132px;
    left: 16px;
    width: calc(100vw - 32px);
    transform: translate3d(0, 0, 0);
  }

  h1,
  .scene-panel h2 {
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.05;
  }

  .scene-panel p {
    max-width: 33ch;
    font-size: 15px;
    line-height: 1.45;
  }

  .proof-list,
  .product-dock {
    display: none;
  }

  .scene-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 20px;
  }

  .configurator {
    right: 12px;
    left: 12px;
    top: auto;
    bottom: 14px;
    width: auto;
    max-height: 58vh;
    transform: translate3d(0, 24px, 0);
    padding: 16px;
  }

  .configurator.is-visible {
    transform: translate3d(0, 0, 0);
  }

  .config-head h2 {
    font-size: 25px;
  }

  .calc-tabs button,
  .segmented button {
    min-height: 34px;
    font-size: 13px;
  }

  .contact-drawer {
    grid-template-columns: 1fr;
    bottom: 14px;
    width: calc(100% - 24px);
    max-height: 72vh;
    overflow: auto;
    padding: 16px;
  }

  .contact-drawer h2 {
    font-size: 24px;
  }

  .progress-shell {
    right: 16px;
    bottom: 92px;
    width: 118px;
  }
}
