/* --------------------------------------------------------------------------
   Mica project site
   A quiet, layered surface. Light first; one dark note for compliance.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("../fonts/noto-sans-sc-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7f4;
  --paper-2: #edf3ee;
  --paper-3: #e6eee8;
  --surface: #fbfcfa;
  --surface-2: #f1f6f2;
  --sand: #f1ece1;
  --ink: #14251d;
  --ink-2: #31463b;
  --muted: #52655b;
  --faint: #596c61;
  --line: rgba(22, 57, 42, 0.12);
  --line-strong: rgba(22, 57, 42, 0.2);
  --accent: #1c7753;
  --accent-strong: #125a3d;
  --accent-soft: #dff1e7;
  --accent-soft-2: #eaf6ef;
  --mint: #35c79a;
  --blue: #3d7bf0;
  --amber: #d9a441;
  --dark: #10231b;
  --dark-2: #173229;
  --on-dark: #eef7f1;
  --on-dark-muted: #b4c8bb;
  --on-dark-faint: #8ea79a;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-window: 0 38px 80px -42px rgba(9, 38, 27, 0.46),
    0 8px 26px -14px rgba(9, 38, 27, 0.18);
  --shadow-soft: 0 20px 50px -36px rgba(9, 38, 27, 0.4);
  --max: 1240px;
  --gutter: clamp(22px, 4.2vw, 52px);
  --font-sans: "Schibsted Grotesk", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
  --leading: 1.65;
  --heading-leading: 1.1;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-lang="zh"] {
  --leading: 1.82;
  --heading-leading: 1.28;
}

html[data-lang="en"] {
  --leading: 1.65;
  --heading-leading: 1.1;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: var(--leading);
  font-synthesis: none;
  font-feature-settings: "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: #c8ecd9;
  color: var(--ink);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

code {
  padding: 0.08em 0.34em;
  border-radius: 5px;
  background: rgba(28, 119, 83, 0.08);
  color: var(--ink-2);
}

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

.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: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--small {
  width: 16px;
  height: 16px;
}

.icon--tiny {
  width: 12px;
  height: 12px;
}

/* Language switch --------------------------------------------------------- */

html[data-lang="zh"] .lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-zh {
  display: none !important;
}

html[data-lang="zh"] .switch-en {
  display: none !important;
}

html[data-lang="en"] .switch-zh {
  display: none !important;
}

/* Layout ------------------------------------------------------------------ */

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: clamp(82px, 10vw, 132px);
  position: relative;
}

section[id] {
  scroll-margin-top: 92px;
}

body.nav-open {
  overflow: hidden;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 70px);
}

.section-head h2 {
  font-size: clamp(2.15rem, 4.3vw, 3.9rem);
  font-weight: 640;
  line-height: var(--heading-leading);
  letter-spacing: -0.035em;
  max-width: 17ch;
}

