:root {
  --xiv-bg: #ffffff;
  --xiv-bg-soft: #f5f7fb;
  --xiv-ink: #0f172a;
  --xiv-muted: #64748b;
  --xiv-line: #e2e8f0;
  --xiv-brand: #2563eb;
  --xiv-brand-dark: #1d4ed8;
  --xiv-brand-soft: #eff6ff;
  --xiv-purple: #7c3aed;
  --xiv-green: #16a34a;
  --xiv-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  --xiv-radius: 16px;
  --xiv-header-h: 72px;
  --xiv-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.xiv-body {
  margin: 0;
  color: var(--xiv-ink);
  font-family: var(--xiv-font);
  background: var(--xiv-bg);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.xiv-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.xiv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--xiv-header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--xiv-line);
}

.xiv-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.xiv-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.xiv-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.xiv-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
}

.xiv-brand-zh {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--xiv-brand);
}

.xiv-brand-en {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xiv-ink);
}

.xiv-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.xiv-nav a {
  color: var(--xiv-muted);
  font-size: 0.92rem;
  font-weight: 550;
  transition: color 0.15s ease;
}

.xiv-nav a:hover {
  color: var(--xiv-brand);
}

.xiv-header-actions {
  display: flex;
  align-items: center;
  margin-left: 0.85rem;
}

.xiv-nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xiv-line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.xiv-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--xiv-ink);
  border-radius: 2px;
}

/* Buttons */
.xiv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}

.xiv-btn:hover {
  transform: translateY(-1px);
}

.xiv-btn:disabled,
.xiv-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.xiv-btn-primary {
  background: var(--xiv-brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  padding: 0.6rem 1.1rem;
  font-size: 0.92rem;
}

.xiv-btn-primary:hover {
  background: var(--xiv-brand-dark);
}

.xiv-btn-ghost {
  background: #fff;
  border-color: #bfdbfe;
  color: var(--xiv-brand);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.xiv-btn-ghost:hover {
  background: var(--xiv-brand-soft);
}

.xiv-btn-outline {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--xiv-ink);
  padding: 0.7rem 1.2rem;
}

.xiv-btn-outline:hover {
  border-color: var(--xiv-brand);
  color: var(--xiv-brand);
  background: var(--xiv-brand-soft);
}

.xiv-btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  border-radius: 14px;
}

.xiv-btn-lg span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  gap: 0.15rem;
}

.xiv-btn-lg small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.xiv-btn-block {
  width: 100%;
  padding: 0.85rem 1.2rem;
}

/* Hero */
.xiv-hero {
  padding: 3.25rem 0 2.5rem;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(700px 360px at 95% 0%, rgba(124, 58, 237, 0.06), transparent 50%),
    #fff;
}

.xiv-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}

.xiv-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1b3a;
}

.xiv-accent {
  color: var(--xiv-brand);
  display: inline;
}

.xiv-lead {
  margin: 1.1rem 0 1.6rem;
  color: var(--xiv-muted);
  font-size: 1.08rem;
  max-width: 34rem;
}

.xiv-lead strong {
  color: var(--xiv-ink);
}

.xiv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.xiv-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--xiv-green);
  font-size: 0.92rem;
  font-weight: 600;
}

.xiv-trust svg {
  flex-shrink: 0;
}

/* Hero app mock */
.xiv-hero-visual {
  perspective: 1200px;
}

.xiv-app-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--xiv-shadow), 0 0 0 1px rgba(15, 23, 42, 0.08);
  transform: rotateY(-4deg) rotateX(2deg);
}

.xiv-app-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #1e293b;
}

