:root {
  color-scheme: light dark;
  --page: #f7f7f5;
  --surface: #efefec;
  --surface-strong: #e4e6e1;
  --ink: #161917;
  --ink-muted: #5c625d;
  --line: #cbd0c9;
  --accent: #ff5a1f;
  --accent-deep: #c93d0e;
  --inverse: #101111;
  --inverse-ink: #f5f5f1;
  --paper: #fafaf8;
  --radius: 12px;
  --shadow: 0 26px 68px rgb(24 29 24 / 12%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101111;
    --surface: #171a18;
    --surface-strong: #222622;
    --ink: #f4f5ef;
    --ink-muted: #b5bbb5;
    --line: #363d37;
    --accent: #ff6a36;
    --accent-deep: #d84a18;
    --inverse: #f4f5ef;
    --inverse-ink: #101111;
    --paper: #171a18;
    --shadow: 0 30px 90px rgb(0 0 0 / 30%);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f7f7f5;
  --surface: #efefec;
  --surface-strong: #e4e6e1;
  --ink: #161917;
  --ink-muted: #5c625d;
  --line: #cbd0c9;
  --accent: #ff5a1f;
  --accent-deep: #c93d0e;
  --inverse: #101111;
  --inverse-ink: #f5f5f1;
  --paper: #fafaf8;
  --shadow: 0 26px 68px rgb(24 29 24 / 12%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101111;
  --surface: #171a18;
  --surface-strong: #222622;
  --ink: #f4f5ef;
  --ink-muted: #b5bbb5;
  --line: #363d37;
  --accent: #ff6a36;
  --accent-deep: #d84a18;
  --inverse: #f4f5ef;
  --inverse-ink: #101111;
  --paper: #171a18;
  --shadow: 0 30px 90px rgb(0 0 0 / 30%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
}

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

.skip-link {
  position: absolute;
  z-index: 10;
  top: -4rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--accent);
  color: #161917;
}

.skip-link:focus { top: 1rem; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(14px);
}

.nav-shell { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 28px; }

.brand-lockup { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { display: block; width: 30px; height: 31px; }
.brand-mark img { display: block; width: 30px; height: 31px; object-fit: contain; }
.brand-mark .mark-dark { display: none; }
.brand-lockup span {
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
}

.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.desktop-nav a { color: var(--ink-muted); font-size: 14px; font-weight: 600; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--accent); }

.theme-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: var(--surface-strong); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle span { font-size: 20px; line-height: 1; }

.hero { overflow: hidden; padding: 74px 0 94px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); gap: clamp(34px, 7vw, 110px); align-items: center; }
.hero-copy { padding: 20px 0; animation: reveal .72s both; }
.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
h1 { max-width: 640px; margin-bottom: 26px; font-size: clamp(45px, 5vw, 72px); font-weight: 600; line-height: 1.08; }
.hero-summary { max-width: 490px; margin-bottom: 32px; color: var(--ink-muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #171715; }
.button-primary:hover { background: #ff7749; }
.button-secondary { border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); background: var(--surface); }

.hero-visual {
  position: relative;
  display: grid;
  min-height: 480px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101111;
  box-shadow: var(--shadow);
}
.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero-visual > img { position: relative; z-index: 2; width: min(88%, 530px); height: auto; object-fit: contain; filter: saturate(.88) contrast(1.05); }
.orbit { position: absolute; border: 1px solid rgb(255 255 255 / 17%); border-radius: 50%; }
.orbit-one { width: 82%; aspect-ratio: 1; }
.orbit-two { width: 115%; aspect-ratio: 1; transform: rotate(36deg); border-color: rgb(255 90 31 / 34%); }

.proof-section { padding: 105px 0; border-block: 1px solid var(--line); background: var(--surface); }
.proof-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(44px, 8vw, 128px); align-items: start; }
.section-intro h2, .composition-header h2, .difference-copy h2, .closing-content h2 { margin-bottom: 17px; font-size: clamp(34px, 4vw, 56px); font-weight: 600; line-height: 1.15; }
.section-intro > p:not(.eyebrow), .composition-header > p { max-width: 460px; color: var(--ink-muted); font-size: 16px; line-height: 1.8; }
.evidence-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.evidence-flow li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 19px 0 24px 25px; }
.evidence-flow li + li { border-top: 1px solid var(--line); }
.flow-index { color: var(--accent); font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; padding-top: 3px; }
.evidence-flow strong { display: block; font-size: 19px; font-weight: 700; }
.evidence-flow p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; }