html[data-lang="zh"] .section-head h2 {
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.section-head p {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 247, 244, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 247, 244, 0.985);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand img {
  border-radius: 9px;
}

.brand-word {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand-alpha {
  margin-left: 2px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  margin-inline-start: auto;
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
}

.lang-toggle .icon {
  width: 15px;
  height: 15px;
}

.lang-toggle--text {
  border-color: transparent;
  padding-inline: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -36px rgba(9, 38, 27, 0.4);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

.mobile-nav-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

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

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--accent);
  color: #f4fbf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(22, 57, 42, 0.28);
}

.button--small {
  min-height: 40px;
  padding: 0 15px;
  font-size: 12.5px;
}

.button-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fe9c9;
  box-shadow: 0 0 0 3px rgba(159, 233, 201, 0.15);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.text-link .icon {
  transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-link--light {
  color: #c9f0dc;
}

/* Shared bits ------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 119, 83, 0.1);
}

.status-dot--mint {
  background: #65dcb0;
  box-shadow: 0 0 0 3px rgba(101, 220, 176, 0.12);
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
}

.dot--mint {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(53, 199, 154, 0.12);
}

.dot--amber {
  background: var(--amber);
}

.dot--line {
  background: transparent;
  border: 1px solid var(--line-strong);
}

.dot--faint {
  background: var(--line-strong);
}

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

.hero {
  position: relative;
  padding-block: clamp(46px, 6vw, 82px) 0;
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: -180px -10% 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 44% at 76% 20%, rgba(53, 199, 154, 0.17), transparent 72%),
    radial-gradient(38% 40% at 14% 30%, rgba(61, 123, 240, 0.1), transparent 72%),
    radial-gradient(44% 40% at 54% 92%, rgba(233, 227, 211, 0.62), transparent 76%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    linear-gradient(to right, rgba(22, 57, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 57, 42, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  padding-bottom: clamp(54px, 7vw, 84px);
}

.hero-copy {
  max-width: 570px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(3.15rem, 6.2vw, 5.6rem);
  font-weight: 610;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

html[data-lang="zh"] .hero h1 {
  font-size: clamp(2.9rem, 5.1vw, 4.4rem);
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.lede {
  max-width: 47ch;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: var(--leading);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-fineprint {
  margin-top: 18px;
  color: var(--faint);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 22px 0 12px 18px;
  transform: translate3d(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 5px), 0);
  transition: transform 0.25s ease-out;
}

.sheet {
  position: absolute;
  z-index: 0;
  border-radius: 30px;
  pointer-events: none;
}

.sheet--sand {
  inset: 13% -4% 5% 13%;
  transform: rotate(2.7deg);
  background: linear-gradient(135deg, rgba(233, 227, 211, 0.92), rgba(241, 236, 225, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 50px -38px rgba(65, 54, 30, 0.3);
}

.sheet--mint {
  inset: 4% 4% -2% 4%;
  transform: rotate(-2.2deg);
  background: linear-gradient(135deg, rgba(53, 199, 154, 0.24), rgba(61, 123, 240, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.64);
}

.app-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(22, 57, 42, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #e7eee8, #dbe5de);
  box-shadow: var(--shadow-window), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translate3d(calc(var(--mx, 0) * 4px), calc(var(--my, 0) * 4px), 0);
}

.app-frame img {
  width: 100%;
  height: auto;
  border-radius: 17px;
  background: #f0f4f0;
}

.app-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 4px 1px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-block: 24px 26px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: 20px;
}

.fact:first-child {
  padding-inline-start: 0;
}

.fact + .fact {
  border-inline-start: 1px solid var(--line);
}

.fact strong {
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.fact span {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

/* Idea -------------------------------------------------------------------- */

.idea {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.idea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.idea-grid h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  font-weight: 640;
  line-height: var(--heading-leading);
  letter-spacing: -0.04em;
  max-width: 17ch;
}

html[data-lang="zh"] .idea-grid h2 {
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.idea-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 57ch;
  color: var(--muted);
  font-size: 16px;
}

.idea-copy p:first-child {
  color: var(--ink-2);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(52px, 7vw, 84px);
}

.principle {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.principle-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 22px;
  color: var(--accent);
  stroke-width: 1.4;
}

.principle h3 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.principle p {
  max-width: 34ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

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

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.tile--library {
  grid-column: span 7;
}

.tile--loaders {
  grid-column: span 5;
  background: #e9f3ec;
}

.tile--packs {
  grid-column: span 5;
}

.tile--accounts {
  grid-column: span 7;
  background: #edf2fa;
}

.tile--java,
.tile--mods,
.tile--memory {
  grid-column: span 4;
}

.tile--mods {
  background: var(--sand);
}

.tile--crash {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--on-dark);
}

.tile h3 {
  font-size: clamp(1.2rem, 1.65vw, 1.48rem);
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

html[data-lang="zh"] .tile h3 {
  letter-spacing: -0.008em;
}

.tile p {
  max-width: 46ch;
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.tile--crash h3 {
  color: var(--on-dark);
}

.tile--crash p {
  color: var(--on-dark-muted);
}

.tile--crash code {
  background: rgba(255, 255, 255, 0.08);
  color: #d3e9dc;
}

.tile-note {
  margin-top: -10px !important;
  color: var(--faint) !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
}

.tile-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -8px;
  color: var(--muted);
  font-size: 11.5px;
}

/* Mini UI: library -------------------------------------------------------- */

.mini-panel {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.mini-head {
  display: flex;
  justify-content: space-between;
  padding: 2px 6px 8px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-top: 1px solid rgba(22, 57, 42, 0.08);
  border-radius: 9px;
}

.mini-row.is-active {
  background: var(--accent-soft-2);
}

.mini-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(22, 57, 42, 0.05);
}

.mini-mark img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(10, 36, 24, 0.16));
}

.mini-row-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-row-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row-copy small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--faint);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-play {
  width: 24px;
  height: 24px;
  margin-left: auto;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.mini-play svg {
  width: 12px;
  height: 12px;
}

.mini-foot {
  display: flex;
  justify-content: space-between;
  padding: 9px 6px 1px;
  border-top: 1px solid rgba(22, 57, 42, 0.08);
  color: var(--faint);
  font-size: 10.5px;
}

/* Mini UI: loaders -------------------------------------------------------- */

.loader-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 5px 8px;
  border: 1px solid rgba(22, 57, 42, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.loader img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.loader small {
  overflow: hidden;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mini UI: Java ----------------------------------------------------------- */

.java-list {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.java-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.java-row small {
  color: var(--faint);
  font-size: 10.5px;
}

.java-row.is-active {
  color: var(--accent-strong);
  font-weight: 620;
}

.java-row.is-active small {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Mini UI: mods ----------------------------------------------------------- */

.mod-search {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(22, 57, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.mod-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
}

.mod-input kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-size: 9px;
}

.mod-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.mod-filter span {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 10px;
}

.mod-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mod-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mod-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mod-result-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mod-result-copy strong {
  font-size: 12px;
  font-weight: 620;
}

.mod-result-copy small {
  color: var(--faint);
  font-size: 10px;
}

.mod-install {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

/* Mini UI: accounts & modpacks -------------------------------------------- */

.pack-panel,
.account-panel {
  margin-top: auto;
}

.pack-panel {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pack-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-top: 1px solid rgba(22, 57, 42, 0.08);
}

.pack-row:first-child {
  border-top: 0;
}

.pack-ext {
  min-width: 46px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: center;
}

.pack-copy {
  min-width: 0;
}

.pack-copy strong,
.pack-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-copy strong {
  font-size: 11.5px;
  font-weight: 600;
}

.pack-copy small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 10px;
}

.pack-check {
  margin-left: auto;
  color: var(--accent);
}

.pack-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 2px;
  color: var(--faint);
  font-size: 10px;
}

.pack-bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 57, 42, 0.09);
}

.pack-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--mint));
}

