html {
  scroll-behavior: smooth;
}

:root {
  color-scheme: light;
  --bg: #eef3ff;
  --surface: rgba(255, 255, 255, 0.76);
  --border: rgba(27, 45, 92, 0.12);
  --border-strong: rgba(41, 103, 255, 0.18);
  --text: #13213e;
  --muted: #5e6f93;
  --brand: #2967ff;
  --brand-deep: #1638a4;
  --mint: #16c6c4;
  --shadow-lg: 0 28px 70px rgba(25, 44, 94, 0.13);
  --shadow-md: 0 18px 42px rgba(25, 44, 94, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: 1180px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(41, 103, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(22, 198, 196, 0.2), transparent 26%),
    linear-gradient(180deg, #f6f9ff 0%, #edf3ff 46%, #f9fbff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

body::before {
  width: 220px;
  height: 220px;
  top: 10vh;
  right: 6vw;
  background: rgba(111, 170, 255, 0.28);
}

body::after {
  width: 260px;
  height: 260px;
  bottom: 8vh;
  left: 4vw;
  background: rgba(22, 198, 196, 0.18);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

p,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(246, 249, 255, 0.82);
  border-bottom: 1px solid rgba(27, 45, 92, 0.08);
}

.header-row,
.footer-row,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-row {
  padding: 18px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 255, 0.95));
  border: 1px solid rgba(41, 103, 255, 0.14);
  box-shadow: 0 14px 28px rgba(41, 103, 255, 0.15);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(41, 103, 255, 0.9);
  border-radius: 11px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 21px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 198, 196, 0.98), rgba(41, 103, 255, 0.16));
  box-shadow: 0 0 18px rgba(22, 198, 196, 0.3);
}

.brand-mark-grid {
  position: absolute;
  left: 16px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(41, 103, 255, 0.95);
  box-shadow:
    16px 0 0 rgba(41, 103, 255, 0.95),
    0 16px 0 rgba(41, 103, 255, 0.95),
    16px 16px 0 rgba(41, 103, 255, 0.95),
    8px 24px 0 rgba(41, 103, 255, 0.72);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-deep);
  background: rgba(41, 103, 255, 0.1);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 45, 92, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
}

.language-picker span {
  color: var(--brand-deep);
  font-weight: 700;
}

.language-picker select {
  min-width: 124px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.language-picker select:focus-visible {
  outline: 2px solid rgba(41, 103, 255, 0.34);
  outline-offset: 4px;
}

main {
  padding-bottom: 72px;
}

section {
  margin-top: 42px;
}

.hero-section,
.page-hero {
  padding-top: 24px;
}

.hero-shell,
.split-layout,
.content-shell,
.help-grid,
.page-hero-inner {
  display: grid;
  gap: 24px;
}

.hero-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.hero-copy,
.hero-panel,
.article-card,
.toc-card,
.doc-card,
.feature-card,
.format-card,
.split-card,
.stat-card,
.hero-side-card,
.mini-card,
.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.hero-copy,
.hero-panel,
.article-card,
.toc-card,
.split-card,
.hero-side-card {
  padding: 28px;
}

.glow-panel {
  position: relative;
  overflow: hidden;
}

.glow-panel::after {
  content: "";
  position: absolute;
  inset: -20% auto auto 58%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(41, 103, 255, 0.22);
  filter: blur(70px);
  pointer-events: none;
}

.eyebrow,
.feature-tag,
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22, 198, 196, 0.12);
  color: #0f5f71;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.15;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
}

.hero-lede,
.section-head p,
.policy-section p,
.help-section p,
.feature-card p,
.format-card p,
.doc-card p,
.mini-card p,
.stat-card span,
.screenshot-card p,
.split-card p,
.hero-side-card p {
  color: var(--muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 45, 92, 0.08);
  color: #36528c;
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), #5890ff);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(41, 103, 255, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-deep);
  border: 1px solid var(--border-strong);
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

.stats-grid,
.feature-grid,
.format-grid,
.docs-grid,
.gallery-grid,
.mini-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.feature-card,
.format-card,
.doc-card,
.screenshot-card,
.mini-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
}

