:root {
  --paper: #f6f4ef;
  --paper-deep: #ebe8e1;
  --surface: #fbfaf7;
  --ink: #303431;
  --muted: #717970;
  --sage: #879486;
  --sage-deep: #6f7f71;
  --sage-soft: #e6e8e2;
  --clay: #b97959;
  --clay-deep: #9f6042;
  --line: #d2cec5;
  --line-strong: #aaa79f;
  --white: #fff;
  --max: 1240px;
  --gutter: max(32px, calc((100vw - var(--max)) / 2));
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(48, 52, 49, .045) .7px, transparent .7px);
  background-size: 6px 6px;
  content: "";
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

svg { display: block; }

a:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 90px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo-crop {
  position: relative;
  display: block;
  width: 222px;
  height: 54px;
  overflow: hidden;
}

.brand-logo-crop img {
  position: absolute;
  top: -114px;
  left: -31px;
  width: 284px;
  height: 284px;
  max-width: none;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #5e645f;
  font-size: 14px;
}

.arrow-link svg,
.text-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform .2s ease;
}

.arrow-link:hover svg,
.text-link:hover svg { transform: translateX(4px); }

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(650px, 1.22fr) minmax(340px, .78fr);
  align-items: center;
  gap: 70px;
  padding: 150px var(--gutter) 100px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1,
.product h2 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(62px, 5.3vw, 80px);
  white-space: nowrap;
  line-height: 1.12;
}

.hero-copy p {
  margin: 34px 0 0;
  color: #636963;
  font-size: 20px;
  line-height: 1.9;
}

.hero-mark {
  position: relative;
  justify-self: end;
  width: min(34vw, 440px);
  aspect-ratio: 1;
  opacity: .53;
}

.hero-mark img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: grayscale(1) sepia(.08) hue-rotate(55deg) saturate(.65);
}

.orbit {
  position: absolute;
  inset: 11%;
  border: 1px solid #bcc1b8;
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #c9c6be;
  content: "";
  transform: translate(-50%, -50%);
}

.orbit::before { width: 120%; height: 1px; }
.orbit::after { width: 1px; height: 120%; }
.orbit-two { inset: 0; border-style: dashed; opacity: .48; }

.scroll-cue {
  position: absolute;
  bottom: 52px;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 17px;
  color: #777d76;
  font-size: 13px;
  letter-spacing: .08em;
}

