/* =========================================================
   CrystalMark Retro - Main Stylesheet
   Color tokens follow the official brand purple #6E5BE3
   ========================================================= */

:root {
  --brand-50:  #F5F3FF;
  --brand-100: #ECE6FF;
  --brand-200: #D6CCFB;
  --brand-300: #B8A8F5;
  --brand-400: #9684EE;
  --brand-500: #6E5BE3;       /* primary */
  --brand-600: #5B4FB5;
  --brand-700: #463B8A;
  --brand-800: #2F2960;

  --accent:    #00C2A8;        /* teal accent */
  --gold:      #F59E0B;

  --ink-900:   #1A1A2E;
  --ink-800:   #232339;
  --ink-700:   #3A3A52;
  --ink-600:   #4A4A6A;
  --ink-500:   #6A6A88;
  --ink-400:   #8B8BA8;
  --ink-300:   #B8B8CC;
  --ink-200:   #D9D9E2;
  --ink-100:   #ECECF3;
  --ink-50:    #F6F6FA;

  --bg:        #FFFFFF;
  --bg-soft:   #FBFAFE;
  --bg-tint:   #F5F3FF;
  --border:    #E8E6F0;
  --border-strong: #D6D2E8;

  --shadow-sm: 0 1px 2px rgba(46, 35, 102, 0.06), 0 1px 3px rgba(46, 35, 102, 0.04);
  --shadow:    0 4px 12px rgba(46, 35, 102, 0.06), 0 2px 4px rgba(46, 35, 102, 0.04);
  --shadow-lg: 0 18px 40px rgba(46, 35, 102, 0.10), 0 8px 16px rgba(46, 35, 102, 0.06);
  --shadow-xl: 0 30px 60px rgba(46, 35, 102, 0.14);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl:32px;
  --radius-full:999px;

  --container: 1200px;
  --container-narrow: 880px;

  --t-fast: 0.18s ease;
  --t: 0.25s ease;
  --t-slow: 0.5s ease;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Hiragino Sans GB",
               "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
img { border: 0; }

a { color: var(--brand-500); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-700); }
a:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

p { margin: 0 0 1.2em; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }

