:root {
  color-scheme: dark;
  --ink: #f4eee3;
  --muted: #a7b4c7;
  --quiet: #718097;
  --page: #07111f;
  --panel: #0b1b30;
  --panel-strong: #0e233c;
  --line: #23364d;
  --mint: #21c7b7;
  --amber: #ffbf47;
  --coral: #f26b5e;
  --shadow: rgba(0, 0, 0, 0.36);
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="day"] {
  color-scheme: light;
  --ink: #102035;
  --muted: #526278;
  --quiet: #718097;
  --page: #f4eee3;
  --panel: #fffaf1;
  --panel-strong: #e7f3ef;
  --line: #c8d2d5;
  --shadow: rgba(16, 32, 53, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body,
button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
select,
input {
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 34px;
  border-bottom: 1px solid rgba(244, 238, 227, 0.16);
  background: rgba(7, 17, 31, 0.88);
  color: #f4eee3;
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 37px;
  height: 37px;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.site-header nav a,
.header-ing {
  color: #d4dbe6;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.header-ing:hover {
  color: var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.theme-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(244, 238, 227, 0.24);
  border-radius: 4px;
  background: transparent;
  color: #f4eee3;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  align-items: end;
  padding: calc(var(--header-height) + 72px) 7vw 88px;
  color: #f4eee3;
  background: #07111f;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(4, 10, 18, 0.58);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 48% 0 0;
  z-index: -1;
  background: rgba(4, 10, 18, 0.45);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 86px;
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-line {
  max-width: 750px;
  margin: 20px 0 0;
  font-size: 37px;
  font-weight: 720;
  line-height: 1.08;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c9d3df;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--mint);
  color: #07111f;
}

.button-primary:hover {
  background: #62eadc;
}

.button-quiet {
  border-color: rgba(244, 238, 227, 0.42);
  background: rgba(7, 17, 31, 0.38);
  color: #f4eee3;
}

.button-quiet:hover {
  border-color: var(--amber);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  margin: 28px 0 0;
  padding: 0;
  color: #c9d3df;
  font-size: 13px;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fact-mint { background: var(--mint); }
.fact-amber { background: var(--amber); }
.fact-coral { background: var(--coral); }

.hero-next {
  position: absolute;
  right: 5vw;
  bottom: 32px;
  color: #f4eee3;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.verb-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.verb-rail article {
  min-height: 176px;
  padding: 34px 4vw;
  border-right: 1px solid var(--line);
}

.verb-rail article:last-child {
  border-right: 0;
}

.verb-rail span,
.install-rail span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 850;
}

.verb-rail h2 {
  margin: 15px 0 6px;
  font-size: 24px;
}

.verb-rail p {
  margin: 0;
  color: var(--muted);
}

.product-scene,
.useful,
.companion,
.install,
.connect {
  padding: 112px 7vw;
}

.product-scene {
  background: var(--page);
}

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

.section-heading h2,
.connect h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
}

.section-heading > p:last-child,
.connect-copy > p:last-child {
  max-width: 720px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.product-frame {
  margin: 58px 0 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 28px 80px var(--shadow);
}

.product-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
}

.useful {
  background: var(--panel);
}

.useful-heading {
  margin-bottom: 50px;
}

.matcher {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(380px, 1.2fr);
  gap: 38px;
  align-items: stretch;
}

.matcher-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 29px;
  border: 1px solid var(--line);
  background: var(--page);
}

.matcher-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
}

.matcher-form legend,
.field-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.matcher-form legend {
  grid-column: 1 / -1;
}

.matcher-form fieldset label {
  position: relative;
}

.matcher-form fieldset input {
  position: absolute;
  opacity: 0;
}

.matcher-form fieldset span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.matcher-form fieldset input:checked + span {
  border-color: var(--mint);
  background: var(--panel-strong);
  color: var(--ink);
}

.matcher-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
}

.matcher-submit {
  width: 100%;
  margin-top: 7px;
}

.match-result {
  position: relative;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--page);
}

.match-result::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--amber);
}

.match-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 850;
}

.match-topline strong {
  color: var(--amber);
}

.match-label {
  margin: 43px 0 8px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 850;
}

.match-result h3 {
  max-width: 690px;
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.match-result dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 37px 0 0;
}

.match-result dl div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.match-result dt {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 850;
}

.match-result dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.gesture-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.gesture-row button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.gesture-row button:hover,
.gesture-row button[aria-pressed="true"] {
  border-color: var(--mint);
  color: var(--mint);
}

