html {
  scroll-behavior: smooth;
}

.hw-page {
  background: #ffffff;
  color: var(--ink);
}

.hw-shell {
  width: min(1180px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.hw-page section[id] {
  scroll-margin-top: calc(var(--nav-h) + 58px);
}

/* local product nav */
.hw-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 80;
  height: 52px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.hw-subnav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - var(--gutter) * 2));
  height: 52px;
  margin: 0 auto;
}

.hw-subnav__name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hw-subnav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.hw-subnav__links a {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1;
  transition: color 0.2s ease;
}

.hw-subnav__links a:hover,
.hw-subnav__links a.is-active {
  color: var(--ink);
}

.hw-subnav__cta {
  min-height: 28px;
  margin-left: 4px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* buttons */
.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.hw-btn:hover {
  transform: translateY(-1px);
}

.hw-btn--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.hw-btn--dark:hover {
  border-color: #000000;
  background: #000000;
}

.hw-btn--ghost {
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--ink);
}

.hw-btn--ghost:hover {
  border-color: rgba(14, 82, 240, 0.3);
  background: #f8fbff;
  color: var(--brand);
}

.hw-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.hw-text-link svg {
  width: 13px;
  height: 13px;
}

/* hero */
.hw-hero {
  padding: clamp(46px, 6vw, 78px) 0 0;
  background:
    radial-gradient(52% 46% at 50% 4%, rgba(14, 82, 240, 0.08), transparent 72%),
    #ffffff;
  text-align: center;
}

.hw-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 8vw, 110px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.hw-hero__tagline {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.hw-hero__sub {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.hw-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hw-hero__meta {
  margin: 14px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.hw-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  max-width: 1020px;
  min-height: clamp(380px, 44vw, 540px);
  margin: clamp(32px, 4.5vw, 52px) auto 0;
  padding: 28px;
  border-radius: 30px;
  background: #f5f7fb;
}

.hw-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 460px;
  object-fit: contain;
}

/* section heads */
.hw-page h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hw-section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hw-section-head p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* highlights */
.hw-highlights {
  padding: clamp(70px, 8vw, 108px) 0;
  background: #f5f7fb;
}

.hw-highlights > .hw-shell > h2 {
  max-width: 760px;
}

.hw-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(30px, 4vw, 46px);
}

.hw-highlight {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  background: #ffffff;
}

.hw-highlight__num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hw-highlight h3 {
  margin: 42px 0 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.hw-highlight p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* design */
.hw-design {
  padding: clamp(76px, 8.5vw, 118px) 0;
  background: #ffffff;
}

.hw-design__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}

.hw-design__copy h2 {
  max-width: 520px;
}

.hw-design__copy > p {
  max-width: 470px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.hw-checklist {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.hw-checklist li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 14px;
}

.hw-checklist span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.hw-stage--design {
  min-height: 380px;
  margin: 0;
  padding: 24px;
  border-radius: 26px;
}

.hw-stage--design img {
  max-height: 350px;
}

/* performance */
.hw-performance {
  padding: clamp(72px, 8vw, 108px) 0;
  background: #eef5ff;
}

.hw-performance .hw-section-head {
  text-align: left;
  margin: 0;
}

.hw-performance .hw-section-head p {
  margin-left: 0;
}

.hw-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(30px, 4vw, 46px);
}

.hw-stat {
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(14, 82, 240, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.hw-stat__value {
  display: block;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hw-stat h3 {
  margin: 26px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.hw-stat p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.hw-footnote {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 12px;
}

/* specs */
.hw-specs {
  padding: clamp(70px, 8vw, 104px) 0;
  background: #f5f7fb;
}

.hw-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--hairline);
}

.hw-spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 18px 17px 0;
  border-bottom: 1px solid var(--hairline);
}

.hw-spec span {
  color: var(--muted);
  font-size: 12.5px;
}

.hw-spec strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.hw-accordions {
  max-width: 860px;
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
}

.hw-accordion {
  border-bottom: 1px solid var(--hairline);
}

.hw-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.hw-accordion summary::-webkit-details-marker {
  display: none;
}

.hw-accordion summary span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.hw-accordion[open] summary span {
  transform: rotate(45deg);
}

.hw-accordion > div {
  padding-bottom: 18px;
}

.hw-accordion p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* CTA */
.hw-cta {
  padding: clamp(52px, 7vw, 86px) 0 clamp(74px, 9vw, 118px);
  background: #ffffff;
}

.hw-cta__panel {
  padding: clamp(42px, 6vw, 66px) 24px;
  border: 1px solid rgba(14, 82, 240, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(14, 82, 240, 0.09), transparent 64%),
    linear-gradient(145deg, #f8fbff 0%, #ffffff 76%);
  text-align: center;
}

.hw-cta__panel h2 {
  font-size: clamp(36px, 4.4vw, 56px);
}

.hw-cta__panel p {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.hw-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* responsive */
@media (max-width: 1024px) {
  .hw-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-design__grid {
    gap: 40px;
  }

  .hw-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hw-subnav__links {
    display: none;
  }

  .hw-subnav__cta {
    margin-left: auto;
  }

  .hw-hero h1 {
    font-size: clamp(52px, 15vw, 74px);
  }

  .hw-hero__tagline {
    font-size: clamp(27px, 7.4vw, 36px);
  }

  .hw-stage {
    min-height: 330px;
    padding: 20px;
    border-radius: 22px;
  }

  .hw-stage img {
    max-height: 340px;
    max-width: 100%;
  }

  .hw-design__grid,
  .hw-stat-grid,
  .hw-highlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-stage--design {
    min-height: 320px;
  }

  .hw-stage--design img {
    max-height: 300px;
  }

  .hw-cta__panel {
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .hw-shell {
    width: calc(100% - 36px);
  }

  .hw-subnav__inner {
    width: calc(100% - 36px);
  }

  .hw-hero__actions,
  .hw-cta__actions {
    flex-direction: column;
    gap: 9px;
  }

  .hw-btn {
    width: 100%;
  }

  .hw-spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hw-subnav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hw-subnav__cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.hw-subnav.is-scrolled .hw-subnav__cta {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hw-page--nas .hw-hero h1 {
  letter-spacing: -0.035em;
  word-spacing: 0.12em;
}

/* larger, more legible product-spec typography */
.hw-spec span {
  font-size: 13.5px;
}

.hw-spec strong {
  font-size: 15px;
}

.hw-accordion summary {
  font-size: 16px;
}

.hw-accordion p {
  font-size: 14px;
  line-height: 1.8;
}

.hw-footnote {
  font-size: 13.5px;
  line-height: 1.6;
}