.mini-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.section-head {
  align-items: end;
  margin-bottom: 22px;
}

.section-head > * {
  flex: 1;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.format-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.docs-grid,
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-list {
  margin: 0;
  color: var(--muted);
}

.mini-list li + li {
  margin-top: 7px;
}

.split-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
}

.spotlight-card {
  background:
    radial-gradient(circle at top right, rgba(41, 103, 255, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.page-hero-inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.hero-side-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.hero-side-card p {
  width: 100%;
  margin-top: 8px;
}

.content-shell {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  align-items: start;
}

.toc-card {
  position: sticky;
  top: 102px;
}

.toc-nav {
  display: grid;
  gap: 10px;
}

.toc-nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.toc-nav a:hover {
  color: var(--brand);
}

.policy-section + .policy-section,
.help-section + .help-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(27, 45, 92, 0.08);
}

.policy-list li + li,
.step-list li + li {
  margin-top: 10px;
}

.note-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(245, 248, 255, 0.88);
  border: 1px solid rgba(27, 45, 92, 0.08);
}

.help-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.small-gap {
  margin-top: 14px;
}

.matrix-panel,
.process-stack,
.support-stack {
  display: grid;
  gap: 14px;
}

.matrix-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 45, 92, 0.08);
}

.matrix-top,
.wire-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.matrix-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(41, 103, 255, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.matrix-pill.active {
  background: linear-gradient(135deg, var(--brand), #5890ff);
  color: #ffffff;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.matrix-box {
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(41, 103, 255, 0.06);
  border: 1px solid rgba(41, 103, 255, 0.1);
}

.matrix-box.solid {
  background: linear-gradient(135deg, rgba(41, 103, 255, 0.2), rgba(22, 198, 196, 0.16));
}

.matrix-flow {
  display: grid;
  gap: 10px;
}

.matrix-step,
.process-item,
.support-tile {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(245, 248, 255, 0.88);
  border: 1px solid rgba(27, 45, 92, 0.08);
}

.matrix-step span,
.process-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-step strong,
.process-item strong,
.support-tile strong {
  display: block;
  margin-bottom: 4px;
}

.process-item p,
.support-tile p {
  margin: 0;
  color: var(--muted);
}

.wireframe {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.92), rgba(232, 239, 255, 0.85));
  border: 1px solid rgba(27, 45, 92, 0.08);
}

.wire-bar,
.wire-chip,
.wire-block,
.wire-square {
  display: block;
  border-radius: 12px;
  background: rgba(41, 103, 255, 0.12);
}

.wire-bar {
  height: 12px;
}

.wire-bar.wide {
  width: 84%;
}

.wire-bar.mid {
  width: 62%;
}

.wire-bar.short {
  width: 46%;
}

.wire-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wire-block {
  min-height: 48px;
}

.wire-block.tall {
  min-height: 108px;
}

.wire-chip {
  width: 68px;
  height: 26px;
  border-radius: 999px;
}

.wire-square {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(41, 103, 255, 0.18), rgba(22, 198, 196, 0.12)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(41, 103, 255, 0.12);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 18px;
  border: 1px solid rgba(27, 45, 92, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq-list details p {
  margin-top: 12px;
}

.site-footer {
  padding: 34px 0 52px;
}

.site-footer a {
  color: var(--brand-deep);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-row {
  padding-top: 24px;
  border-top: 1px solid rgba(27, 45, 92, 0.08);
  align-items: start;
}

.footer-row > div {
  display: grid;
  gap: 8px;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-right: 1.2rem;
  padding-left: 0;
}

@media (max-width: 1100px) {
  .hero-shell,
  .split-layout,
  .content-shell,
  .help-grid,
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .format-grid,
  .docs-grid,
  .gallery-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 780px) {
  .header-row,
  .footer-row,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .language-picker {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy,
  .hero-panel,
  .article-card,
  .toc-card,
  .split-card,
  .hero-side-card {
    padding: 22px;
  }

  .stats-grid,
  .feature-grid,
  .format-grid,
  .docs-grid,
  .gallery-grid,
  .compact-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}
