/* ==========================================================================
   AuriType — Official marketing site
   Palette: deep navy/black + electric cyan + aurora violet/magenta
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-deep: #050810;
  --bg-base: #0A0E1A;
  --bg-elevated: #111827;
  --bg-glass: rgba(17, 24, 39, 0.55);
  --bg-glass-strong: rgba(15, 23, 42, 0.72);

  /* Accents */
  --cyan: #22D3EE;
  --cyan-soft: #67E8F9;
  --cyan-dim: #0891B2;
  --blue: #38BDF8;
  --violet: #818CF8;
  --violet-deep: #6366F1;
  --magenta: #E879F9;
  --purple: #A78BFA;

  /* Text */
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Lines / glow */
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(34, 211, 238, 0.28);
  --glow-cyan: rgba(34, 211, 238, 0.35);
  --glow-violet: rgba(129, 140, 248, 0.35);
  --glow-magenta: rgba(232, 121, 249, 0.25);

  /* Layout */
  --max: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 64px;

  --font: "Inter", "Noto Sans SC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: #041016;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Aurora background ---------- */

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(129, 140, 248, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(232, 121, 249, 0.08), transparent 50%),
    var(--bg-deep);
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite alternate;
}

.aurora-blob--cyan {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -8%;
  left: 15%;
  background: var(--glow-cyan);
}

.aurora-blob--violet {
  width: 36vw;
  height: 36vw;
  max-width: 440px;
  max-height: 440px;
  top: 30%;
  right: -5%;
  background: var(--glow-violet);
  animation-delay: -7s;
}

.aurora-blob--magenta {
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  bottom: 5%;
  left: 35%;
  background: var(--glow-magenta);
  animation-delay: -14s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

/* ---------- Glass ---------- */

.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 8, 16, 0.82);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-wordmark {
  font-size: 1.05rem;
  background: linear-gradient(120deg, var(--text) 30%, var(--cyan-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 导航项样式只管普通链接，别把它们套到 `<a class="btn">` 上：
   `.nav-links a` (0-1-1) 特异性高于 `.btn--primary` (0-1-0)，会把下载按钮的字刷成 --text-muted 灰，
   而 hover 的 `background:` 简写连 `.btn--primary` 的渐变一起重置掉。`:not(.btn)` 排除后
   按钮完全由 `.btn` 那一套负责，与 hero 的按钮一致。 */
.nav-links a:not(.btn) {
  display: block;
  padding: 8px 12px;
  font-size: 0.925rem;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  outline: none;
}

/* 导航那颗下载按钮要白字（`.btn--primary` 默认是近黑墨色 #041016）。
   (0-2-1) 压过 `.btn--primary` (0-1-0)，hero 的按钮不受影响。 */
.nav-links a.btn {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-trailing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-menu {
  margin-left: auto;
}

/* When menu is visible on desktop, keep trailing after it */
.nav {
  flex-wrap: nowrap;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-switcher--menu {
  display: none;
  width: 100%;
}

.lang-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lang-trigger:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
}

.lang-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

.lang-switcher.is-open .lang-trigger {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(17, 24, 39, 0.82);
}

.lang-trigger-label {
  white-space: nowrap;
}

.lang-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.lang-switcher.is-open .lang-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 9.5rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px -18px rgba(0, 0, 0, 0.65),
    0 0 24px -12px rgba(34, 211, 238, 0.18);
}

.lang-switcher--menu .lang-menu {
  left: 0;
  right: 0;
  min-width: 0;
  width: 100%;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lang-option:hover,
.lang-option:focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
  outline: none;
}

.lang-option:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.4);
}

.lang-option.is-active {
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.16),
    rgba(129, 140, 248, 0.14)
  );
}

.lang-option-check {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  opacity: 0;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='%2367E8F9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lang-option.is-active .lang-option-check {
  opacity: 1;
}