.account-panel {
  display: grid;
  gap: 7px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.account-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
}

.account-mark--microsoft {
  background: #e4edfd;
  color: #2f6fdc;
}

.account-mark--authlib {
  background: #efe9fb;
  color: #7050c8;
}

.account-mark--offline {
  background: var(--accent-soft);
  color: var(--accent);
}

.account-copy {
  min-width: 0;
}

.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 11.5px;
  font-weight: 600;
}

.account-copy small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 10px;
}

.account-check {
  margin-left: auto;
  color: var(--accent);
}

/* Mini UI: memory --------------------------------------------------------- */

.memory-meter {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.memory-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.memory-top strong {
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.memory-top span {
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.memory-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 57, 42, 0.09);
}

.memory-fill {
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--mint));
}

.memory-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.memory-note {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

/* Mini UI: crash evidence ------------------------------------------------- */

.evidence {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--on-dark);
  font-size: 12px;
}

.evidence-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark-faint);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.evidence-head span:last-child {
  margin-left: auto;
}

.evidence-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.evidence-row > span {
  color: var(--on-dark-faint);
}

.evidence-row strong {
  font-weight: 600;
}

.evidence-row strong.ok {
  color: #7fe0b5;
}

.evidence-row code {
  padding: 0;
  background: transparent;
  color: #b9e3cd;
  font-size: 11px;
}

.evidence-next {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
}

.evidence-next span {
  color: var(--on-dark-faint);
}

.evidence-next strong {
  color: #d7f0e2;
  font-weight: 600;
}

/* Interface --------------------------------------------------------------- */

.interface {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.shot-block {
  min-width: 0;
}

.screen-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  scrollbar-width: none;
}

.screen-tabs::-webkit-scrollbar {
  display: none;
}