.composition-section { padding: 108px 0; }
.composition-header { max-width: 690px; margin-bottom: 42px; }
.composition-header h2 { max-width: 660px; }
.composition-grid { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: auto auto; gap: 18px; }
.brand-panel, .plugin-panel, .verification-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.brand-panel { position: relative; grid-row: span 2; min-height: 580px; background: #fff6ed; }
.brand-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 28% 43%; }
.brand-panel h3, .plugin-panel h3, .verification-panel h3 { margin-bottom: 7px; font-size: 20px; font-weight: 700; }
.plugin-panel { min-height: 278px; padding: 26px; }
.plugin-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.plugin-header .eyebrow { margin: 0; }
.plugin-count { color: var(--ink-muted); font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; }
.plugin-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plugin-chip { min-height: 67px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink-muted); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.plugin-chip span, .plugin-chip small { display: block; }
.plugin-chip span { color: currentColor; font-size: 13px; font-weight: 700; }
.plugin-chip small { margin-top: 3px; font-size: 11px; }
.plugin-chip.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--paper)); color: var(--ink); }
.plugin-chip:active { transform: translateY(1px); }
.plugin-result { margin: 16px 0 0; color: var(--ink-muted); font-size: 13px; }
.verification-panel { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 284px; background: var(--surface-strong); }
.verification-content { padding: 27px; }
.verification-content .eyebrow { margin-bottom: 12px; }
.verification-content h3 { font-size: 23px; line-height: 1.28; }
.verification-content p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.evidence-stamp { display: flex; align-items: flex-start; justify-content: flex-end; flex-direction: column; padding: 27px; border-left: 1px solid var(--line); background: var(--accent); color: #171715; }
.evidence-stamp span { font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.evidence-stamp strong { margin-top: 5px; font-size: 18px; line-height: 1.22; }
.evidence-stamp i { display: grid; width: 32px; height: 32px; place-items: center; margin-top: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 17px; font-style: normal; }

.difference-section { padding: 108px 0; background: var(--inverse); color: var(--inverse-ink); }
.difference-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 9vw, 150px); align-items: center; }
.difference-art { display: grid; min-height: 400px; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius); background: linear-gradient(145deg, #1b1e1c, #0f1110); }
.difference-art img { width: min(54%, 246px); height: auto; }
.difference-copy .eyebrow { color: var(--accent); }
.difference-copy h2 { max-width: 720px; }
.difference-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 35px; }
.difference-points > div { padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 24%); }
.difference-points span { font-size: 15px; font-weight: 700; }
.difference-points p { margin: 7px 0 0; color: color-mix(in srgb, var(--inverse-ink) 68%, transparent); font-size: 13px; line-height: 1.7; }

.closing-section { padding: 110px 0; }
.closing-content { display: flex; flex-direction: column; align-items: center; max-width: 740px; text-align: center; }
.closing-mark { width: 72px; height: 74px; margin-bottom: 22px; }
.closing-mark img { width: 72px; height: 74px; }
.closing-content h2 { margin-bottom: 28px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; color: var(--ink-muted); font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .05em; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .orbit-one { animation: orbit-turn 28s linear infinite; }
  .orbit-two { animation: orbit-turn 38s linear infinite reverse; }
}

@keyframes orbit-turn { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-grid, .proof-layout, .difference-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-visual { min-height: min(76vw, 480px); }
  .proof-layout, .difference-grid { gap: 48px; }
  .difference-art { min-height: 320px; }
  .difference-points { grid-template-columns: 1fr; gap: 16px; }
  .composition-grid { grid-template-columns: 1fr; }
  .brand-panel { grid-row: auto; min-height: 470px; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 1180px); }
  .desktop-nav { display: none; }
  .nav-shell { min-height: 60px; }
  .hero { padding: 44px 0 66px; }
  h1 { font-size: 40px; line-height: 1.16; }
  .hero-summary { font-size: 16px; }
  .hero-visual { min-height: 330px; }
  .proof-section, .composition-section, .difference-section, .closing-section { padding: 72px 0; }
  .evidence-flow li { grid-template-columns: 42px minmax(0, 1fr); padding-left: 18px; }
  .brand-panel { min-height: 390px; }
  .plugin-panel { padding: 20px; }
  .verification-panel { grid-template-columns: 1fr; }
  .evidence-stamp { min-height: 145px; border-top: 1px solid var(--line); border-left: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark .mark-light { display: none; }
  :root:not([data-theme="light"]) .brand-mark .mark-dark { display: block; }
}

:root[data-theme="dark"] .brand-mark .mark-light { display: none; }
:root[data-theme="dark"] .brand-mark .mark-dark { display: block; }
:root[data-theme="light"] .brand-mark .mark-light { display: block; }
:root[data-theme="light"] .brand-mark .mark-dark { display: none; }