.scroll-cue svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.product {
  position: relative;
  display: grid;
  min-height: 580px;
  grid-template-columns: 110px minmax(280px, .76fr) minmax(470px, 1.24fr);
  align-items: center;
  gap: 54px;
  padding: 100px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.product-tinted { background: rgba(230, 232, 226, .7); }

.product-index {
  align-self: start;
  padding-top: 3px;
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 74px;
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.product-rathe .product-index { color: var(--clay); }

.product-visual { display: flex; align-items: center; justify-content: center; }

.icon-frame {
  display: grid;
  width: min(100%, 270px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--sage);
  border-radius: 30px;
  background: rgba(251, 250, 247, .64);
}

.icon-frame img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.icon-frame-app img { filter: grayscale(1) sepia(.08) hue-rotate(55deg) saturate(.7); }

.icon-frame-lynx img { width: 72%; height: 72%; }

.icon-frame-rathe { border-color: var(--clay); overflow: hidden; }

.icon-frame-rathe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-frame-tome { overflow: hidden; }
.icon-frame-tome img {
  width: 92%;
  height: 92%;
  border-radius: 20px;
  object-fit: contain;
}

.icon-frame-rathe svg {
  width: 66%;
  fill: none;
  stroke: var(--clay);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.product-copy { max-width: 650px; }

.product h2 {
  margin: 0;
  font-size: clamp(44px, 4.1vw, 64px);
  line-height: 1.1;
}

.product-description {
  min-height: 32px;
  margin: 27px 0 10px;
  color: #5f665f;
  font-size: 17px;
  line-height: 1.85;
}

.product-meta {
  margin: 0;
  color: #7a8079;
  font-size: 14px;
}

.product-meta::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 12px 2px 1px;
  border: 1px solid var(--sage);
  content: "";
  transform: rotate(45deg);
}

.product-rathe .product-meta::before { border-color: var(--clay); }

.download-actions {
  display: flex;
  max-width: 580px;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(251, 250, 247, .54);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.button-store svg { fill: currentColor; stroke: none; }

.button:hover:not(.button-disabled) { transform: translateY(-2px); }

.button-primary {
  min-width: 235px;
  border-color: var(--sage);
  background: var(--sage);
  color: var(--white);
}

.button-primary:hover { border-color: var(--sage-deep); background: var(--sage-deep); }

.button-wide { flex: 1 0 100%; }

.button-store { flex: 1; }

.button-store:hover { border-color: var(--ink); background: var(--surface); }

.button-disabled {
  flex: 1;
  border-color: #d5d2cb;
  background: rgba(235, 232, 225, .48);
  color: #aaa9a4;
  cursor: not-allowed;
}

.button-clay {
  min-width: 265px;
  border-color: var(--clay);
  background: var(--clay);
  color: var(--white);
}

.button-clay:hover { border-color: var(--clay-deep); background: var(--clay-deep); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 25px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--sage-deep);
  font-size: 15px;
}

.text-link-clay { color: var(--clay-deep); }

.site-footer {
  display: grid;
  min-height: 190px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 40px;
  padding: 38px var(--gutter);
  background: var(--paper-deep);
}

.site-footer p {
  grid-column: 1;
  margin: -28px 0 0;
  color: #8a8d87;
  font-size: 12px;
}

.footer-link { grid-column: 2; grid-row: 1 / 3; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border: 1px solid var(--sage);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(53, 57, 52, .16);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  :root { --gutter: 34px; }
  .hero { grid-template-columns: minmax(560px, 1fr) .5fr; }
  .product { grid-template-columns: 90px minmax(230px, .72fr) minmax(390px, 1.28fr); gap: 36px; }
  .product-lynx { grid-template-columns: 90px minmax(390px, 1.28fr) minmax(230px, .72fr); }
}

@media (max-width: 780px) {
  :root { --gutter: 22px; }

  .site-header { height: 78px; }
  .brand-logo-crop { width: 220px; height: 46px; }
  .brand-logo-crop img { top: -98px; left: -27px; width: 245px; height: 245px; }
  .header-link { font-size: 0; gap: 0; }
  .header-link svg { width: 25px; height: 25px; }

  .hero {
    display: block;
    min-height: 650px;
    padding-top: 150px;
  }

  .hero h1 { max-width: 620px; font-size: clamp(48px, 13vw, 70px); white-space: normal; }
  .hero-copy p { font-size: 17px; }
  .hero-mark { position: absolute; right: -68px; bottom: 70px; width: 290px; opacity: .22; }
  .scroll-cue { bottom: 42px; }

  .product,
  .product-lynx {
    display: grid;
    min-height: auto;
    grid-template-columns: 58px 1fr;
    gap: 26px 20px;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .product-index { grid-column: 1; grid-row: 1; font-size: 48px; }
  .product-visual { grid-column: 2; grid-row: 1; justify-content: flex-start; }
  .product-copy { grid-column: 2; grid-row: 2; }
  .product-lynx .product-copy { grid-column: 2; grid-row: 2; }
  .product-lynx .product-visual { grid-column: 2; grid-row: 1; }

  .icon-frame { width: 180px; border-radius: 22px; }
  .product h2 { font-size: clamp(38px, 10vw, 52px); }
  .app-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; min-width: 0; }
  .button-wide { flex-basis: auto; }
  .button-store, .button-disabled { flex: auto; }

  .site-footer { grid-template-columns: 1fr; padding-top: 46px; padding-bottom: 46px; }
  .site-footer p { grid-column: 1; margin: -12px 0 18px; }
  .footer-link { grid-column: 1; grid-row: auto; }
}

@media (max-width: 460px) {
  .brand-logo-crop { width: 190px; height: 42px; }
  .brand-logo-crop img { top: -84px; left: -23px; width: 210px; height: 210px; }
  .product,
  .product-lynx { grid-template-columns: 46px 1fr; gap: 23px 14px; }
  .product-index { font-size: 40px; }
  .icon-frame { width: 150px; border-radius: 19px; }
  .product-description { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* White-blue JudgeCall design system */
:root {
  --paper: #ffffff;
  --paper-deep: #f4f8ff;
  --surface: #ffffff;
  --ink: #071331;
  --muted: #54647d;
  --sage: #075dff;
  --sage-deep: #004ee7;
  --sage-soft: #eaf2ff;
  --clay: #1f76ff;
  --clay-deep: #075dff;
  --line: #d8e4f4;
  --line-strong: #b8ccec;
  --blue: #075dff;
  --blue-2: #1f76ff;
  --pale: #f4f8ff;
  --white: #ffffff;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  text-wrap: pretty;
}

body::before { background-image: none; }

.site-header {
  height: 96px;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
}

.brand-logo-crop { width: 238px; height: 58px; }
.brand-logo-crop img { top: -123px; left: -33px; width: 304px; height: 304px; }
.arrow-link { color: var(--navy, #071331); font-weight: 600; }

.hero {
  min-height: 720px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-bottom-color: var(--line);
}

.hero h1,
.product h2 {
  font-family: inherit;
  font-weight: 900;
  letter-spacing: -.055em;
}

.hero h1 { font-size: clamp(62px, 5.3vw, 82px); }
.hero-copy p,
.product-description,
.product-meta { color: var(--muted); }
.hero-mark { opacity: .28; }
.hero-mark img,
.icon-frame-app img { filter: none; }
.orbit { border-color: var(--line-strong); }
.orbit::before,
.orbit::after { background: var(--line); }
.scroll-cue { color: var(--muted); }

.product { border-bottom-color: var(--line); }
.product-tinted { background: var(--pale); }
.product-index {
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
}
.product-rathe .product-index { color: var(--blue-2); }

.icon-frame {
  border-color: var(--blue);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(30, 76, 148, .1);
}
.icon-frame-rathe { border-color: var(--blue-2); }
.icon-frame-rathe svg { stroke: var(--blue-2); }

.button {
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--white);
}
.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(7, 93, 255, .22);
}
.button-primary:hover { border-color: var(--sage-deep); background: var(--sage-deep); }
.button-disabled {
  border-color: var(--line);
  background: var(--pale);
  color: #8a98ad;
}

.download-count {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding: 0 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.download-count-muted { color: #8a98ad; }
.text-link,
.text-link-clay { color: var(--blue); }

.site-footer {
  grid-template-columns: 1fr auto;
  background: var(--pale);
  border-top: 1px solid var(--line);
}
.site-footer p { grid-column: auto; margin: -12px 0 0; color: #7788a1; }
.footer-identity,
.footer-actions { display: grid; gap: 16px; }
.footer-actions { justify-items: end; }
.support-button { border-color: var(--blue); color: var(--blue); }
.support-button > span:not(.support-label) { color: var(--muted); font-size: 12px; font-weight: 500; }
.support-button:hover { border-color: var(--sage-deep); background: var(--white); transform: translateY(-2px); }
.footer-link { grid-column: auto; grid-row: auto; }
.filing-link { align-items: center; display: inline-flex; gap: 7px; white-space: nowrap; }
.filing-link img { flex: 0 0 auto; height: 20px; object-fit: contain; width: 18px; }
.toast { border-color: var(--blue); background: var(--white); color: var(--ink); }

@media (max-width: 780px) {
  .site-header { height: 78px; }
  .brand-logo-crop { width: 220px; height: 46px; }
  .brand-logo-crop img { top: -98px; left: -27px; width: 245px; height: 245px; }
  .download-count { width: 100%; justify-content: center; border-left: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer p { margin: -12px 0 18px; }
  .footer-actions { justify-items: stretch; }
  .footer-link { justify-content: flex-start; }
  .footer-identity,
  .footer-actions { min-width: 0; }
  .filing-link { flex-wrap: wrap; white-space: normal; }
}

@media (max-width: 460px) {
  .brand-logo-crop { width: 220px; }
}
/* Compact download banner */
.site-header { position: relative; }
.hero {
  min-height: 240px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 44px;
  padding: 28px var(--gutter) 34px;
}
.hero h1 {
  max-width: none;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1.04;
}
.hero-copy p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
}
.hero-mark { width: min(16vw, 176px); }
.scroll-cue { bottom: 18px; }
.icp-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.icp-link:hover { color: var(--blue); }

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions { gap: 24px; }
.language-switcher { gap: 6px; color: var(--muted); }
.language-switcher a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 4px;
}
.language-switcher a:hover,
.language-switcher .language-active { color: var(--blue); }
.language-switcher .language-active { text-decoration: underline; text-underline-offset: 4px; }
.locale-en .hero h1 { letter-spacing: -.045em; }

@media (max-width: 780px) {
  .hero {
    min-height: 240px;
    padding: 26px var(--gutter) 48px;
  }
  .hero h1 {
    max-width: 290px;
    font-size: clamp(34px, 10.2vw, 40px);
    line-height: 1.06;
  }
  .hero-copy p {
    max-width: 330px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
  }
  .hero-mark {
    right: -24px;
    bottom: 20px;
    width: 150px;
    opacity: .14;
  }
  .scroll-cue {
    bottom: 14px;
    gap: 10px;
  }
  .scroll-cue svg { width: 18px; height: 18px; }
  .scroll-cue span { font-size: 11px; }
  .header-actions { gap: 12px; }
  .language-switcher { gap: 4px; }
  .language-switcher a { font-size: 11px; }
}

@media (max-width: 460px) {
  .site-header { padding-right: 14px; }
  .header-actions { gap: 8px; }
  .header-link { display: none; }
  .brand-logo-crop { width: 190px; height: 42px; }
  .brand-logo-crop img { top: -84px; left: -23px; width: 210px; height: 210px; }
}