.match-note {
  margin: 20px 0 0;
  color: var(--quiet);
  font-size: 12px;
}

.companion {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(350px, 1.22fr);
  gap: 8vw;
  align-items: center;
  background: var(--page);
}

.companion-visual {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  max-width: 480px;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.companion-visual img {
  z-index: 2;
  width: 36%;
  filter: drop-shadow(0 18px 34px rgba(33, 199, 183, 0.22));
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: 66%;
  height: 66%;
  animation: breathe 5s ease-in-out infinite;
}

.orbit-two {
  width: 88%;
  height: 88%;
  border-color: rgba(255, 191, 71, 0.35);
  animation: breathe 5s 1.2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.42; }
  50% { transform: scale(1.02); opacity: 1; }
}

.plain-list {
  display: grid;
  gap: 11px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
}

.install {
  background: var(--panel);
}

.install-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 55px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.install-rail li {
  min-height: 210px;
  padding: 27px 25px;
  border-right: 1px solid var(--line);
}

.install-rail li:last-child {
  border-right: 0;
}

.install-rail h3 {
  margin: 27px 0 8px;
  font-size: 18px;
}

.install-rail p {
  margin: 0;
  color: var(--muted);
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.install-actions .button:disabled {
  background: var(--line);
  color: var(--quiet);
  cursor: not-allowed;
}

.install-actions p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.connect {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(450px, 1.2fr);
  gap: 8vw;
  background: var(--page);
}

.door-list {
  border-top: 1px solid var(--line);
}

.door-list a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.door-list span {
  font-weight: 850;
}

.door-list small {
  color: var(--muted);
  font-size: 14px;
}

.door-list b {
  color: var(--mint);
}

.door-list a:hover span {
  color: var(--amber);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 130px;
  padding: 30px 7vw;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

footer > div a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

footer > div a:hover {
  color: var(--mint);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .site-header nav {
    gap: 17px;
  }

  .hero h1 {
    font-size: 67px;
  }

  .hero-line {
    font-size: 30px;
  }

  .verb-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .verb-rail article:nth-child(2) {
    border-right: 0;
  }

  .verb-rail article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .matcher,
  .companion,
  .connect {
    grid-template-columns: 1fr;
  }

  .companion-visual {
    width: min(100%, 480px);
  }

  .install-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .install-rail li:nth-child(2) {
    border-right: 0;
  }

  .install-rail li:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .site-header nav {
    display: none;
  }

  .brand img {
    width: 33px;
    height: 33px;
  }

  .header-ing {
    display: none;
  }

  .hero {
    min-height: 90svh;
    padding: calc(var(--header-height) + 54px) 22px 92px;
  }

  .hero::after {
    inset: 0;
    background: rgba(4, 10, 18, 0.25);
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-line {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-facts {
    gap: 12px;
  }

  .hero-next {
    right: 22px;
  }

  .verb-rail article {
    min-height: 145px;
    padding: 27px 22px;
  }

  .product-scene,
  .useful,
  .companion,
  .install,
  .connect {
    padding: 76px 22px;
  }

  .section-heading h2,
  .connect h2 {
    font-size: 34px;
  }

  .section-heading > p:last-child,
  .connect-copy > p:last-child {
    font-size: 16px;
  }

  .product-frame {
    margin-top: 37px;
  }

  .product-frame img {
    aspect-ratio: 4 / 3;
  }

  .product-frame figcaption {
    display: grid;
  }

  .matcher {
    gap: 16px;
  }

  .matcher-form,
  .match-result {
    padding: 22px;
  }

  .match-result h3 {
    font-size: 25px;
  }

  .match-result dl {
    grid-template-columns: 1fr;
  }

  .install-rail {
    grid-template-columns: 1fr;
  }

  .install-rail li,
  .install-rail li:nth-child(2) {
    min-height: 160px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .install-rail li:last-child {
    border-bottom: 0;
  }

  .install-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .door-list a {
    grid-template-columns: 88px 1fr auto;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer p {
    text-align: left;
  }

  footer > div {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .verb-rail {
    grid-template-columns: 1fr;
  }

  .verb-rail article,
  .verb-rail article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .verb-rail article:last-child {
    border-bottom: 0;
  }

  .matcher-form fieldset {
    grid-template-columns: 1fr;
  }

  .matcher-form legend {
    grid-column: auto;
  }

  .match-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .door-list a {
    grid-template-columns: 1fr auto;
    padding: 16px 0;
  }

  .door-list small {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orbit {
    animation: none;
  }
}
