/* AgiDuet — site styles. No external fonts or assets. */
:root {
  --paper: #faf7f2;
  --paper-2: #f2ede4;
  --card: #ffffff;
  --ink: #17222b;
  --ink-2: #44515c;
  --ink-3: #6a7782;
  --line: #e4ddd1;
  --jade: #0b7a6b;
  --jade-soft: #d9f1ea;
  --vermilion: #d24a30;
  --accent: var(--jade);
  --accent-ink: #ffffff;
  --accent-soft: var(--jade-soft);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 34, 43, .05), 0 8px 24px -12px rgba(23, 34, 43, .18);
  --shadow-lg: 0 2px 4px rgba(23, 34, 43, .06), 0 18px 40px -16px rgba(23, 34, 43, .28);
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11181e;
    --paper-2: #161f26;
    --card: #1a242c;
    --ink: #eef2f4;
    --ink-2: #c3ccd3;
    --ink-3: #95a2ad;
    --line: #2a3640;
    --jade: #4fd1b5;
    --jade-soft: #173a35;
    --vermilion: #ff8458;
    --accent-ink: #0d1418;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .7);
  }
}

/* product accents */
.theme-arrival { --accent: #2459c9; --accent-soft: #e3ecff; }
.theme-ruinsoul  { --accent: #5b46c8; --accent-soft: #ebe7ff; }
.theme-wanli   { --accent: #3f7d2c; --accent-soft: #e6f0d8; }
@media (prefers-color-scheme: dark) {
  .theme-arrival { --accent: #8bb1ff; --accent-soft: #1c2a47; }
  .theme-ruinsoul  { --accent: #b3a6ff; --accent-soft: #29234f; }
  .theme-wanli   { --accent: #a7d47f; --accent-soft: #233320; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[lang="en"] body, html[lang="en"] body { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw + .6rem, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.6vw + .8rem, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-name span { color: var(--vermilion); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap;
  background: var(--card);
}
.lang-switch:hover { border-color: var(--ink-3); }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .lang-switch { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 6px 0 0; }
  .site-nav ul { flex-wrap: wrap; gap: 2px 0; margin: 0 -8px; padding-bottom: 8px; }
  .site-nav a { padding: 6px 8px; font-size: .9rem; }
  html { scroll-padding-top: 120px; }
}

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center-actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: #17222b; }
.btn.is-soon { cursor: default; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px); }
.hero-inner { position: relative; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--jade-soft); color: var(--jade); font-weight: 700; font-size: .85rem; letter-spacing: .04em;
}
.display { font-size: clamp(2.4rem, 6vw + .5rem, 4.6rem); line-height: 1.12; letter-spacing: -.03em; max-width: 14em; }
.display .accent { color: var(--vermilion); }
.lead { font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); color: var(--ink-2); max-width: 38em; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: clamp(22px, 4vw, 44px) solid; opacity: .16; }
.ring-a { width: clamp(260px, 42vw, 520px); aspect-ratio: 1; right: clamp(-120px, 4vw, 120px); top: 50%; translate: 0 -55%; border-color: var(--jade); }
.ring-b { width: clamp(260px, 42vw, 520px); aspect-ratio: 1; right: clamp(-260px, -8vw, -20px); top: 50%; translate: 0 -40%; border-color: var(--vermilion); }
@media (max-width: 700px) { .ring { opacity: .09; } }

/* sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding-top: 8px; }
.section-notice { padding: 0; }
.section-alt { background: var(--paper-2); }
.section:focus { outline: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section-head h2, .section-head p { margin: 0; }
.section-head p, .section-title + p { color: var(--ink-2); }
.section-title { margin-bottom: 28px; }

/* product cards */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-art { aspect-ratio: 5 / 3; overflow: hidden; }
.card-art svg { width: 100%; height: 100%; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card-body p { color: var(--ink-2); font-size: .98rem; }
.card h3 { font-size: 1.25rem; margin-bottom: .4em; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent); }
.card--arrival { --accent: #2459c9; } .card--ruinsoul { --accent: #5b46c8; } .card--wanli { --accent: #3f7d2c; }
@media (prefers-color-scheme: dark) { .card--arrival { --accent: #8bb1ff; } .card--ruinsoul { --accent: #b3a6ff; } .card--wanli { --accent: #a7d47f; } }
.tag { margin: 0 0 8px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; color: var(--accent); text-transform: uppercase; }

/* values */
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.values li { border-top: 2px solid var(--ink); padding-top: 18px; }
.values .num { display: block; font-weight: 800; color: var(--vermilion); font-size: .9rem; margin-bottom: 6px; }
.values p { color: var(--ink-2); margin: 0; }

/* CTA band */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 6px);
  background: #17222b; color: #eef2f4;
  background-image: radial-gradient(circle at 92% 20%, rgba(60, 196, 168, .35), transparent 40%), radial-gradient(circle at 80% 100%, rgba(255, 132, 88, .3), transparent 45%);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: #c3ccd3; }

/* product hero */
.p-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); background: linear-gradient(180deg, var(--accent-soft), var(--paper)); }
.p-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.p-hero-art { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 3; }
.p-hero-art svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .p-hero-grid { grid-template-columns: 1fr; } .p-hero-art { order: -1; max-width: 560px; } }
.title-cn { font-family: var(--serif); font-weight: 900; letter-spacing: .04em; font-size: clamp(2.3rem, 5vw + .6rem, 3.8rem); margin-bottom: .2em; }
html[lang="en"] .title-cn { font-family: var(--sans); letter-spacing: -.02em; font-weight: 800; font-size: clamp(2rem, 4vw + .6rem, 3.2rem); }
.sub { font-family: var(--serif); font-size: clamp(1.1rem, .8vw + 1rem, 1.4rem); color: var(--accent); font-weight: 700; margin-bottom: 1em; letter-spacing: .04em; }
.fineprint { font-size: .9rem; color: var(--ink-3); margin-top: 16px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-3); margin-bottom: 22px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* notice */
.notice {
  border: 1.5px solid color-mix(in srgb, var(--vermilion) 45%, var(--line));
  background: color-mix(in srgb, var(--vermilion) 6%, var(--card));
  border-radius: var(--radius); padding: 22px 26px;
}
.notice h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--vermilion); margin-bottom: 10px; }
.notice ul { padding-left: 1.2em; color: var(--ink-2); }
.notice li + li { margin-top: 6px; }
.notice strong { color: var(--ink); }

