:root {
  --bg-0: #0b0b0d;
  --bg-1: #131316;
  --bg-2: #09090b;
  --paper-0: #f6f4f0;
  --paper-1: #ece8e1;
  --title: rgba(255, 255, 255, 0.96);
  --body: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.54);
  --hint: rgba(255, 255, 255, 0.36);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-active: rgba(255, 255, 255, 0.09);
  --surface-solid: rgba(24, 24, 27, 0.86);
  --shadow: rgba(0, 0, 0, 0.42);
  --orange: #e67200;
  --orange-soft: rgba(230, 114, 0, 0.16);
  --sage: #92a98e;
  --ochre: #c1a05d;
  --mist: #91a9bd;
  --terra: #bd7a66;
  --max: 1180px;
  --page: clamp(20px, 5vw, 54px);
  --radius-card: 20px;
  --radius-button: 14px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: ui-serif, "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-0: #f6f4f0;
    --bg-1: #f1eee9;
    --bg-2: #ece8e1;
    --title: rgba(26, 23, 20, 0.96);
    --body: rgba(50, 46, 41, 0.82);
    --muted: rgba(50, 46, 41, 0.62);
    --hint: rgba(50, 46, 41, 0.44);
    --line: rgba(74, 64, 56, 0.14);
    --line-strong: rgba(74, 64, 56, 0.24);
    --surface: rgba(255, 255, 255, 0.62);
    --surface-active: rgba(255, 255, 255, 0.82);
    --surface-solid: rgba(250, 248, 244, 0.88);
    --shadow: rgba(58, 51, 43, 0.14);
    --orange-soft: rgba(230, 114, 0, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--body);
  background:
    linear-gradient(128deg, rgba(142, 85, 36, 0.16) 0%, rgba(142, 85, 36, 0.05) 26%, transparent 44%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  font-family: var(--font-sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.38);
  z-index: 4;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 28px), var(--max));
  min-height: 62px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  box-shadow: 0 18px 46px var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}

.brand span {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand strong {
  color: var(--title);
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1;
  padding: 10px 11px;
  white-space: nowrap;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--title);
  background: var(--surface);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.lang-button {
  min-width: 46px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--title);
  background: var(--surface);
  cursor: pointer;
}

.lang-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-active);
}

.hero {
  position: relative;
  min-height: min(820px, 88svh);
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px var(--page) 72px;
  background:
    linear-gradient(90deg, rgba(230, 114, 0, 0.10), transparent 27%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 94px var(--page) 50px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 28px 80px var(--shadow);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  text-align: left;
}

.hero-copy-block {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--title);
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 11vw, 116px);
  font-weight: 700;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--body);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 0 20px;
  border-radius: var(--radius-button);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.button.primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 34%),
    linear-gradient(135deg, #f08a21 0%, #d65c00 100%);
  box-shadow: 0 14px 36px rgba(214, 92, 0, 0.24);
}

.button.secondary {
  color: var(--title);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
}

.hero-instrument {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 36%),
    var(--surface);
  box-shadow: 0 28px 74px var(--shadow);
}

.instrument-topline,
.instrument-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.instrument-topline span,
.instrument-readout span,
.score-dial small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
}

.instrument-topline i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(230, 114, 0, 0.12);
}

.viewfinder-surface {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.18 / 1;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(255, 255, 255, 0.07) 32.2% 32.45%, transparent 32.7% 67.3%, rgba(255, 255, 255, 0.07) 67.55% 67.8%, transparent 68%),
    linear-gradient(180deg, transparent 0 32%, rgba(255, 255, 255, 0.07) 32.2% 32.45%, transparent 32.7% 67.3%, rgba(255, 255, 255, 0.07) 67.55% 67.8%, transparent 68%),
    linear-gradient(150deg, rgba(230, 114, 0, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.viewfinder-surface::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  pointer-events: none;
}

.meter-column {
  position: absolute;
  right: 18px;
  top: 20px;
  bottom: 20px;
  display: grid;
  width: 5px;
  gap: 8px;
}

.meter-column span {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.meter-column span:nth-child(2) {
  background: rgba(230, 114, 0, 0.62);
}

.score-dial {
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: grid;
  gap: 2px;
}

.score-dial strong {
  color: var(--title);
  font-family: var(--font-mono);
  font-size: clamp(44px, 6vw, 68px);
  line-height: 0.95;
}

.instrument-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instrument-readout div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.instrument-readout strong {
  color: var(--title);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.focus-frame {
  position: absolute;
  inset: 118px var(--page) 54px;
  z-index: 1;
  pointer-events: none;
}

.focus-frame span {
  position: absolute;
  width: clamp(34px, 8vw, 76px);
  height: clamp(34px, 8vw, 76px);
  border-color: rgba(230, 114, 0, 0.76);
  opacity: 0.72;
}

.focus-frame span:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.focus-frame span:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.focus-frame span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.focus-frame span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 126px) var(--page);
}

.section.compact {
  padding-top: clamp(58px, 8vw, 96px);
}

.section-header {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel,
.privacy-band article,
.document-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 36%),
    var(--surface);
  box-shadow: 0 22px 58px var(--shadow);
}

.panel {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-kicker {
  margin: 0;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.panel p:not(.panel-kicker),
.section-copy p,
.privacy-band p,
.document-panel p,
.document-panel li {
  color: var(--body);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
}

.photo-window {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 60px var(--shadow);
  aspect-ratio: 4 / 5;
}

.photo-window.wide {
  aspect-ratio: 5 / 6;
}

.photo-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-window {
  min-height: 540px;
}

.demo-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(12, 12, 14, 0.58);
  backdrop-filter: blur(14px);
}

.demo-caption span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.demo-caption strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
}

.photo-mat {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 16px;
  pointer-events: none;
}

.focus-frame.small {
  inset: 28px;
}

.focus-frame.small span {
  width: 42px;
  height: 42px;
}

.section-copy {
  display: grid;
  gap: 20px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(80px, 120px) 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.spec-list dd {
  margin: 0;
  color: var(--title);
  font-weight: 700;
}

.privacy-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.privacy-band article {
  padding: 22px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--title);
  background: var(--surface);
}

.link-list a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.document-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 146px var(--page) 88px;
}

.document-hero {
  margin-bottom: 28px;
}

.document-hero h1 {
  font-size: clamp(38px, 7vw, 72px);
}

.document-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.document-panel {
  padding: clamp(22px, 4vw, 42px);
}

.document-panel section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.document-panel h2 {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: clamp(21px, 3vw, 28px);
}

.document-panel ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.document-panel a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(230, 114, 0, 0.40);
  text-underline-offset: 4px;
}

.site-footer {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto 18px;
  padding: 22px var(--page);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  color: var(--title);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 152px;
  }

  .hero::before {
    inset: 100px 18px 42px;
    border-radius: 22px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-grid,
  .privacy-band,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
    gap: 38px;
  }

  .photo-window,
  .photo-window.wide {
    max-height: 720px;
  }

  .demo-window {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 18px), var(--max));
    border-radius: 16px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .nav-links a {
    font-size: 12px;
    padding: 9px 8px;
  }

  .hero {
    padding: 138px 18px 64px;
  }

  .hero::before {
    inset: 94px 9px 34px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions {
    justify-content: stretch;
  }

  .button {
    flex: 1 1 160px;
  }

  .hero-instrument {
    padding: 14px;
    border-radius: 20px;
  }

  .viewfinder-surface {
    border-radius: 16px;
  }

  .instrument-readout {
    grid-template-columns: 1fr;
  }

  .section,
  .document-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .focus-frame.small {
    inset: 20px;
  }

  .demo-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
