@font-face {
  font-family: Space Grotesk;
  src: url("assets/space.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #0a0d0b;
  --paper: #eff2ef;
  --soft: #b0bbb2;
  --line: #394940;
  --accent: #b7e96e;
  --display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--paper); font: 1rem/1.6 var(--display); }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--black); background: var(--accent); }

.shell { width: min(1180px, calc(100% - 100px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; width: 109px; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 5; padding: 10px; background: var(--accent); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.app-section { padding-block: clamp(46px, 7vw, 104px); background: #121612; border-block: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .87fr); align-items: center; gap: clamp(30px, 6vw, 90px); }
.app-copy h2, .download-inner h2 { font-size: clamp(2.15rem, 4.2vw, 4rem); line-height: 1.16; letter-spacing: -.04em; }
.case-note { margin-block: 16px 28px; color: var(--soft); max-width: 33rem; }
.app-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.app-tabs button {
  min-height: 44px; border: 1px solid #54614e; padding: 8px 13px;
  background: #171e17; color: var(--paper); cursor: pointer; font-size: .9375rem;
}
.app-tabs button:hover { border-color: var(--accent); }
.app-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: #111907; font-weight: 700; }
.tab-panel { max-width: 33rem; min-height: 126px; margin-top: 28px; }
.tab-panel h3 { margin-bottom: 6px; font-size: clamp(1.2rem, 2.1vw, 1.6rem); }
.tab-panel p { color: var(--soft); }
.app-demo {
  display: grid; place-items: start center; min-height: 632px;
  padding: 25px clamp(15px, 3vw, 35px);
  border: 1px solid var(--line); background: #0b100e;
}
.case-screen {
  width: min(100%, 280px); margin: 0; padding: 5px;
  overflow: hidden; border: 1px solid #45514b; border-radius: 23px; background: #212923;
}
.case-screen img { width: 100%; border-radius: 17px; background: #17191b; }
.download-section { padding-block: clamp(36px, 5vw, 76px); }
.download-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.download-inner h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
.download-inner p { margin-top: 10px; color: var(--soft); }
.download-inner .action { padding-inline: 19px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px 22px; padding-block: 24px 32px; }
.footer-contact p, .footer-links a { color: var(--soft); font-size: .875rem; }
.footer-contact p + p { margin-top: 2px; }
.footer-contact .brand { margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }

.service-shell { width: min(760px, calc(100% - 44px)); margin-inline: auto; padding-block: 34px 48px; }
.service-shell h1 { margin-top: 26px; font-size: 2.5rem; line-height: 1.2; }
.service-shell nav { margin-top: 18px; }
.service-shell article { margin-block: 40px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 14px; }
.service-shell h2 { font-size: 1.8rem; }
.service-shell h3 { margin-top: 24px; font-size: 1.13rem; }
.service-shell p { margin-top: 9px; color: var(--soft); }
.service-shell a { text-underline-offset: 3px; }
.service-shell a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .app-grid { grid-template-columns: 1fr; gap: 22px; }
  .case-note { margin-block: 11px 20px; }
  .tab-panel { min-height: 112px; margin-top: 20px; }
  .app-demo { padding: 16px; min-height: 606px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 28px); }
  .app-tabs button { padding-inline: 9px; }
  .app-demo { padding: 10px; min-height: 0; }
}

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