.xiv-app-chrome > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.xiv-app-chrome > span:nth-child(1) { background: #f87171; }
.xiv-app-chrome > span:nth-child(2) { background: #fbbf24; }
.xiv-app-chrome > span:nth-child(3) { background: #34d399; }

.xiv-app-title {
  margin-left: 0.6rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}

.xiv-app-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 320px;
}

.xiv-app-side {
  background: #111827;
  padding: 0.75rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.xiv-side-item {
  height: 42px;
  border-radius: 8px;
  background: #1f2937;
}

.xiv-side-item.is-active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.xiv-app-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.55rem;
  padding: 0.65rem;
  background: #0b1220;
}

.xiv-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.xiv-thumb-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.xiv-thumb-grid .p1 { background-image: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.xiv-thumb-grid .p2 { background-image: linear-gradient(135deg, #047857, #86efac); }
.xiv-thumb-grid .p3 { background-image: linear-gradient(135deg, #7c2d12, #fdba74); }
.xiv-thumb-grid .p4 { background-image: linear-gradient(135deg, #4c1d95, #c4b5fd); }
.xiv-thumb-grid .p5 { background-image: linear-gradient(135deg, #0e7490, #a5f3fc); }
.xiv-thumb-grid .p6 { background-image: linear-gradient(135deg, #9f1239, #fda4af); }

.xiv-preview-pane {
  border-radius: 10px;
  overflow: hidden;
  background: #111827;
}

.xiv-preview-photo {
  height: 100%;
  min-height: 220px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.55)),
    linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 40%, #f59e0b 100%);
}

/* Highlights */
.xiv-highlights {
  padding: 0.5rem 0 2.5rem;
}

.xiv-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.xiv-highlight-grid article {
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: var(--xiv-radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.xiv-highlight-grid h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
}

.xiv-highlight-grid p {
  margin: 0;
  color: var(--xiv-muted);
  font-size: 0.94rem;
}

.xiv-hi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.xiv-hi-icon svg {
  width: 22px;
  height: 22px;
}

.xiv-hi-blue { background: #dbeafe; color: var(--xiv-brand); }
.xiv-hi-purple { background: #ede9fe; color: var(--xiv-purple); }
.xiv-hi-green { background: #dcfce7; color: var(--xiv-green); }

/* Sections */
.xiv-section {
  padding: 3.5rem 0;
}

.xiv-section-soft {
  background: var(--xiv-bg-soft);
}

.xiv-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.xiv-section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.xiv-section-head p {
  margin: 0;
  color: var(--xiv-muted);
}

.xiv-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.xiv-feature-grid article {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: 14px;
}

.xiv-feature-grid h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.xiv-feature-grid p {
  margin: 0;
  color: var(--xiv-muted);
  font-size: 0.93rem;
}

.xiv-feat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--xiv-brand-soft);
  color: var(--xiv-brand);
  display: grid;
  place-items: center;
}

.xiv-feat-icon svg {
  width: 22px;
  height: 22px;
}

/* Metrics */
.xiv-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.xiv-metric-grid article {
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: var(--xiv-radius);
  padding: 1.35rem 1.4rem;
}

.xiv-metric-grid h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--xiv-muted);
  font-weight: 600;
}

.xiv-metric-value {
  margin: 0.55rem 0 0.9rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.xiv-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.xiv-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, var(--xiv-brand));
}

.xiv-bar-green span {
  background: linear-gradient(90deg, #86efac, var(--xiv-green));
}

.xiv-metric-note {
  margin: 0.7rem 0 0;
  color: var(--xiv-muted);
  font-size: 0.88rem;
}

/* Screenshots */
.xiv-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.xiv-shot-grid h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
}

.xiv-shot-grid p {
  margin: 0;
  color: var(--xiv-muted);
  font-size: 0.92rem;
}

.xiv-shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--xiv-line);
  background: #0f172a;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  min-height: 180px;
}

.xiv-shot-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  background: #1e293b;
}

.xiv-shot-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.xiv-shot-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.55rem;
}

.xiv-shot-wall-grid i {
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: linear-gradient(135deg, #334155, #64748b);
}

.xiv-shot-wall-grid i:nth-child(2) { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.xiv-shot-wall-grid i:nth-child(3) { background: linear-gradient(135deg, #065f46, #6ee7b7); }
.xiv-shot-wall-grid i:nth-child(5) { background: linear-gradient(135deg, #7c2d12, #fdba74); }
.xiv-shot-wall-grid i:nth-child(7) { background: linear-gradient(135deg, #4c1d95, #c4b5fd); }
.xiv-shot-wall-grid i:nth-child(9) { background: linear-gradient(135deg, #9f1239, #fda4af); }

.xiv-shot-photo {
  min-height: 150px;
  background:
    linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.5)),
    linear-gradient(135deg, #0c4a6e, #38bdf8 45%, #fbbf24);
}

.xiv-shot-org-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.45rem;
  padding: 0.55rem;
  min-height: 150px;
}

.xiv-shot-org-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.xiv-shot-org-list span {
  height: 28px;
  border-radius: 6px;
  background: #1e293b;
}

.xiv-shot-org-list span:first-child {
  background: linear-gradient(90deg, #2563eb, #1e293b);
}

.xiv-shot-org-meta {
  border-radius: 8px;
  background:
    linear-gradient(160deg, #1e3a8a, #0ea5e9 55%, #334155);
}

/* Pricing */
.xiv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  gap: 1.5rem;
  justify-content: center;
}

.xiv-price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: 20px;
  padding: 2rem 1.9rem 1.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.xiv-price-card-popular {
  border-color: #93c5fd;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.13);
}

.xiv-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.2rem;
  background: var(--xiv-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.xiv-price-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.xiv-price {
  margin: 0.75rem 0 1.1rem;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.xiv-price-card ul {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.xiv-price-card li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--xiv-muted);
  font-size: 0.95rem;
}

.xiv-price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--xiv-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M9.5 16.2 5.8 12.5l1.4-1.4 2.3 2.3 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}

/* FAQ */
.xiv-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
}

.xiv-faq {
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: 14px;
  padding: 0.15rem 1rem;
  margin-bottom: 0.85rem;
}

.xiv-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.95rem 1.5rem 0.95rem 0;
  position: relative;
}

.xiv-faq summary::-webkit-details-marker {
  display: none;
}

.xiv-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--xiv-brand);
  font-size: 1.25rem;
  font-weight: 600;
}

.xiv-faq[open] summary::after {
  content: "–";
}

.xiv-faq p {
  margin: 0 0 1rem;
  color: var(--xiv-muted);
  font-size: 0.94rem;
}

.xiv-faq a {
  color: var(--xiv-brand);
  font-weight: 600;
}

/* Download */
.xiv-download {
  padding: 1rem 0 3rem;
}

.xiv-download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #ffffff 45%, #f8fafc);
  border: 1px solid #bfdbfe;
}

.xiv-download-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.xiv-download-panel p {
  margin: 0;
  color: var(--xiv-muted);
}

.xiv-download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.xiv-cta-note {
  margin: 0;
  color: var(--xiv-muted);
  font-size: 0.82rem;
}

/* Changelog */
.xiv-changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.xiv-changelog li {
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.xiv-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.xiv-log-meta span,
.xiv-log-meta time {
  color: var(--xiv-muted);
  font-size: 0.85rem;
}

.xiv-changelog p {
  margin: 0;
  color: var(--xiv-muted);
}

.xiv-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--xiv-muted);
  background: #fff;
  border: 1px dashed var(--xiv-line);
  border-radius: 14px;
}

/* Footer */
.xiv-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

.xiv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.85fr) 1.2fr;
  gap: 1.75rem;
}

.xiv-footer .xiv-brand-zh {
  color: #60a5fa;
}

.xiv-footer .xiv-brand-en {
  color: #f8fafc;
}

.xiv-footer-brand p {
  margin: 0.85rem 0 1rem;
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 16rem;
}

.xiv-footer-brand p span {
  display: block;
}

.xiv-social {
  display: flex;
  gap: 0.55rem;
}

.xiv-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1e293b;
  color: #e2e8f0;
  display: grid;
  place-items: center;
}

.xiv-social a:hover {
  background: var(--xiv-brand);
}

.xiv-footer h4 {
  margin: 0 0 0.85rem;
  color: #f8fafc;
  font-size: 0.92rem;
}

.xiv-footer nav {
  display: grid;
  gap: 0.55rem;
}

.xiv-footer nav a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.xiv-footer nav a:hover {
  color: #fff;
}

.xiv-footer-subscribe p {
  margin: 0 0 0.75rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

.xiv-subscribe {
  display: flex;
  gap: 0.45rem;
}

.xiv-subscribe input {
  flex: 1;
  min-width: 0;
  border: 1px solid #334155;
  background: #111827;
  color: #f8fafc;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-family: inherit;
}

.xiv-subscribe .xiv-btn {
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
}

.xiv-subscribe-msg {
  margin: 0.55rem 0 0;
  color: #86efac;
  font-size: 0.85rem;
}

.xiv-footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.xiv-footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.xiv-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--xiv-brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.xiv-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .xiv-hero-grid,
  .xiv-feature-grid,
  .xiv-metric-grid,
  .xiv-shot-grid,
  .xiv-faq-grid,
  .xiv-highlight-grid {
    grid-template-columns: 1fr;
  }

  .xiv-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .xiv-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .xiv-app-frame {
    transform: none;
  }

  .xiv-download-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .xiv-download-actions {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .xiv-nav-toggle {
    display: flex;
  }

  .xiv-nav {
    display: none;
    position: absolute;
    top: var(--xiv-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--xiv-line);
    padding: 0.5rem 1rem 1rem;
    margin: 0;
  }

  .xiv-nav.open {
    display: flex;
  }

  .xiv-nav a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--xiv-line);
  }

  .xiv-header-actions .xiv-btn-ghost {
    display: none;
  }

  .xiv-header-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .xiv-section {
    padding: 2.75rem 0;
  }

  .xiv-footer-grid {
    grid-template-columns: 1fr;
  }

  .xiv-header-actions .xiv-btn-primary {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .xiv-header .xiv-brand-en {
    display: none;
  }

  .xiv-subscribe {
    flex-direction: column;
  }

  .xiv-app-main {
    grid-template-columns: 1fr;
  }

  .xiv-app-body {
    grid-template-columns: 56px 1fr;
  }
}

/* Legal / help docs (Markdown → HTML) */
.xiv-doc {
  padding: 2.5rem 0 4rem;
  background: linear-gradient(180deg, #fff 0%, var(--xiv-bg-soft) 100%);
  min-height: calc(100vh - var(--xiv-header-h) - 280px);
}

.xiv-doc-body {
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: var(--xiv-radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.xiv-doc-body > *:first-child {
  margin-top: 0;
}

.xiv-doc-body > *:last-child {
  margin-bottom: 0;
}

.xiv-doc-body h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.xiv-doc-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.xiv-doc-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.xiv-doc-body p,
.xiv-doc-body li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
}

.xiv-doc-body p {
  margin: 0.75rem 0;
}

.xiv-doc-body ul,
.xiv-doc-body ol {
  margin: 0.75rem 0;
  padding-left: 1.35rem;
}

.xiv-doc-body li + li {
  margin-top: 0.35rem;
}

.xiv-doc-body a {
  color: var(--xiv-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.xiv-doc-body a:hover {
  color: var(--xiv-brand-dark);
}

.xiv-doc-body strong {
  color: var(--xiv-ink);
  font-weight: 700;
}

.xiv-doc-body hr {
  border: 0;
  border-top: 1px solid var(--xiv-line);
  margin: 1.75rem 0;
}

.xiv-doc-back {
  margin: 1.5rem 0 0;
}

.xiv-doc-back a {
  color: var(--xiv-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.xiv-doc-back a:hover {
  color: var(--xiv-brand);
}

@media (max-width: 640px) {
  .xiv-doc-body {
    padding: 1.35rem 1.15rem;
  }
}

/* XImageViewer product-led landing page */
.xiv-hero {
  padding: 3.6rem 0 3rem;
  background: linear-gradient(180deg, #f5f8ff 0%, #fff 82%);
}

.xiv-hero-grid {
  grid-template-columns: minmax(470px, .9fr) minmax(520px, 1.1fr);
  gap: 2.5rem;
}

.xiv-hero h1 {
  max-width: 10.5em;
  font-size: clamp(2.7rem, 4.7vw, 4rem);
  line-height: 1.02;
}

.xiv-lead {
  max-width: 31rem;
  font-size: 1.12rem;
  line-height: 1.65;
}

.xiv-hero-product {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe4f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .16);
}

.xiv-hero-product img {
  display: block;
  width: 100%;
  height: auto;
}

.xiv-proof {
  padding: 1.5rem 0;
  border-block: 1px solid var(--xiv-line);
  background: #fff;
}

.xiv-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.xiv-proof-grid > div {
  min-width: 0;
  padding: .35rem 1.5rem;
  border-left: 1px solid var(--xiv-line);
}

.xiv-proof-grid > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.xiv-proof-grid strong,
.xiv-proof-grid span {
  display: block;
}

.xiv-proof-grid strong {
  color: #0b1b3a;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.xiv-proof-grid span {
  margin-top: .2rem;
  color: var(--xiv-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.xiv-capability-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 5rem;
  align-items: start;
}

.xiv-capability-intro {
  position: sticky;
  top: calc(var(--xiv-header-h) + 2rem);
}

.xiv-capability-intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.xiv-capability-intro p {
  margin: 0;
  color: var(--xiv-muted);
  line-height: 1.75;
}

.xiv-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 3rem;
}

.xiv-capability-grid article {
  min-width: 0;
}

.xiv-capability-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: var(--xiv-brand-soft);
  color: var(--xiv-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.xiv-capability-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xiv-capability-grid h3 {
  margin: 1rem 0 .45rem;
  font-size: 1.18rem;
}

.xiv-capability-grid p {
  margin: 0;
  color: var(--xiv-muted);
  font-size: .94rem;
  line-height: 1.65;
}

.xiv-product-section {
  background: #f3f6fb;
}

.xiv-product-showcase {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: 1rem;
}

.xiv-product-showcase figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe4f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

.xiv-product-showcase img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top left;
}

.xiv-product-main img {
  aspect-ratio: 1600 / 870;
}

.xiv-product-side {
  display: grid;
  gap: 1rem;
}

.xiv-product-side img {
  height: 210px;
  aspect-ratio: 2.25;
}

.xiv-product-side figure:last-child img {
  object-position: 50% 28%;
}

.xiv-product-showcase figcaption {
  display: block;
  padding: 1rem 1.1rem 1.15rem;
}

.xiv-product-showcase figcaption strong,
.xiv-product-showcase figcaption span {
  display: block;
}

.xiv-product-showcase figcaption span {
  margin-top: .25rem;
  color: var(--xiv-muted);
  font-size: .88rem;
}

.xiv-trial-cta {
  padding: 2.5rem 0;
  background: #fff;
}

.xiv-trial-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
}

.xiv-trial-inner h2 {
  margin: 0 0 .35rem;
  font-size: 1.55rem;
}

.xiv-trial-inner p,
.xiv-plan-summary,
.xiv-price-note {
  color: var(--xiv-muted);
}

.xiv-trial-inner p,
.xiv-plan-summary {
  margin: 0;
}

.xiv-price-card {
  display: flex;
  min-height: 450px;
  flex-direction: column;
}

.xiv-price-card ul {
  margin-top: 1.2rem;
  flex: 1;
}

.xiv-price-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: .86rem;
}

.xiv-pricing-error {
  max-width: 984px;
  margin: 1rem auto 0;
  padding: .8rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}

#features,
#product,
#pricing,
#faq {
  scroll-margin-top: var(--xiv-header-h);
}

.xiv-faq-wrap {
  max-width: 820px;
}

.xiv-faq-list {
  display: grid;
  gap: .7rem;
}

.xiv-faq-list .xiv-faq {
  margin: 0;
}

.xiv-footer-grid {
  grid-template-columns: minmax(260px, 1.7fr) minmax(150px, .7fr) minmax(180px, .8fr);
  gap: 3rem;
}

@media (max-width: 980px) {
  .xiv-hero-grid,
  .xiv-capability-layout,
  .xiv-product-showcase {
    grid-template-columns: 1fr;
  }

  .xiv-hero h1 {
    max-width: 12em;
  }

  .xiv-capability-intro {
    position: static;
  }

  .xiv-proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0;
  }

  .xiv-proof-grid > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .xiv-product-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .xiv-hero {
    padding: 2.25rem 0 2rem;
  }

  .xiv-hero h1 {
    font-size: 2.55rem;
  }

  .xiv-hero-actions,
  .xiv-hero-actions .xiv-btn,
  .xiv-trial-inner .xiv-btn {
    width: 100%;
  }

  .xiv-proof-grid,
  .xiv-capability-grid,
  .xiv-product-side {
    grid-template-columns: 1fr;
  }

  .xiv-proof-grid > div {
    padding: .25rem 0 1rem;
    border-left: 0;
    border-bottom: 1px solid var(--xiv-line);
  }

  .xiv-proof-grid > div:last-child {
    border-bottom: 0;
  }

  .xiv-capability-layout {
    gap: 2rem;
  }

  .xiv-capability-grid {
    gap: 1.4rem;
  }

  .xiv-trial-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.4rem;
  }

  .xiv-product-side img {
    aspect-ratio: 1.75;
  }

  .xiv-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.2rem;
  }

  .xiv-footer-brand {
    grid-column: 1 / -1;
  }

  .xiv-footer-brand p {
    max-width: 22rem;
  }
}