/* panels */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel > p { color: var(--ink-2); }
.kv { margin: 18px 0 0; display: grid; gap: 2px; }
.kv > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; color: var(--ink-2); }
@media (max-width: 420px) { .kv > div { grid-template-columns: 1fr; gap: 0; } }

/* steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--ink-2); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* features */
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.features li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.features p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.features-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }


/* chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.chips li {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em;
  padding: 10px 22px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
html[lang="en"] .chips li { font-family: var(--sans); letter-spacing: 0; font-size: 1.02rem; }

/* simple pages */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }

.contact-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.2rem; margin-bottom: .2em; }
.contact-card p { color: var(--ink-2); font-size: .96rem; }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--jade-soft); color: var(--jade); margin-bottom: 14px; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.08rem; color: var(--jade); word-break: break-all; }
.contact-grid + .fineprint { margin-top: 28px; }

.not-found .big404 { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; margin: 0 0 12px; color: transparent; -webkit-text-stroke: 2px var(--vermilion); }
.sub-en { display: block; font-size: .55em; color: var(--ink-3); font-weight: 600; margin-top: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 28px; background: var(--paper); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--ink-2); margin-top: 12px; max-width: 22em; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.footer-list { list-style: none; display: grid; gap: 8px; }
.footer-list a { color: var(--ink-2); text-decoration: none; }
.footer-list a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-bottom p { margin: 0; }