html[data-lang="zh-TW"] body {
  font-family: "Inter", "Noto Sans TC", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang TC", "Microsoft JhengHei", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  color: #041016;
  box-shadow: 0 8px 28px -8px var(--glow-cyan);
}

.btn--primary:hover {
  box-shadow: 0 12px 36px -8px var(--glow-violet);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.45);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 112px 24px;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-header h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  /* 与静态模板一致，别再往文案这边要宽度：.hero-title 封顶 3.35rem 时单行需要 ~515px，
     0.92fr 只给到 467px，口号会被挤成两行。面板的宽度由 .panel-figure 向右借视口余量解决。 */
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px 56px;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 24px);
}

.hero-title {
  margin: 0 0 8px;
}

.hero-wordmark {
  display: block;
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  background: linear-gradient(115deg, #F8FAFC 0%, var(--cyan-soft) 42%, var(--violet) 72%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pronunciation {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.hero-tagline {
  margin: 0 0 36px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 28em;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at 50% 40%, var(--glow-cyan), var(--glow-violet) 45%, transparent 70%);
  filter: blur(40px);
  opacity: 0.7;
  z-index: 0;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { opacity: 0.45; transform: scale(0.96); }
  to { opacity: 0.8; transform: scale(1.04); }
}

.mock-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 18px 18px 16px;
  background: var(--bg-glass-strong);
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.mock-dot:nth-child(1) { background: #FB7185; opacity: 0.7; }
.mock-dot:nth-child(2) { background: #FBBF24; opacity: 0.7; }
.mock-dot:nth-child(3) { background: #34D399; opacity: 0.7; }

.mock-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.mock-compose {
  position: relative;
  min-height: 88px;
  padding: 14px 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(5, 8, 16, 0.55);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.mock-line {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.mock-line.muted {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.mock-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
  box-shadow: 0 0 8px var(--glow-cyan);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.mock-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cand {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid transparent;
}

.cand.active {
  color: #041016;
  font-weight: 600;
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet));
  border-color: transparent;
  box-shadow: 0 4px 16px -4px var(--glow-cyan);
}

.mock-wave {
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.9;
}

.wave-svg {
  width: 100%;
  height: 100%;
}

.wave-path {
  animation: wave-shift 4s ease-in-out infinite;
}

.wave-path--b {
  animation-duration: 5.5s;
  animation-direction: reverse;
}

@keyframes wave-shift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-12px); }
}

/* ---------- Brand ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-card {
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.brand-card:hover {
  border-color: rgba(129, 140, 248, 0.35);
  transform: translateY(-3px);
}

.brand-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 56px -28px rgba(34, 211, 238, 0.2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--cyan-soft);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* ---------- Logo showcase ---------- */

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 36px 28px;
  align-items: center;
  text-align: center;
}

.logo-variant {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.logo-variant figcaption,
.strip-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.logo-variant--mono {
  background: rgba(5, 8, 16, 0.5);
  border-radius: var(--radius-sm);
}

.wordmark-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-wave-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.strip-waves {
  width: 100%;
  max-width: 220px;
  height: 48px;
}

.anim-wave {
  animation: wave-shift 3.5s ease-in-out infinite;
}

.anim-wave--delay {
  animation-duration: 4.8s;
  animation-direction: reverse;
}

/* ---------- Open source ---------- */

.oss-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 32px;
}

.oss-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge--license {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(129, 140, 248, 0.25));
  color: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.badge--muted {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.oss-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-weight: 600;
}

.oss-stars .icon {
  color: #FBBF24;
}

.oss-stars-note {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.oss-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 36em;
  font-size: 0.95rem;
}

.oss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.28);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--cyan-soft);
  border-bottom: 2px solid var(--cyan-soft);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  opacity: 0.85;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Download picker ---------- */

.download-picker {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 52rem;
  margin: 0 auto;
}

