/* Hansonsoft — ink + slate field, wave red from logo */

:root {
  --ink: #0e1114;
  --ink-soft: #3d4550;
  --field: #e8eef2;
  --field-2: #d5dee6;
  --mist: #f4f7f9;
  --wave: #c41e2a;
  --wave-deep: #9a1520;
  --line: rgba(14, 17, 20, 0.12);
  --font-display: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  --font-cn: "Noto Serif SC", "Instrument Serif", Georgia, serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gate-silver: #e8ecf0;
  --gate-silver-deep: #d5dde6;
}

/* Construction gate — covers site until password unlock */
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  color: var(--ink);
}

.site-gate[hidden] {
  display: none;
}

body.is-gated {
  overflow: hidden;
}

body.is-gated .site-header,
body.is-gated .skip,
body.is-gated #main,
body.is-gated .site-footer {
  visibility: hidden;
  pointer-events: none;
}

.gate-admin {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  max-width: min(100% - 2rem, 18rem);
}

.gate-admin-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.gate-password {
  width: 7.5rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(14, 17, 20, 0.18);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}

.gate-password:focus {
  outline: 2px solid rgba(196, 30, 42, 0.35);
  outline-offset: 1px;
}

.gate-admin-hint {
  flex: 1 0 100%;
  margin: 0;
  text-align: right;
  font-size: 0.78rem;
  color: var(--wave);
}

.gate-band {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: min(58vh, 34rem);
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(180deg, var(--gate-silver) 0%, var(--gate-silver-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(14, 17, 20, 0.04);
}

.gate-logo {
  width: min(42vw, 14rem);
  height: auto;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 8px 20px rgba(14, 17, 20, 0.12));
}

.gate-title {
  margin: 0;
  font-family: var(--font-cn);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.gate-copy {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  line-height: 1.65;
}

.gate-copy-en {
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.gate-copy a {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: rgba(196, 30, 42, 0.45);
}

.gate-copy a:hover,
.gate-copy a:focus-visible {
  color: var(--wave);
}

@media (max-width: 640px) {
  .gate-admin {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    justify-content: space-between;
  }

  .gate-password {
    width: 6.5rem;
  }

  .gate-band {
    min-height: 52vh;
    padding: 2.5rem 1.15rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--mist);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 249, 0.88);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark img {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
}

.header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.35rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--wave);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.lang-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 1px;
  line-height: 1.2;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* Full-bleed hero: brand + one line + lede + CTA on atmospheric field */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(14, 17, 20, 0.04), transparent 42%),
    linear-gradient(180deg, var(--field) 0%, var(--mist) 55%, #eef2f5 100%);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(196, 30, 42, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(61, 69, 80, 0.1), transparent 50%);
  animation: wash 16s var(--ease) infinite alternate;
  pointer-events: none;
}

@keyframes wash {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-2%, 2%);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto 0 0;
  width: min(100%, var(--max));
  margin-left: max(0px, calc((100% - var(--max)) / 2));
}

.hero-brand {
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.hero-logo {
  width: min(42vw, 13.5rem);
  height: auto;
  animation: rise 0.95s var(--ease) both;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--ink);
  animation: rise 0.95s 0.04s var(--ease) both;
}

.hero-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
  line-height: 1.28;
  letter-spacing: 0.03em;
  animation: rise 0.95s 0.08s var(--ease) both;
}

.hero-lede {
  margin: 0 0 1.85rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 30rem;
  animation: rise 0.95s 0.16s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.95s 0.24s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--wave);
  color: #fff;
  border: 1px solid var(--wave-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--wave-deep);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--wave);
  color: var(--wave);
}

.section {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 40rem;
}

