:root {
  --signal: #FF603F;
  --ink: #101110;
  --paper: #F5F3EE;
  --steel: #BFBFBA;
  --deep-red: #A92C17;
  --muted: #4d4c49;
  --line: #cecdc7;
  --gutter: clamp(1.3rem, 5.4vw, 6.8rem);

  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--deep-red);
  outline-offset: 5px;
}

section {
  scroll-margin-top: 1rem;
}

[hidden] {
  display: none !important;
}

.frame {
  width: min(calc(100% - 2 * var(--gutter)), 94rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 10;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  top: 1rem;
}

.site-head {
  border-bottom: 1px solid var(--line);
}

.head-row,
.head-tools,
.head-row nav,
.brand {
  display: flex;
  align-items: center;
}

.head-row {
  min-height: 5rem;
  gap: 3rem;
}

.brand {
  width: fit-content;
  gap: .37rem;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -.055em;
}

.brand img {
  width: 1.95rem;
  height: 1.95rem;
  object-fit: contain;
}

.head-row nav {
  gap: clamp(1.3rem, 3vw, 3.2rem);
  margin-left: auto;
}

.head-row nav a,
.head-tools a {
  font-size: .94rem;
  font-weight: 550;
}

.head-tools {
  gap: 1.25rem;
}

.head-tools .language {
  font-size: .88rem;
}

.head-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.3rem;
  border-radius: 3px;
  background: var(--ink);
  color: white;
  font-weight: 630;
}

.head-contact:hover,
.button:hover {
  background: var(--deep-red);
}

.link {
  display: inline-block;
  margin-top: 1.15rem;
  padding-bottom: .17rem;
  border-bottom: 1px solid currentColor;
  color: var(--deep-red);
  font-weight: 650;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: .23em;
}

.software {
  padding-block: clamp(3.8rem, 7.1vw, 7.3rem);
}

.section-label {
  margin-bottom: clamp(2rem, 3.2vw, 3.2rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--deep-red);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.software-grid {
  display: grid;
  grid-template-columns: .78fr 1.42fr;
  gap: clamp(1.5rem, 4.5vw, 5rem);
  align-items: center;
}

.software-copy h2 {
  font-size: clamp(3.8rem, 6.8vw, 7rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.08em;
}

.software-copy h3 {
  margin: .6rem 0 1rem;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  font-weight: 550;
  letter-spacing: -.045em;
}

.software-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.28vw, 1.22rem);
  line-height: 1.6;
}

.software-copy .button {
  margin-top: 1.5rem;
  background: var(--signal);
  color: var(--ink);
}

.software-copy .button:hover {
  background: var(--deep-red);
  color: var(--paper);
}

.product {
  min-width: 0;
}

.screen {
  display: block;
  padding: clamp(1rem, 2.9vw, 3.2rem);
  background: linear-gradient(145deg, #d8d4cc, var(--paper) 53%, var(--steel));
  cursor: zoom-in;
}

.screen img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 25px #10111035;
}

.product figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  color: var(--muted);
  font-size: .875rem;
}

.product figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  background: var(--ink);
  color: white;
}

dialog {
  width: 94vw;
  max-width: min(94vw, 95rem);
  max-height: 94dvh;
  padding: .9rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2rem 10rem #10111066;
}

dialog::backdrop {
  background: #101110db;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .7rem;
  font-weight: 600;
}

.dismiss {
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

dialog img {
  width: 100%;
  height: auto;
  max-height: calc(90dvh - 4rem);
  object-fit: contain;
}

:lang(zh-Hant) {
  font-family: Inter, "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
}

html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3 {
  line-height: 1.12;
  letter-spacing: -.045em;
}

html[lang="zh-Hant"] .section-label {
  letter-spacing: .05em;
}

@media (max-width: 900px) {
  .head-row {
    gap: 1.6rem;
  }

  .software-grid {
    grid-template-columns: .83fr 1.17fr;
  }
}

@media (max-width: 700px) {
  .head-row {
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding-block: .65rem;
  }

  .head-tools {
    gap: .8rem;
    margin-left: auto;
  }

  .head-row nav {
    order: 3;
    flex: 1 0 100%;
    gap: 1.5rem;
    padding-top: .52rem;
    border-top: 1px solid var(--line);
  }

  .head-row nav a {
    padding: .25rem 0;
  }

  .head-contact {
    padding: .55rem .8rem;
  }

  .software-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 1.43rem;
  }

  .brand img {
    width: 1.8rem;
    height: 1.8rem;
  }
}

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