:root {
  color-scheme: light;
  --bg: #fbf5ec;
  --bg-soft: #f7f8fa;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #251a21;
  --ink-soft: #756a75;
  --primary: #af315f;
  --primary-bright: #ff5a7a;
  --primary-soft: #f6dbe5;
  --plum: #6f4c73;
  --lavender: #a77be1;
  --gold: #9a702b;
  --line: #ead7d0;
  --success: #397761;
  --shadow: 0 24px 70px rgba(91, 49, 67, 0.12);
  --shadow-soft: 0 12px 36px rgba(91, 49, 67, 0.08);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --page: min(1160px, calc(100vw - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Noto Sans TC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101114;
  --bg-soft: #15171c;
  --surface: #1a1c22;
  --surface-strong: #22252d;
  --ink: #f4f6fa;
  --ink-soft: #a7adbb;
  --primary: #ff6b8a;
  --primary-bright: #ff7f9c;
  --primary-soft: #472b38;
  --plum: #c297d0;
  --lavender: #b995ee;
  --gold: #d7b36a;
  --line: #2a2e36;
  --success: #75bfa4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html[data-reduced-motion="true"] {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 90, 122, 0.12), transparent 28rem),
    radial-gradient(circle at 93% 8%, rgba(167, 123, 225, 0.12), transparent 26rem),
    var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-link img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(175, 49, 95, 0.18);
}

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

.site-nav a {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink-soft);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  min-height: 44px;
  padding: 9px 13px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 156px;
  padding: 8px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.language-menu a {
  padding: 8px 10px;
  border-radius: 11px;
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  color: var(--primary);
  background: var(--primary-soft);
}

.locale-notice {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.locale-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.locale-notice a {
  color: var(--primary);
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  align-items: center;
  min-height: 680px;
  padding-block: 88px 72px;
  gap: 24px;
  overflow: clip;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 8% 44% 8% -20%;
  border: 1px solid rgba(175, 49, 95, 0.12);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  color: var(--primary);
  font-family: Georgia, "Noto Serif SC", "Noto Serif TC", serif;
  font-style: italic;
  font-weight: 600;
}

.hero-lead,
.page-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  box-shadow: 0 13px 28px rgba(175, 49, 95, 0.22);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button:hover {
  transform: translateY(-2px);
}

.button svg,
.icon-button svg,
.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.hero-proof li {
  padding: 7px 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 560px;
  align-self: stretch;
}

.hero-art::after {
  position: absolute;
  right: 5%;
  bottom: 4%;
  width: 62%;
  height: 18%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  filter: blur(32px);
  content: "";
  pointer-events: none;
}

.hero-illustration {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 48%;
  width: min(760px, 60vw);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 36px rgba(90, 47, 58, 0.13));
  mask-image: radial-gradient(ellipse 47% 52% at 60% 50%, #000 46%, rgba(0, 0, 0, 0.94) 60%, transparent 100%);
  object-fit: contain;
}

.section {
  padding-block: 76px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: end;
  margin-bottom: 34px;
  gap: 40px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4.5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-grid,
.content-grid,
.link-grid,
.step-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.content-card,
.step-card,
.category-card,
.policy-card,
.evidence-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
}

.feature-card:nth-child(2n) {
  transform: translateY(18px);
}

.card-index {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  place-items: center;
  color: var(--primary);
  border-radius: 16px;
  background: var(--primary-soft);
  font-weight: 900;
}

.feature-card h3,
.content-card h3,
.step-card h3,
.policy-card h2,
.evidence-card h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.feature-card p,
.content-card p,
.step-card p,
.policy-card p,
.evidence-card p {
  margin: 0;
  color: var(--ink-soft);
}

.split-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  gap: 22px;
}

.split-copy,
.split-visual {
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.split-copy {
  background: linear-gradient(145deg, var(--surface), var(--primary-soft));
}

.split-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 14px;
  background: var(--surface);
}

.mini-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

.mini-card strong {
  display: block;
  margin-bottom: 5px;
}

.mini-card span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.page-hero {
  position: relative;
  padding-block: 98px 54px;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  top: 38px;
  right: 2%;
  width: min(280px, 38vw);
  aspect-ratio: 1;
  border: 1px solid rgba(175, 49, 95, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px rgba(175, 49, 95, 0.035);
  content: "";
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 9px;
}

.page-meta span {
  padding: 7px 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
}

.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 34px;
}

.prose-layout > * {
  min-width: 0;
}

.screenshots-layout {
  grid-template-columns: minmax(0, 1fr);
}

.prose {
  display: grid;
  gap: 18px;
}

.prose section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.prose h3 {
  margin: 22px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 14px 0 0;
  padding-inline-start: 1.3rem;
}

.prose li + li {
  margin-top: 8px;
}

.side-card {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--surface), var(--primary-soft));
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.side-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.side-card .button {
  width: 100%;
  margin-top: 18px;
}

.spec-list {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.spec-list li {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) 1fr;
  padding: 13px 0;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.spec-list strong {
  color: var(--ink);
}

.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.notice {
  padding: 18px 20px;
  color: var(--ink-soft);
  border-inline-start: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--primary-soft);
}

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

.faq-list details {
  padding: 4px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.faq-list summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 850;
}

.faq-list details p {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.screenshot-carousel {
  position: relative;
  padding: 32px 64px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg-soft));
  box-shadow: var(--shadow-soft);
}