.products {
  background: linear-gradient(180deg, var(--field) 0%, var(--mist) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.product-col {
  min-width: 0;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.product-head .eyebrow {
  margin-bottom: 0.2rem;
}

.product-head h2 {
  margin: 0;
}

.product-mark {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.45rem;
  border-radius: 0.85rem;
  object-fit: contain;
  box-sizing: border-box;
}

#qianzhuli .product-mark {
  background: #181a1e;
}

#jinzhanggui .product-mark {
  background: #261e14;
}

.product-col .section-lede,
.product-col .pricing,
.product-col .mode-block,
.product-col .feature-list,
.product-col .video-frame {
  max-width: none;
}

.product-col + .product-col {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}

.product-alt {
  background: linear-gradient(180deg, var(--field-2), var(--mist));
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--wave);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-cn);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-lede {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 36rem;
  font-size: 1.08rem;
}

.model-tag {
  margin: -0.35rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.pricing {
  margin: 1.5rem 0 1.25rem;
  max-width: 28rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.pricing-label {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
}

.pricing-opt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
}

.pricing-period {
  flex: 1 0 100%;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1;
  color: var(--ink);
}

.pricing-unit {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.pricing-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

.pricing-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pricing-buy .btn {
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}

.pricing-buy-status {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b91c1c;
}

.checkout-inline {
  margin: 0.85rem 0 0.75rem;
  padding: 1rem 1.05rem;
  border: 2px solid #b91c1c;
  background: #fff7f7;
  max-width: 26rem;
}

.checkout-inline-hint {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #b91c1c;
  line-height: 1.4;
}

.checkout-inline-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-inline-input {
  width: 100%;
}

.checkout-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.pricing-bundle-note {
  margin: 0.35rem 0 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 36rem;
  line-height: 1.45;
}

.version-pricing {
  margin: 0 0 1.15rem;
  padding: 1rem 0 1.05rem;
  border-top: 1px solid var(--line);
}

.version-pricing:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.version-pricing-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.version-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.version-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.version-badge.soon {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
  font-weight: 600;
}

.version-lede {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.version-pricing.is-soon .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  margin-top: 0.75rem;
}

.pricing-row.muted {
  opacity: 0.55;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 16, 12, 0.45);
}

.checkout-overlay[hidden] {
  display: none !important;
}

.checkout-dialog {
  border: 1px solid var(--line, #d4d4d4);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.35rem;
  width: min(420px, calc(100vw - 2rem));
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.checkout-dialog h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.checkout-dialog-lede {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.checkout-dialog label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-dialog .gate-password {
  width: 100%;
}

.checkout-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.checkout-dialog-err {
  margin: 0.55rem 0 0;
}

.mode-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  max-width: 40rem;
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.modes-grid .mode-block + .mode-block {
  padding-left: 1.15rem;
  border-left: 1px solid var(--line);
}

.mode-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.mode-lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.video-slot {
  margin-top: 1.15rem;
}

.video-slot-label {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

a.video-slot-link {
  display: inline-block;
  color: var(--accent, #0f766e);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a.video-slot-link:hover {
  color: var(--ink, #0e1114);
}

.video-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 36rem;
  background:
    linear-gradient(135deg, rgba(14, 17, 20, 0.04), transparent 45%),
    var(--field);
  border: 1px dashed rgba(14, 17, 20, 0.22);
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-list,
.soon-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.feature-list li,
.soon-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-top: 1px solid var(--line);
}

.feature-list li::before,
.soon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--wave);
}

.status-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.contact-list span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact-list a {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: rgba(196, 30, 42, 0.4);
  transition: color 0.2s var(--ease);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--wave);
}

.wechat-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.wechat-label {
  margin: 0 0 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.wechat-qr {
  width: 10rem;
  height: 10rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.35rem;
}

.wechat-hint {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.footer-brand img {
  opacity: 0.95;
  width: 2.25rem;
  height: auto;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-col + .product-col {
    padding-left: 0;
    border-left: 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .modes-grid .mode-block + .mode-block {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-end {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    font-size: 0.85rem;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

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

  .hero-wash,
  .hero-logo,
  .hero-brand-name,
  .hero-title,
  .hero-lede,
  .hero-cta,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
