:root {
  color-scheme: light;
  --ink: #171b17;
  --dark: #111411;
  --surface: #f4f5ef;
  --paper: #fbfcf7;
  --mute: #515a50;
  --line: #d5dbce;
  --white: #f8f9f4;
  --lime: #d6fa75;
  --green: #405821;
  --mono: "Cascadia Mono", Consolas, monospace;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid #4e72ed; outline-offset: 4px; }
[hidden] { display: none !important; }

.shell { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 10px 18px; background: var(--lime); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  color: var(--white);
  background: var(--dark);
  border-bottom: 1px solid #30352f;
}
.header-inner, .footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.brand b { color: var(--lime); font-family: var(--mono); font-size: .9em; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: #d6dbd2; }
.site-nav a:hover, .back-top:hover { color: var(--lime); }
.nav-download { padding: 8px 14px; border: 1px solid #687457; border-radius: 4px; color: var(--lime); }
.nav-download span { margin-inline-start: 8px; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  isolation: isolate;
  min-height: 610px;
  min-height: clamp(430px, calc(100svh - 165px), 690px);
  color: var(--white);
  background-color: var(--dark);
}
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #080b08; opacity: .63; }
.hero-inner { display: grid; grid-template-rows: 1fr auto; }
.hero-content { align-self: center; padding: 56px 0 48px; max-width: 640px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 14px; font-weight: 700; }
.hero .eyebrow, .download .eyebrow, .workflow .eyebrow { color: var(--lime); }
.signal { inline-size: 8px; block-size: 8px; background: var(--lime); flex: none; }
.hero h1 { margin: 12px 0 14px; font-size: 76px; font-weight: 800; line-height: 1.12; }
.hero h1 span { color: var(--lime); font-family: var(--mono); white-space: nowrap; }
.hero-tagline { font-size: 24px; font-weight: 650; }
.hero-copy { margin-top: 9px; max-width: 495px; color: #e4e8de; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions { margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 160ms, border-color 160ms, color 160ms;
}
.button span { font-family: var(--mono); font-size: 20px; line-height: 1; }
.button-primary { background: var(--lime); color: #182012; }
.button-primary:hover { background: #edffbd; }
.button-ghost { border-color: #a1aa96; background: #141914; color: var(--white); }
.button-ghost:hover { border-color: var(--lime); color: var(--lime); }
.hero-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #c1ccb380; background: #111411cc; }
.hero-index a { display: flex; align-items: baseline; gap: 13px; min-width: 0; padding: 15px 22px; transition: background-color 160ms; }
.hero-index a + a { border-inline-start: 1px solid #c1ccb34d; }
.hero-index a:hover { background: #333a2d; }
.hero-index b { color: var(--lime); font: 700 19px var(--mono); }
.hero-index span { color: #e3e8dc; font-size: 14px; }

.section { padding-block: 78px; }
.features { padding-top: 52px; }
.section-head { margin-bottom: 28px; }
.section h2 { margin-top: 6px; font-size: 42px; line-height: 1.19; font-weight: 760; }
.section h3 { font-size: 22px; line-height: 1.3; }
.section-head > p:not(.eyebrow) { max-width: 460px; margin-top: 14px; color: var(--mute); }
.feature-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 24px; }
.feature-highlights article { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.feature-highlights p { margin-top: 7px; color: var(--mute); }
.tab-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.tab-button {
  position: relative;
  min-height: 58px;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 650;
}
.tab-button + .tab-button { border-inline-start: 1px solid var(--line); }
.tab-button:hover { background: #e9eddc; }
.tab-button[aria-selected="true"] { background: #e7efcf; box-shadow: inset 0 -3px #6b8a36; }
.tab-button:focus-visible { z-index: 1; outline-offset: -4px; }
.tab-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; min-height: 170px; padding: 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tab-panel p { margin-top: 9px; max-width: 450px; color: var(--mute); }
.tab-panel ul { align-self: center; margin: 0; padding-inline-start: 1.3em; }
.tab-panel li + li { margin-top: 6px; }
.tab-panel li::marker { color: #587623; }

.workflow { color: var(--white); background: #1d221c; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-block: 1px solid #495143; list-style: none; }
.timeline li { padding: 22px 18px 24px; }
.timeline li + li { border-inline-start: 1px solid #495143; }
.timeline span { display: block; margin-bottom: 14px; color: var(--lime); font: 700 19px var(--mono); }
.timeline p { margin-top: 6px; color: #c5cdbf; }

.products { background: #edf0e8; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.product a { display: block; aspect-ratio: 1000 / 760; border-radius: 5px 5px 0 0; background: #1b2222; }
.product a:focus-visible { outline-offset: 2px; }
.product a:hover { outline: 1px solid var(--green); outline-offset: -1px; }
.product img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.product figcaption { padding: 15px 16px 17px; }
.product h3 { font-size: 18px; line-height: 1.35; }
.product p { margin-top: 4px; color: var(--mute); font-size: 14px; }

.gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shot { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.shot-wide { grid-column: 1 / -1; }
.shot a { display: block; position: relative; aspect-ratio: 1.25; background: #181b18; border-radius: 5px 5px 0 0; }
.shot a:hover { background: #242a21; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.shot-wide a { aspect-ratio: 2560 / 1400; }
.shot figcaption { display: grid; gap: 6px; padding: 18px 20px; }
.shot figcaption p { color: var(--mute); font-size: 15px; }

.download { color: var(--white); background: var(--dark); border-top: 3px solid var(--lime); }
.download-inner, .contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.release-meta { margin-top: 10px; color: #ccd4c5; }
.release-meta span { margin-inline: 8px; color: var(--lime); }
.contact-inner .section-head { margin: 0; }
.agency { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.agency p { margin: 7px 0 12px; color: var(--mute); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); flex: none; gap: 16px; }
.qr-card { border: 1px solid var(--line); background: var(--paper); padding: 8px; border-radius: 5px; text-align: center; font-size: 14px; font-weight: 650; }
.qr-card a { display: block; background: #fff; }
.qr-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.qr-card figcaption { margin-top: 6px; }
.site-footer { color: var(--white); background: var(--dark); border-top: 1px solid #373e33; }
.back-top { font-size: 14px; flex: none; }
.footer-registration { padding: 10px var(--gutter) 18px; text-align: center; color: #c5cdbf; font-size: 14px; }
.footer-registration a:hover { color: var(--lime); text-decoration: underline; }

@media (max-width: 980px) {
  :root { --gutter: 32px; }
  .site-nav { gap: 18px; }
  .hero h1 { font-size: 64px; }
  .section { padding-block: 60px; }
  .features { padding-top: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 740px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 62px; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 63px); overflow-y: auto; padding: 8px var(--gutter) 14px; background: var(--dark); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 10px; }
  .nav-toggle { display: grid; align-content: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid #555e4e; border-radius: 4px; background: transparent; }
  .nav-toggle span { display: block; width: 19px; height: 2px; background: currentColor; transition: transform 160ms; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero-image { object-position: 52% center; }
  .hero-content { padding: 40px 0 34px; }
  .hero h1 { font-size: 48px; }
  .hero-tagline { font-size: 20px; }
  .hero-copy { font-size: 16px; }
  .hero-index a { flex-direction: column; gap: 2px; padding: 10px 9px; }
  .hero-index span { font-size: 13px; }
  .section { padding-block: 48px; }
  .features { padding-top: 34px; }
  .section h2 { font-size: 34px; }
  .tab-panel { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li:nth-child(odd) { border-inline-start: 0; }
  .timeline li:nth-child(n+3) { border-block-start: 1px solid #495143; }
  .download-inner, .contact-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .contact-grid { width: min(100%, 316px); }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 42px; }
  .section h2 { font-size: 29px; }
  .tab-button { font-size: 14px; padding-inline: 3px; }
}

@media (max-width: 620px) {
  .feature-highlights { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shot:not(.shot-wide) a { aspect-ratio: 1; }
  .shot:nth-child(2) a { aspect-ratio: 517 / 796; }
}

@media (max-height: 640px) {
  .hero { min-height: 0; }
  .hero-content { padding-block: 26px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 36px; }
  .hero .actions { margin-top: 18px; gap: 8px; }
  .hero .actions .button { gap: 6px; padding-inline: 8px; font-size: 13px; }
}

@media (orientation: landscape) and (max-height: 420px) {
  .hero-content { padding-block: 13px 17px; }
  .hero h1 { margin-block: 5px; font-size: 36px; }
  .hero-tagline { font-size: 17px; }
  .hero-copy { margin-top: 4px; max-width: none; font-size: 14px; }
  .hero .actions { margin-top: 10px; }
  .hero .button { min-height: 44px; }
  .hero-index a { flex-direction: row; gap: 8px; padding-block: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
