@font-face {
  font-family: "SFPFSCProDisplay";
  src: url("/fonts/SFPFSCProDisplay-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SFPFSCProDisplay";
  src: url("/fonts/SFPFSCProDisplay-Ultralight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SFPFSCProDisplay";
  src: url("/fonts/SFPFSCProDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SFPFSCProDisplay";
  src: url("/fonts/SFPFSCProDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SFPFSCProDisplay";
  src: url("/fonts/SFPFSCProDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SFPFSCProDisplay";
  src: url("/fonts/SFPFSCProDisplay-Semibold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Florsn01";
  src: url("/fonts/Florsn01.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Florsn02";
  src: url("/fonts/Florsn02.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
color-scheme: light dark;
--bg: #f5f4ef;
--surface: rgba(255, 255, 252, 0.74);
--surface-strong: #fffef9;
--text: #171713;
--muted: #69675f;
--soft: #8a877d;
--border: rgba(23, 23, 19, 0.1);
--border-strong: rgba(23, 23, 19, 0.18);
--accent: #171713;
--accent-contrast: #fffef9;
--selection: rgba(23, 23, 19, 0.12);
--header-bg: rgba(245, 244, 239, 0.78);
--body-gradient: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.86), transparent 34rem), linear-gradient(180deg, #f8f7f2 0%, var(--bg) 48%, #eceae3 100%);
--cta-hover-bg: #2b2a25;
--badge-bg: rgba(23, 23, 19, 0.07);
--badge-text: #69675f;
--font-sans: "SFPFSCProDisplay", "PingFang SC", "PingFang TC", "PingFang HK", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-display: "SFPFSCProDisplay", "PingFang SC", "PingFang TC", "PingFang HK", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
--bg: #141413;
--surface: rgba(30, 30, 28, 0.74);
--surface-strong: #1c1c1a;
--text: #e8e6df;
--muted: #a09e94;
--soft: #7a786f;
--border: rgba(232, 230, 223, 0.1);
--border-strong: rgba(232, 230, 223, 0.18);
--accent: #e8e6df;
--accent-contrast: #1c1c1a;
--selection: rgba(232, 230, 223, 0.16);
--header-bg: rgba(20, 20, 19, 0.82);
--body-gradient: radial-gradient(circle at 50% 0%, rgba(30, 30, 28, 0.86), transparent 34rem), linear-gradient(180deg, #1a1a18 0%, var(--bg) 48%, #0f0f0e 100%);
--cta-hover-bg: #c8c6bf;
--badge-bg: rgba(232, 230, 223, 0.1);
--badge-text: #a09e94;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
min-height: 100%;
margin: 0;
background: var(--body-gradient);
color: var(--text);
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transition: background 0.3s ease, color 0.3s ease;
}

::selection {
  background: var(--selection);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.font-google-sans-flex {
  font-family: var(--font-display);
}

main {
  min-height: calc(100vh - 10rem);
  padding: 8rem 0 4rem;
}

.container {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
}

.site-header {
position: fixed;
inset: 0 0 auto;
z-index: 20;
border-bottom: 1px solid var(--border);
background: var(--header-bg);
backdrop-filter: blur(16px) saturate(180%);
transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  width: min(100% - 2rem, 42rem);
  height: 4.5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cta-button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cta-button:hover {
transform: translateY(-1px);
background: var(--cta-hover-bg);
border-color: var(--cta-hover-bg);
}

.cta-button-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cta-button-outline:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.hero {
  display: grid;
  gap: 3rem;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.kicker {
  margin: 0;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 18vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.body-copy {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  padding: 0.5rem;
}

.product-frame img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.page-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.page-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.page-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose {
  color: var(--muted);
}

.prose h2 {
  margin: 2.6rem 0 0.75rem;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.section-stack {
  display: grid;
  gap: 1.5rem;
  margin-top: 5rem;
}

.section-heading-block {
  display: grid;
  gap: 0.7rem;
}

.section-heading-block h2 {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.section-heading-block p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-card {
  min-height: 9rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.gallery-group {
  display: grid;
  gap: 0.85rem;
}

.gallery-group + .gallery-group {
  margin-top: 1.5rem;
}

.gallery-group h3 {
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.screenshot-grid {
  display: grid;
  gap: 0.9rem;
}

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

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 0.45rem;
}

.screenshot-card img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-strong);
}

.screenshot-card figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.65rem 0.2rem 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--soft);
}

.footer-inner {
  display: flex;
  width: min(100% - 2rem, 42rem);
  min-height: 5.5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}


/* ── Project Akari Card ── */
.akari-project-section {
  margin-top: 4rem;
}

.akari-project-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

.akari-project-card img {
  display: block;
  margin: 0 auto 0.75rem;
}

.akari-project-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}

.akari-slogan {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.akari-project-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.akari-project-card p:last-child {
  margin-bottom: 0;
}

/* ── Download Section ── */
.download-platforms {
  margin-top: 3.5rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.download-card {
  min-height: 8rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.download-card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.download-card .cta-button {
  align-self: flex-start;
}

.download-aside {
  margin: 0.5rem 0 0;
  color: var(--soft);
  font-size: 0.85rem;
}

.download-aside a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.download-aside a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 7rem;
  }

  .header-inner,
  .container,
  .footer-inner {
    width: min(100% - 1.25rem, 42rem);
  }

  .header-inner {
    height: 4rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .header-cta {
    min-height: 2.25rem;
    padding-inline: 0.85rem;
    font-size: 0.78rem;
  }

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

  .section-stack {
    margin-top: 4rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
scroll-behavior: auto !important;
transition: none !important;
}
}

/* ── Badge ── */
.badge-preview {
display: inline-block;
font-size: 0.65rem;
font-weight: 600;
letter-spacing: 0.02em;
line-height: 1;
padding: 0.2rem 0.45rem;
vertical-align: middle;
margin-left: 0.3rem;
border-radius: 999px;
background: var(--badge-bg);
color: var(--badge-text);
}

/* ── Download Card Primary ── */
.download-card-primary {
border-color: var(--border-strong);
background: var(--surface-strong);
}

/* ── Download Repos ── */
.download-repos {
margin-top: 1.5rem;
padding: 1.25rem;
border: 1px solid var(--border);
border-radius: 1.25rem;
background: var(--surface);
}

/* ── Release Banner ── */
.release-banner {
margin-top: 0.5rem;
}

.release-card {
border: 1px solid var(--border);
border-left: 3px solid var(--accent);
border-radius: 1.25rem;
background: var(--surface);
padding: 1.25rem 1.5rem;
}

.release-kicker {
margin: 0 0 0.4rem;
font-size: 0.78rem;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--soft);
}

.release-card h3 {
margin: 0 0 0.6rem;
font-size: 1.15rem;
letter-spacing: -0.035em;
line-height: 1.25;
}

.release-notes {
margin: 0 0 0.75rem;
padding-left: 1.1rem;
color: var(--muted);
font-size: 0.9rem;
line-height: 1.55;
}

.release-notes li + li {
margin-top: 0.25rem;
}

.release-link {
margin: 0;
font-size: 0.88rem;
}

.release-link a {
color: var(--accent);
text-decoration: none;
}

.release-link a:hover {
text-decoration: underline;
}

.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;
}

.download-repos h3 {
margin: 0 0 0.35rem;
font-size: 1.1rem;
letter-spacing: -0.035em;
line-height: 1.2;
}

.download-repos p {
margin: 0 0 0.85rem;
color: var(--muted);
font-size: 0.88rem;
line-height: 1.5;
}

.repo-links {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
}

.repo-links a {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.45rem 0.75rem;
border: 1px solid var(--border);
border-radius: 999px;
font-size: 0.82rem;
font-weight: 500;
text-decoration: none;
color: var(--text);
transition: border-color 160ms ease, background 160ms ease;
}

.repo-links a:hover {
border-color: var(--border-strong);
background: var(--surface);
}

.repo-links a svg {
opacity: 0.6;
}

/* ── Dark Mode Toggle ── */
.theme-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
padding: 0;
border: 1px solid var(--border);
border-radius: 999px;
background: transparent;
color: var(--text);
cursor: pointer;
transition: background 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover {
background: var(--surface);
border-color: var(--border-strong);
}

.theme-toggle svg {
width: 1rem;
height: 1rem;
fill: currentColor;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
display: block;
}

.header-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}

@media (max-width: 640px) {
.theme-toggle {
width: 2rem;
height: 2rem;
}

.theme-toggle svg {
width: 0.85rem;
height: 0.85rem;
}

.repo-links {
flex-direction: column;
}
}
}