.dl-os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(5, 8, 16, 0.45);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.dl-os-tab {
  flex: 1 1 auto;
  min-width: 7.5rem;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.dl-os-tab:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.06);
}

.dl-os-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.dl-os-tab.is-active,
.dl-os-tab[aria-selected="true"] {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet));
  box-shadow: 0 8px 22px -10px var(--glow-cyan);
  border-color: transparent;
}

.dl-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dl-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-group-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-chip {
  appearance: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dl-chip:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.28);
}

.dl-chip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.dl-chip.is-active,
.dl-chip[aria-checked="true"] {
  color: var(--cyan-soft);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(8, 145, 178, 0.18);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12) inset,
    0 8px 20px -14px var(--glow-cyan);
}

.dl-ime-note {
  margin: 2px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 44rem;
}

/* 全局 `a { color: inherit; text-decoration: none }`（auritype.css:78）把链接抹成了普通暗灰字，
   所以 .dl-notes 里那条校验和链接要自己补下划线才看得出可点。 */
.dl-ime-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-strong);
}

.dl-ime-note a:hover {
  color: var(--text);
  text-decoration-color: var(--cyan);
}

.dl-summary {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(5, 8, 16, 0.5);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 4px;
}

.dl-cta {
  min-width: 8.5rem;
}