.screenshot-carousel-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screenshot-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.screenshot-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.screenshot-slide {
  display: grid;
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  padding: 0;
  gap: 18px;
  color: var(--ink);
  border: 0;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
  text-align: start;
}

.screenshot-device {
  display: flex;
  width: min(100%, 250px);
  aspect-ratio: 1080 / 2100;
  margin-inline: auto;
  padding: 13px 9px 10px;
  overflow: hidden;
  border: 2px solid #42434a;
  border-radius: 32px;
  background: #17181c;
  box-shadow: 0 18px 38px rgba(37, 26, 33, 0.2);
}

.screenshot-device img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: contain;
  background: #fdf9f4;
}

.screenshot-slide-copy {
  display: grid;
  padding-inline: 4px;
  gap: 4px;
}

.screenshot-slide-copy strong {
  font-size: 1rem;
  font-weight: 850;
}

.screenshot-slide-copy small {
  min-height: 3.2em;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.carousel-button {
  position: absolute;
  z-index: 3;
  top: 44%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.carousel-button:hover {
  background: var(--surface-strong);
  transform: translateY(-50%) scale(1.06);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.carousel-button-previous {
  left: 10px;
}

.carousel-button-next {
  right: 10px;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  gap: 14px;
}

.carousel-progress {
  width: min(180px, 48vw);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.carousel-progress i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 240ms ease;
}

.carousel-status {
  min-width: 4.5em;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: end;
}

.screenshot-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot-dialog::backdrop {
  background: rgba(16, 12, 16, 0.72);
  backdrop-filter: blur(8px);
}

.screenshot-dialog-media {
  display: grid;
  max-height: calc(100vh - 180px);
  padding: 12px;
  overflow: auto;
  border-radius: 24px;
  background: var(--bg-soft);
  place-items: center;
}

.screenshot-dialog img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 204px);
  border-radius: 22px;
  object-fit: contain;
}

.screenshot-dialog-caption {
  padding: 14px 10px 2px;
}

.screenshot-dialog-caption strong {
  font-size: 1rem;
}

.screenshot-dialog-caption p {
  margin: 3px 0 0;
  padding-right: 52px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.category-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.category-toolbar p {
  margin: 0;
  color: var(--ink-soft);
}

.category-section + .category-section {
  margin-top: 40px;
}

.category-section h2 {
  margin: 0 0 18px;
}

.category-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px;
  gap: 14px;
  box-shadow: none;
}

.category-card strong {
  font-size: 1.05rem;
}

.category-card span {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 850;
}

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

.route-links a {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  text-decoration: none;
}

.route-links strong {
  display: block;
  margin-bottom: 8px;
}

.route-links span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: clamp(30px, 6vw, 66px);
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(167, 123, 225, 0.2), transparent 40%),
    linear-gradient(140deg, var(--surface), var(--primary-soft));
  overflow: hidden;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.cta-panel p {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 82px;
  padding-block: 54px 28px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 0.75fr));
  gap: 34px;
}

.footer-intro p {
  max-width: 340px;
  color: var(--ink-soft);
}

.footer-column h2 {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.footer-column a {
  display: block;
  width: fit-content;
  padding-block: 4px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 22px;
  gap: 20px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.back-to-top {
  position: fixed;
  z-index: 70;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.back-to-top[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
  }

  .site-nav[data-open="true"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
    gap: 26px;
  }

  .hero-art {
    min-height: min(620px, 82vw);
  }

  .hero-illustration {
    left: 50%;
    width: min(720px, 92vw);
  }

  .section-heading,
  .split-panel,
  .prose-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .content-grid,
  .step-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid,
  .route-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-slide {
    flex-basis: calc((100% - 18px) / 2);
  }

  .side-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(100% - 28px, 1160px);
    --radius-xl: 28px;
    --radius-lg: 22px;
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand-link span {
    display: none;
  }

  .header-tools {
    gap: 5px;
  }

  .language-switcher summary {
    padding-inline: 11px;
  }

  .hero {
    min-height: auto;
    padding-block: 54px 34px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .hero-art {
    min-height: min(470px, 112vw);
    margin-inline: -14px;
  }

  .hero-illustration {
    width: min(540px, 112vw);
  }

  .section {
    padding-block: 52px;
  }

  .section-heading {
    gap: 16px;
  }

  .feature-grid,
  .content-grid,
  .step-grid,
  .category-grid,
  .screenshot-grid,
  .route-links,
  .split-visual,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(2n) {
    transform: none;
  }

  .card-index {
    margin-bottom: 26px;
  }

  .page-hero {
    padding-block: 68px 38px;
  }

  .spec-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .screenshot-carousel {
    padding: 24px 46px 18px;
    border-radius: 26px;
  }

  .screenshot-slide {
    flex-basis: 100%;
  }

  .screenshot-device {
    width: min(100%, 260px);
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .carousel-button-previous {
    left: 4px;
  }

  .carousel-button-next {
    right: 4px;
  }

  .screenshot-dialog {
    padding: 12px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .locale-notice-inner {
    align-items: flex-start;
    padding-block: 9px;
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .locale-notice,
  .back-to-top,
  .hero-actions,
  .cta-panel {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .site-shell {
    width: 100%;
  }
}