.skip-link {
  position: absolute; top: -64px; left: 16px;
  background: var(--brand-500); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ====================== Layout ====================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

main { display: block; }

section { padding: 80px 0; position: relative; }
section + section { padding-top: 80px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
  background: var(--brand-50);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head p { color: var(--ink-600); font-size: 17px; }

.lead { color: var(--ink-600); font-size: 18px; max-width: 720px; }

/* ====================== Header ====================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--ink-900);
}
.brand img { width: 60px; height: 60px; object-fit: contain;}
.nav-links {
  display: flex; gap: 4px; align-items: center; list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  display: inline-block; padding: 8px 14px;
  color: var(--ink-700); font-weight: 500; font-size: 15px;
  border-radius: var(--radius);
}
.nav-links a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-links a.is-active { color: var(--brand-500); background: var(--brand-50); }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--brand-50); color: var(--brand-500);
}
.menu-toggle svg { width: 22px; height: 22px; margin: 0 auto; }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn-download { display: none; }
}

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-weight: 600; font-size: 15px;
  border-radius: var(--radius);
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--brand-500); color: #fff;
  box-shadow: 0 6px 20px rgba(110, 91, 227, 0.30);
}
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(110, 91, 227, 0.36); }

.btn-outline {
  background: #fff; color: var(--brand-500);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }

.btn-ghost {
  background: transparent; color: var(--ink-700);
}
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ====================== Hero ====================== */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(800px 400px at 90% -10%, #E4DAFC 0%, transparent 60%),
    radial-gradient(700px 360px at -10% 30%, #EFE6FF 0%, transparent 55%),
    linear-gradient(180deg, #FCFAFF 0%, #F5F1FF 100%);
}
.hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.hero h1 span.hl { color: var(--brand-500); }
.hero p.lead { font-size: 19px; color: var(--ink-700); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 580px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 24px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; }
.hero-stat span { font-size: 13px; color: var(--ink-500); }

.hero-card {
  background: #fff; border-radius: var(--radius-2xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.hero-card-head .dots { display: flex; gap: 6px; }
.hero-card-head .dots span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.hero-card-head .dots span:nth-child(1) { background: #FF6B6B; }
.hero-card-head .dots span:nth-child(2) { background: #FACC15; }
.hero-card-head .dots span:nth-child(3) { background: #22C55E; }
.hero-card-head .title { font-size: 13px; color: var(--ink-500); }

.score {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; border-radius: var(--radius-lg); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.score .label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.score .value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.metric {
  background: var(--bg-tint); border-radius: var(--radius);
  padding: 12px 12px 10px; text-align: left;
}
.metric .name { font-size: 12px; color: var(--ink-500); margin-bottom: 6px; }
.metric .num { font-size: 18px; font-weight: 700; color: var(--ink-900); line-height: 1; }

.actions {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 8px;
}
.actions .pill {
  padding: 10px 0; text-align: center;
  border-radius: var(--radius-full); font-weight: 600; font-size: 14px;
}
.actions .pill.is-primary { background: var(--brand-500); color: #fff; }
.actions .pill.is-secondary { background: var(--brand-50); color: var(--brand-600); }

.trend {
  margin-top: 14px;
  background: var(--bg-tint); border-radius: var(--radius);
  padding: 14px; height: 90px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .actions { grid-template-columns: 1fr 1fr; }
}

/* ====================== Generic grids ====================== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ====================== Card ====================== */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.card h3 { font-size: 18px; }
.card .icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--brand-50); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card .icon-wrap img { width: 28px; height: 28px; }

.card-soft {
  background: var(--bg-tint); border-color: transparent;
}
.card-soft:hover { background: #fff; border-color: var(--brand-200); }

/* ====================== Section headers with light bg ====================== */
.section-soft { background: var(--bg-soft); }

/* ====================== Tables ====================== */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.data-table thead th { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .ver { font-weight: 700; color: var(--brand-600); }

/* ====================== Spec strip ====================== */
.spec-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 32px;
}
.spec-item {
  padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 14px;
}
.spec-item img { width: 32px; height: 32px; flex-shrink: 0; }
.spec-item div strong { display: block; font-size: 16px; color: var(--ink-900); }
.spec-item div span { font-size: 13px; color: var(--ink-500); }
@media (max-width: 860px) { .spec-strip { grid-template-columns: repeat(2, 1fr); } }

/* ====================== Use case ====================== */
.usecase { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.usecase .card .num { font-size: 13px; color: var(--brand-500); font-weight: 700; letter-spacing: 0.08em; }

/* ====================== Testimonial ====================== */
.testimonials { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.t-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; }
.t-card .stars { display: flex; gap: 2px; }
.t-card .stars img { width: 18px; height: 18px; }
.t-card blockquote { margin: 0; color: var(--ink-700); font-size: 15.5px; line-height: 1.7; }
.t-card .author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-300), var(--brand-500));
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.t-card .author .meta strong { display: block; font-size: 14.5px; color: var(--ink-900); }
.t-card .author .meta span { font-size: 12.5px; color: var(--ink-500); }

@media (max-width: 980px) { .testimonials, .usecase { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .testimonials, .usecase { grid-template-columns: 1fr; } }

/* ====================== Download page ====================== */
.download-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.download-table th, .download-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: middle; }
.download-table thead th { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.download-table tbody tr:last-child td { border-bottom: 0; }
.download-table .ver-pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--brand-50); color: var(--brand-600); font-weight: 600; font-size: 12.5px; }
.download-table .ver-pill.legacy { background: #FFF4E0; color: #B26A00; }
.download-table .ver-pill.beta { background: #E5F8F0; color: #0F8B5F; }

.download-grid {
  display: grid; align-items: start;
}
.qr-box { background: var(--bg-tint); border-radius: var(--radius-xl); padding: 28px; }
.qr-cards { display: grid; gap: 18px; }
.qr-card { background: #fff; border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 14px; align-items: center;
  border: 1px solid var(--border); }
.qr-card img { width: 124px; height: 124px; border-radius: var(--radius); border: 1px solid var(--border); }
.qr-card .meta strong { display: block; font-size: 15px; color: var(--ink-900); margin-bottom: 4px; }
.qr-card .meta span { font-size: 13.5px; color: var(--ink-500); }
.qr-card .meta a { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 13px; }

.changelog { display: grid; gap: 18px; }
.changelog-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
  display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: start;
}
.changelog-item .ver { font-weight: 700; color: var(--brand-600); font-size: 16px; }
.changelog-item .date { font-size: 13px; color: var(--ink-500); display: block; margin-top: 2px; }
.changelog-item ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-700); font-size: 14.5px; }
.changelog-item ul li { margin-bottom: 4px; }
@media (max-width: 760px) { .download-grid { grid-template-columns: 1fr; } .changelog-item { grid-template-columns: 1fr; gap: 8px; } }

/* ====================== Steps ====================== */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step .step-no {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-500); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-600); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* ====================== FAQ ====================== */
.faq { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--t-fast);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-weight: 600; color: var(--ink-900); font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform var(--t); flex-shrink: 0; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--brand-300); }
.faq-item .body { padding: 0 26px 22px; color: var(--ink-700); font-size: 15px; }

/* ====================== CTA banner ====================== */
.cta-banner {
  margin: 80px 0; max-width: var(--container);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; padding: 56px 40px; border-radius: var(--radius-2xl);
  display: grid; grid-template-columns: 1.5fr auto; align-items: center; gap: 30px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 300px; height: 300px;
  background: rgba(255,255,255,0.10); border-radius: 50%;z-index: -1;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { margin: 0; opacity: 0.92; }
.cta-banner .actions { display: flex; gap: 12px; }
.cta-banner .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.cta-banner .btn-primary:hover { color: var(--brand-700); background: #fff; }
.cta-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; padding: 40px 26px; text-align: center; } .cta-banner .actions { justify-content: center; flex-wrap: wrap; } }

/* ====================== Footer ====================== */
.site-footer {
  background: #0F0E1A; color: #B8B0E0; padding: 60px 0 24px; margin-top: 0;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #B8B0E0; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { width: 60px; height: 60px;object-fit: contain; }
.footer-brand p { margin: 0; font-size: 14px; color: #8B85B0; max-width: 280px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: #8B85B0;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ====================== Modal ====================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 14, 26, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal.is-open { display: flex;  left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal-dialog {
  background: #fff; border-radius: var(--radius-2xl);
  width: 100%; max-width: 720px; max-height: calc(100vh - 48px); overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: zoomIn 0.22s ease;
}
.modal-head {
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.modal-head h2 { font-size: 18px; margin: 0; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-tint);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-600); transition: background var(--t-fast);
}
.modal-close:hover { background: var(--brand-50); color: var(--brand-500); }
.modal-body { padding: 28px; }

.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px;
  background: var(--bg-tint); padding: 6px; border-radius: var(--radius-full); }
.modal-tabs button {
  padding: 10px 0; border-radius: var(--radius-full); font-weight: 600; font-size: 14px;
  color: var(--ink-600);
}
.modal-tabs button.is-active { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.modal-pane { display: none; }
.modal-pane.is-active { display: block; }

.qr-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.qr-pane {
  background: var(--bg-tint); border-radius: var(--radius-lg); padding: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.qr-pane img { width: 180px; height: 180px; border-radius: var(--radius); background: #fff; padding: 8px; border: 1px solid var(--border); }
.qr-pane strong { font-size: 14.5px; color: var(--ink-900); text-align: center; }
.qr-pane span { font-size: 12.5px; color: var(--ink-500); }
@media (max-width: 560px) { .qr-grid { grid-template-columns: 1fr; } }

.version-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.version-card .meta strong { display: block; font-size: 14.5px; color: var(--ink-900); margin-bottom: 3px; }
.version-card .meta span { font-size: 12.5px; color: var(--ink-500); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ====================== Sub page hero ====================== */
.page-hero {
  padding: 96px 0 56px;
  background: linear-gradient(180deg, #FBFAFE 0%, #F5F1FF 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .breadcrumb { font-size: 14px; color: var(--ink-500); margin-bottom: 18px; }
.page-hero .breadcrumb a { color: var(--ink-500); }
.page-hero .breadcrumb a:hover { color: var(--brand-500); }
.page-hero .breadcrumb span { margin: 0 8px; color: var(--ink-300); }

/* ====================== Feature module ====================== */
.feature-block { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 64px; }
.feature-block.reverse > :first-child { order: 2; }
.feature-block img { border-radius: var(--radius-2xl); border: 1px solid var(--border); }
.feature-block .copy h2 { margin-bottom: 14px; }
.feature-block .copy ul { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-block .copy ul li {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
  font-size: 15px; color: var(--ink-700);
}
.feature-block .copy ul li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px;
  background: url('images/icon-check.svg') no-repeat center / contain;
}
.feature-block .mock {
  background: linear-gradient(135deg, #fff, #F5F3FF); border-radius: var(--radius-2xl);
  border: 1px solid var(--border); padding: 32px; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 980px) {
  .feature-block { grid-template-columns: 1fr; }
  .feature-block.reverse > :first-child { order: 0; }
}

/* ====================== About ====================== */
.team-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px;
}
.team-card .avatar-lg { width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; margin-bottom: 16px; }
.team-card h3 { font-size: 18px; margin-bottom: 2px; }
.team-card .role { font-size: 13px; color: var(--brand-500); font-weight: 600; display: block; margin-bottom: 12px; }
.team-card p { font-size: 14.5px; color: var(--ink-600); margin: 0; }

/* ====================== Misc ====================== */
.note-line { font-size: 13.5px; color: var(--ink-500); margin-top: 6px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--brand-50); color: var(--brand-600); font-size: 12.5px; font-weight: 600;
}

.divider { height: 1px; background: var(--border); margin: 40px 0; border: 0; }
