.artiq-shell { --header-height: 77px; }
.artiq-shell .site-header { position: relative; z-index: 10; }
.artiq-shell .skip { position: fixed; z-index: 11; }
.artiq-shell #main, .artiq-shell #tools { scroll-margin-block-start: 1rem; }
.artiq-shell .header-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
}
.artiq-shell .header-actions { display: flex; justify-self: end; gap: .75rem; }
.artiq-shell .menu-toggle { justify-self: end; }
.home-page .header-inner { grid-template-columns: minmax(max-content, 1fr) auto; }
.home-page .nav-support { min-height: 38px; padding: .48rem .85rem; }

.tools-dropdown { position: relative; }
.tools-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e6edff;
  font-size: .9375rem;
  font-weight: 550;
  cursor: pointer;
}
.tools-toggle:is(:hover, [aria-expanded="true"]) { text-decoration: underline; text-underline-offset: .28em; }
.tools-dropdown-list {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 1;
  min-width: 11rem;
  margin: 0;
  padding: .3rem;
  border: 1px solid #b5ceff55;
  border-radius: 9px;
  background: var(--navy);
  color: #eef4ff;
  box-shadow: 0 9px 22px #091e5440;
  list-style: none;
}
.tools-dropdown-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .4rem .7rem;
  border-radius: 6px;
  font-size: .9375rem;
}
.tools-dropdown-list a:is(:hover, :focus-visible) { background: #ffffff19; }
.site-header .tools-dropdown-list a:focus-visible { outline: 2px solid #bddcff; outline-offset: -2px; }

.home-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(ellipse at 63% 110%, #265da6, transparent 70%), var(--navy);
}
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#aacbff2a 1px, transparent 1px), linear-gradient(90deg, #aacbff2a 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center bottom;
  mask-image: radial-gradient(ellipse at center bottom, #000 0%, #000b 45%, transparent 76%);
}
.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.4rem, 4vw, 3.8rem);
}
.home-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -.047em;
  line-height: 1.04;
  text-wrap: balance;
}
.home-hero-copy p {
  max-width: 50ch;
  margin-top: 1.15rem;
  color: #e0e9ff;
  font-size: clamp(1.0625rem, 1.65vw, 1.2rem);
  text-wrap: pretty;
}
.home-hero .button { margin-top: 1.6rem; padding-inline: 1.2rem; }
.hero-preview {
  display: grid;
  min-width: 0;
  align-content: start;
}
.daily-preview {
  justify-self: end;
  width: min(91%, 30rem);
  min-width: 0;
  padding: .8rem 1rem 1.65rem;
  border: 1px solid #6787ad;
  border-radius: 14px;
  background: #17283e;
  color: #f3f8ff;
  box-shadow: 0 12px 30px #08163055;
}
.daily-preview-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .3rem .6rem;
  margin-bottom: .48rem;
  font-size: .94rem;
}
.daily-preview-header span {
  padding: .12rem .45rem;
  border-radius: 5px;
  background: #2e4562;
  color: #e2eeff;
  font-size: .75rem;
  line-height: 1.4;
}
.daily-preview-metrics { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .87fr) minmax(0, 1.07fr); gap: .55rem; }
.daily-preview-metrics > div { display: grid; align-content: center; padding: .38rem .55rem; border-radius: 6px; background: #243951; }
.daily-preview-metrics dt { color: #d3e2f5; font-size: .78rem; line-height: 1.3; }
.daily-preview-metrics dd { font-weight: 700; font-size: 1.03rem; white-space: nowrap; }
.daily-preview-metrics .daily-preview-profit { background: #f3d9d4; color: #422226; }
.daily-preview-profit dt { color: #78464d; font-weight: 650; }
.daily-preview-profit dd { font-size: clamp(1.02rem, 1.6vw, 1.48rem); }
.hero-preview .unit-preview {
  position: relative;
  z-index: 1;
  width: calc(100% - 1.65rem);
  margin-top: -.95rem;
}
.hero-preview .unit-window { box-shadow: 0 15px 32px #07163855; }
.hero-preview .unit-window-header { padding-block: .48rem; }
.hero-preview .unit-window-body { padding-block: .62rem .48rem; }
.hero-preview .unit-heading { row-gap: .2rem; }
.hero-preview .unit-table th, .hero-preview .unit-table td { padding-block: .23rem; }

.experience-visual {
  min-width: 0;
  display: grid;
  place-items: center;
  min-height: clamp(8.5rem, 15vw, 12.25rem);
  padding: 1rem clamp(.9rem, 4.2vw, 3.5rem);
  border: 1px solid #dfeaf6;
  border-radius: var(--detail-radius);
  background: linear-gradient(145deg, #f8fbff, #edf5fd);
}
.experience-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: clamp(.35rem, 1.2vw, .95rem);
  width: min(100%, 27rem);
  height: clamp(6.7rem, 13vw, 9.3rem);
}
.experience-bars span { height: var(--bar-height); border-radius: 8px; border: 1px solid rgb(24 60 105 / 9%); }
.experience-bars .bar-blue { background: #c2dcf6; }
.experience-bars .bar-green { background: #c5e7d9; }
.experience-bars .bar-yellow { background: #f6e5ad; }
.experience-bars .bar-red { background: #e9c5cd; }
.experience-bars span:nth-child(1) { --bar-height: 38%; }
.experience-bars span:nth-child(2) { --bar-height: 56%; }
.experience-bars span:nth-child(3) { --bar-height: 48%; }
.experience-bars span:nth-child(4) { --bar-height: 73%; }
.experience-bars span:nth-child(5) { --bar-height: 61%; }
.experience-bars span:nth-child(6) { --bar-height: 94%; }
.experience-bars span:nth-child(7) { --bar-height: 76%; }
.experience-bars span:nth-child(8) { --bar-height: 88%; }

.home-page .contact-panel { align-items: start; padding: clamp(1rem, 2vw, 1.4rem); }
.home-page .contact-form { padding: .9rem 1rem; }
.home-page .contact-form fieldset { gap: .55rem; margin-top: .55rem; }
.home-page .contact-telegram { margin-top: .8rem; }
.home-hero :focus-visible { outline-color: #bddcff; }

.product-page main { min-height: calc(100vh - var(--header-height) - 70px); background: var(--surface); }
.product-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(1.8rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 5.8vw, 5.25rem);
}
.product-layout h1 {
  margin-block: .72rem .95rem;
  color: var(--navy);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.06;
}
.product-layout h2 { color: var(--navy); font-size: 1.32rem; }
.product-lead { max-width: 43ch; color: var(--muted); font-size: clamp(1.0625rem, 1.8vw, 1.23rem); text-wrap: pretty; }
.product-lead + .product-lead { margin-top: .9rem; }
.product-return {
  display: block;
  width: fit-content;
  margin-bottom: 1.55rem;
  color: var(--blue-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.product-notes, .product-demo {
  min-width: 0;
  padding: clamp(1rem, 2.8vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--detail-radius, 14px);
  background: var(--white);
  box-shadow: 0 8px 26px #142d5c09;
}
.product-notes p { margin-top: .55rem; color: var(--muted); }
.product-notes dl { margin-top: .85rem; }
.product-notes dl > div + div { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.product-notes dt { color: var(--navy); font-weight: 650; }
.product-notes dd { margin-top: .12rem; color: var(--muted); }
.product-demo img { display: block; width: 100%; height: auto; margin-top: .8rem; }
.product-demo figcaption p { margin-top: .25rem; color: var(--muted); }

@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 2rem; }
  .hero-preview { width: min(100%, 34rem); }
}

@media (max-width: 760px) {
  .artiq-shell { --header-height: 65px; }
  .artiq-shell .header-inner { grid-template-columns: 1fr auto; }
  .artiq-shell .header-actions:empty { display: none; }
  .artiq-shell .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: .5rem 20px .9rem;
    border-bottom: 1px solid #ffffff26;
    background: var(--navy);
  }
  .artiq-shell .header-inner:has(.menu-toggle[hidden]) .site-nav {
    position: static;
    grid-column: 1 / -1;
    padding-inline: 0;
  }
  .hero-preview .unit-preview { width: calc(100% - .4rem); }
  .daily-preview { width: calc(100% - .65rem); padding-inline: .75rem; }
  .daily-preview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .daily-preview-profit { grid-column: 1 / -1; }
  .daily-preview-profit dd { font-size: 1.3rem; }
  .tools-dropdown-list { position: static; box-shadow: none; }
  .tools-toggle { width: 100%; }
  .tools-dropdown-list a { min-height: 44px; }
  .home-page .contact-panel { gap: .95rem; }
  .home-page .contact-documents a { padding-block: .2rem; }
  .home-hero h1 { font-size: clamp(2rem, 9.6vw, 3.5rem); }
  .home-hero-copy p { margin-top: .95rem; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
}