.dl-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.privacy-card {
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.privacy-card:hover {
  border-color: rgba(129, 140, 248, 0.35);
  transform: translateY(-3px);
}

.privacy-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.privacy-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.privacy-footer {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-audit {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-audit a {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-audit a:hover,
.privacy-audit a:focus-visible {
  color: var(--text);
  outline: none;
}

.privacy-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Download roadmap + disabled chips ---------- */

.download-roadmap {
  max-width: 52rem;
  margin: 0 auto 18px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-color: rgba(129, 140, 248, 0.22);
}

.dl-chip.is-disabled,
.dl-chip[aria-disabled="true"],
.dl-chip:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  color: var(--text-dim);
  background: rgba(17, 24, 39, 0.35);
  border-color: rgba(148, 163, 184, 0.1);
  box-shadow: none;
  pointer-events: none;
}

.dl-chip.is-disabled:hover,
.dl-chip[aria-disabled="true"]:hover,
.dl-chip:disabled:hover {
  color: var(--text-dim);
  border-color: rgba(148, 163, 184, 0.1);
}

.dl-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dl-placeholder-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.85;
  line-height: 1.45;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 56px;
  background: rgba(5, 8, 16, 0.6);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 40px;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-copy,
  .footer-placeholder {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  letter-spacing: -0.02em;
}

.footer-pronunciation {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.footer-blurb {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan-soft);
  outline: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-placeholder {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.8;
  line-height: 1.45;
  max-width: 40rem;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .brand-grid,
  .features-grid,
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-picker {
    padding: 24px 20px 28px;
  }

  .logo-strip {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    margin-left: 0;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 24px 28px;
    background: rgba(5, 8, 16, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-menu .btn {
    width: 100%;
  }

  .lang-switcher--menu {
    display: block;
  }

  .lang-switcher--menu .lang-trigger {
    width: 100%;
    justify-content: space-between;
  }


  .brand-grid,
  .features-grid,
  .privacy-grid,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .download-roadmap {
    margin-left: 0;
    margin-right: 0;
  }

  .download-picker {
    padding: 20px 16px 24px;
  }

  .dl-os-tab {
    min-width: calc(50% - 4px);
  }

  .dl-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-cta {
    width: 100%;
  }

  .section {
    padding: 80px 20px;
  }

  .oss-panel {
    padding: 28px 22px;
  }

  .hero-tagline br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aurora-blob,
  .wave-path,
  .anim-wave,
  .mock-glow,
  .mock-cursor,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Current homepage content on the template ---------- */

.nav-product {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* 英文词条包里 brand_name 本身就是 "AuriType IMEs"，此时静态副标题会变成重复字标。 */
[lang="en"] .nav-product,
[lang="en"] .footer-product {
  display: none;
}

.nav-links .btn {
  margin-left: 8px;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:disabled:hover {
  transform: none;
}

.hero-title {
  max-width: 11em;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.16;
  background: linear-gradient(115deg, #F8FAFC 0%, var(--cyan-soft) 42%, var(--violet) 72%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[lang="en"] .hero-title {
  max-width: 16em;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-status {
  margin: 0 0 16px;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-visual .mock-panel {
  /* UA 的 figure { margin: 1em 40px } 全站没重置过，白丢 80px 宽和上下各 1em。 */
  /* hero 被 --max 封顶后，视口两侧剩下的空白可以借给这张 1216px 的横条实拍：
     借宽 = (视口 - hero) / 2，上限 120px，视口没超出 hero 时为 0；
     再留 16px 是因为 100vw 含滚动条宽度，不留就会撞出横向滚动条。 */
  --panel-bleed: max(0px, min(120px, (100vw - var(--max)) / 2 - 16px));
  margin: 0 calc(var(--panel-bleed) * -1) 0 0;
  width: min(100% + var(--panel-bleed), 720px);
  /* 截图自带圆角与投影，内边距收小让它尽量铺满；说明行与页签另有 4px 补偿。 */
  padding: 10px 10px 16px;
}

.panel-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* 三张候选窗截图叠在同一格，靠透明度叠化；容器高度取最高的一张，切换时不跳动。
   不用 visibility 属性做隐藏：`visibility 0s linear .35s` 会让 Chrome 挂住一条永不结束的
   CSSTransition，非活动那张始终算 visible。隐藏的语义改由脚本的 inert / aria-hidden 承担。 */
.panel-shots {
  display: grid;
  overflow: hidden;
  border-radius: 12px;
}

/* 进场用静态模板的缓动语言：淡入 + 轻微回缩落位（transform 比淡出慢，收得住）。 */
.panel-shot {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(1.008);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.panel-shot.is-active {
  opacity: 1;
  transform: none;
  z-index: 1;
  transition:
    opacity 0.35s var(--ease),
    transform 0.9s var(--ease);
}

.panel-timer {
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.panel-timer__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan-soft), var(--violet));
}

@keyframes panel-timer {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.panel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 12px;
  padding-inline: 4px;
}

/* 模板里声波上方那 14px 是 .mock-candidates 的 margin-bottom 给的；
   这里声波挪到页签排下面，间距改由它自己带上沿。 */
.panel-figure .mock-wave {
  margin-top: 14px;
}

.panel-toggle {
  border: 0;
  background: none;
  padding: 4px 2px;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
}

.panel-toggle:hover {
  color: var(--text-muted);
}

.panel-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* 减少动效时不自动轮播，进度条也失去意义，只留手动切换。 */
@media (prefers-reduced-motion: reduce) {
  .panel-shot {
    transition: none;
    transform: none;
  }

  .panel-timer {
    display: none;
  }
}

.panel-figure figcaption {
  margin: 12px 0 0;
  padding-inline: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-tab {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid transparent;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.panel-tab.is-active {
  color: #041016;
  font-weight: 600;
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet));
  border-color: transparent;
  box-shadow: 0 4px 16px -4px var(--glow-cyan);
}

.panel-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.feature-card--wide {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px 36px;
  align-items: center;
  margin-bottom: 18px;
}

.feature-point + .feature-point {
  margin-top: 18px;
}

.features-grid + .privacy-footer {
  margin-top: 18px;
}

.trait-shot {
  margin: 0;
}

.trait-shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.trait-shot figcaption {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-legal {
  grid-column: 1 / -1;
}

.footer-product {
  margin-left: 6px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-icp {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-icp a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .hero-title,
  html[lang="en"] .hero-title {
    max-width: none;
  }

  .feature-card--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links .btn {
    margin-left: 0;
  }
}