.screen-tabs [role="tab"] {
  position: relative;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.screen-tabs [role="tab"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.screen-tabs [role="tab"]:hover {
  color: var(--ink);
}

.screen-tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
  font-weight: 620;
}

.screen-tabs [role="tab"][aria-selected="true"]::after {
  background: var(--accent);
}

.screen-panels {
  margin-top: 20px;
}

.screen-panel {
  margin: 0;
  animation: panel-in 0.36s var(--ease) both;
}

.screen-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.screen-frame {
  padding: 8px;
  border: 1px solid rgba(22, 57, 42, 0.17);
  border-radius: 24px;
  background: linear-gradient(180deg, #e6ede7, #d9e3dc);
  box-shadow: var(--shadow-window), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.screen-frame img {
  width: 100%;
  height: auto;
  border-radius: 17px;
  background: #eef3ee;
}

.screen-panel figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.screen-panel figcaption > span:first-child {
  max-width: 62ch;
}

.fig-meta {
  flex: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Compliance -------------------------------------------------------------- */

.compliance {
  position: relative;
  padding-block: clamp(82px, 10vw, 132px);
  background:
    radial-gradient(62% 80% at 88% 10%, rgba(53, 199, 154, 0.13), transparent 68%),
    var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.compliance::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.compliance > .wrap {
  position: relative;
  z-index: 1;
}

.compliance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.eyebrow--dark {
  color: var(--on-dark-muted);
}

.compliance h2 {
  margin-top: 18px;
  color: #f1faf4;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  font-weight: 630;
  line-height: var(--heading-leading);
  letter-spacing: -0.035em;
  max-width: 15ch;
}

html[data-lang="zh"] .compliance h2 {
  letter-spacing: -0.008em;
  max-width: 12ch;
}

.compliance-copy > p {
  max-width: 48ch;
  margin-top: 20px;
  color: var(--on-dark-muted);
  font-size: 15.5px;
}

.compliance-copy .text-link {
  margin-top: 26px;
}

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

.commitment {
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.commitment-mark {
  display: block;
  color: #77d8b0;
  margin-bottom: 14px;
}

.commitment-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commitment h3 {
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.005em;
}

.commitment p {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.disclaimer-box {
  margin-top: clamp(48px, 7vw, 76px);
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.disclaimer-label {
  display: block;
  margin-bottom: 11px;
  color: var(--on-dark-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.disclaimer-en {
  color: #e8f5ed;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.015em;
  line-height: 1.6;
}

.disclaimer-zh {
  margin-top: 4px;
  color: var(--on-dark-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Roadmap ----------------------------------------------------------------- */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 48px);
}

.roadmap-col {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.roadmap-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.roadmap-col li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.roadmap-col li strong {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.roadmap-col li span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 118px;
}

.faq-intro h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 640;
  line-height: var(--heading-leading);
  letter-spacing: -0.04em;
  max-width: 13ch;
}

html[data-lang="zh"] .faq-intro h2 {
  letter-spacing: -0.01em;
  max-width: 10ch;
}

.faq-intro > p {
  max-width: 36ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.faq-contact {
  font-size: 13px !important;
}

.faq-contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 119, 83, 0.3);
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

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

.faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.4px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 0 22px;
}

.faq-answer p {
  max-width: 66ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

/* Final CTA --------------------------------------------------------------- */

.cta {
  position: relative;
  padding-block: clamp(38px, 5vw, 62px) clamp(56px, 7vw, 86px);
  background: var(--paper);
}

.cta-panel {
  position: relative;
  padding: clamp(48px, 7vw, 86px) clamp(24px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface) 0%, #e7f1e9 100%);
  overflow: hidden;
}

.cta-ambient {
  position: absolute;
  inset: -20% -10% -40%;
  pointer-events: none;
  background:
    radial-gradient(44% 50% at 74% 50%, rgba(53, 199, 154, 0.18), transparent 70%),
    radial-gradient(36% 42% at 12% 60%, rgba(61, 123, 240, 0.08), transparent 72%);
}

.cta-cube {
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: min(420px, 40vw);
  height: auto;
  color: rgba(28, 119, 83, 0.1);
  fill: none;
  stroke: currentColor;
  stroke-width: 0.42;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: 0;
}

.cta h2 {
  margin-top: 18px;
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
  font-weight: 630;
  line-height: var(--heading-leading);
  letter-spacing: -0.04em;
  max-width: 16ch;
}

html[data-lang="zh"] .cta h2 {
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.cta-inner > p {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15.5px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cta-note {
  margin-top: 16px !important;
  color: var(--faint) !important;
  font-family: var(--font-mono);
  font-size: 12px !important;
}

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

.site-footer {
  background: #0d1d17;
  color: var(--on-dark);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 52px;
}

.brand--footer {
  color: var(--on-dark);
}

.brand--footer .brand-word {
  font-size: 20px;
}

.footer-brand > p {
  max-width: 32ch;
  margin-top: 14px;
  color: var(--on-dark-muted);
  font-size: 13.5px;
}

.footer-brand > .footer-meta {
  margin-top: 7px;
  color: var(--on-dark-faint);
  font-size: 11.5px;
}

.footer-col h3 {
  margin-bottom: 12px;
  color: var(--on-dark-faint);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: #c8dbcf;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col > a {
  display: flex;
}

.footer-muted {
  display: block;
  padding: 4px 0;
  color: var(--on-dark-faint);
  font-size: 12px;
}

.footer-disclaimer {
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-disclaimer .disclaimer-label {
  margin-bottom: 9px;
  color: #7f988a;
}

.footer-disclaimer .disclaimer-en {
  color: #d9e9df;
  font-size: 12px;
}

.footer-disclaimer .disclaimer-zh {
  color: #a9bdae;
  font-size: 12px;
}

.footer-trademark {
  max-width: 92ch;
  margin-top: 13px;
  color: #7f988a;
  font-size: 11.5px;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8fa79a;
  font-size: 12px;
}

.footer-bottom > p {
  margin: 0;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom .lang-toggle {
  color: #c8dbcf;
}

.footer-bottom .lang-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #c8dbcf;
  font-size: 11px;
  text-decoration: none;
}

.back-top:hover {
  color: #fff;
}

/* Dialog ------------------------------------------------------------------ */

.status-dialog {
  width: min(560px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px -24px rgba(7, 24, 16, 0.55);
}

.status-dialog::backdrop {
  background: rgba(6, 18, 12, 0.55);
  backdrop-filter: blur(4px);
}

.dialog-inner {
  position: relative;
  padding: clamp(28px, 5vw, 40px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.dialog-close:hover {
  background: rgba(22, 57, 42, 0.06);
  color: var(--ink);
}

.status-dialog h2 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 640;
  line-height: var(--heading-leading);
  letter-spacing: -0.03em;
}

.status-dialog > .dialog-inner > p {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

/* Reveal and hero load ---------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .bento .tile.reveal:nth-child(2) {
  transition-delay: 0.04s;
}

.js .bento .tile.reveal:nth-child(3) {
  transition-delay: 0.08s;
}

.js .bento .tile.reveal:nth-child(4) {
  transition-delay: 0.1s;
}

.js .bento .tile.reveal:nth-child(5) {
  transition-delay: 0.12s;
}

.js .principle.reveal:nth-child(2) {
  transition-delay: 0.05s;
}

.js .principle.reveal:nth-child(3) {
  transition-delay: 0.1s;
}

.js .commitment.reveal:nth-child(2) {
  transition-delay: 0.05s;
}

.js .commitment.reveal:nth-child(3) {
  transition-delay: 0.1s;
}

.js .commitment.reveal:nth-child(4) {
  transition-delay: 0.15s;
}

.js .hero-copy > * {
  animation: rise-in 0.75s var(--ease) both;
}

.js .hero-copy > *:nth-child(1) {
  animation-delay: 0.04s;
}

.js .hero-copy > *:nth-child(2) {
  animation-delay: 0.09s;
}

.js .hero-copy > *:nth-child(3) {
  animation-delay: 0.15s;
}

.js .hero-copy > *:nth-child(4) {
  animation-delay: 0.21s;
}

.js .hero-copy > *:nth-child(5) {
  animation-delay: 0.27s;
}

.js .hero-visual {
  animation: visual-in 0.95s 0.12s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes visual-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 1120px) {
  .header-inner {
    gap: 22px;
  }

  .nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.6vw, 4.7rem);
  }

  html[data-lang="zh"] .hero h1 {
    font-size: clamp(2.7rem, 5vw, 4.2rem);
  }

  .fact {
    padding-inline: 14px;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

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

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    max-width: 760px;
    padding-left: 12px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 8vw, 5.3rem);
  }

  html[data-lang="zh"] .hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.6rem);
  }

  .fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .fact:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .idea-grid,
  .section-head,
  .compliance-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    gap: 20px;
  }

  .section-head h2 {
    max-width: 18ch;
  }

  .idea-copy {
    max-width: 62ch;
  }

  .principle-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .principle p {
    max-width: 52ch;
  }

  .tile--library,
  .tile--loaders {
    grid-column: span 12;
  }

  .tile--java,
  .tile--mods {
    grid-column: span 6;
  }

  .tile--packs,
  .tile--accounts {
    grid-column: span 6;
  }

  .tile--memory {
    grid-column: span 12;
  }

  .tile--crash {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .roadmap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro h2,
  .faq-intro > p {
    max-width: 28ch;
  }

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

  .footer-brand {
    grid-column: span 3;
    margin-bottom: 8px;
  }

  .footer-brand > p {
    max-width: 52ch;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 22px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-word {
    font-size: 18px;
  }

  .brand-alpha {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11.5vw, 4.2rem);
  }

  html[data-lang="zh"] .hero h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.7rem);
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .app-frame {
    padding: 5px;
    border-radius: 18px;
  }

  .app-frame img {
    border-radius: 13px;
  }

  .app-frame figcaption {
    font-size: 9px;
  }

  .fact-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 20px;
  }

  .fact,
  .fact:nth-child(3) {
    padding-inline: 0;
    border-inline-start: 0;
  }

  .fact + .fact {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

  .section {
    padding-block: 72px;
  }

  .idea-grid h2 {
    font-size: clamp(1.9rem, 7.4vw, 2.8rem);
  }

  .tile--java,
  .tile--mods,
  .tile--memory,
  .tile--packs,
  .tile--accounts {
    grid-column: span 12;
  }

  .tile {
    padding: 24px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .roadmap-col h3 {
    font-size: 12px;
  }

  .screen-tabs [role="tab"] {
    padding-inline: 12px;
    font-size: 12.5px;
  }

  .screen-tabs [role="tab"]::after {
    right: 8px;
    left: 8px;
  }

  .screen-frame {
    padding: 5px;
    border-radius: 18px;
  }

  .screen-frame img {
    border-radius: 13px;
  }

  .screen-panel figcaption {
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
  }

  .fig-meta {
    font-size: 9.5px;
  }

  .compliance h2 {
    max-width: 14ch;
  }

  .commitments {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .disclaimer-box {
    padding: 18px;
  }

  .faq-list summary {
    padding: 17px 0;
    font-size: 14.5px;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding-bottom: 38px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }

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

  .footer-bottom-actions {
    gap: 8px 14px;
  }

  .cta {
    padding-block: 28px 56px;
  }

  .cta-panel {
    padding: 44px 24px;
    border-radius: 20px;
  }

  .cta-cube {
    right: -80px;
    bottom: -40px;
    width: 320px;
    opacity: 0.7;
  }

  .cta h2 {
    font-size: clamp(2rem, 8.4vw, 3.1rem);
  }
}

@media (max-width: 460px) {
  .lang-toggle {
    padding-inline: 8px;
  }

  .header-actions {
    gap: 7px;
  }

  .hero-visual {
    padding-left: 0;
  }

  .sheet--sand {
    inset-inline: -2%;
  }

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

  .loader small {
    font-size: 8px;
  }

  .mini-row-copy strong {
    font-size: 10.5px;
  }

  .mini-row-copy small {
    font-size: 9px;
  }

  .screen-tabs {
    gap: 0;
  }

  .screen-tabs [role="tab"] {
    padding-inline: 10px;
    font-size: 12px;
  }

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

  .dialog-actions .button {
    width: 100%;
  }

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

  .footer-brand,
  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-col {
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-col h3 {
    margin-top: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .hero-visual,
  .app-frame {
    transform: none !important;
  }
}
