/* =========================================================
   涓€闅?路 YIYU STUDIO
   A warm, paper-like home for small apps.
   ========================================================= */

:root {
  --paper: #f7f3eb;
  --paper-2: #efe8dc;
  --paper-3: #e7dfd1;
  --ink: #23211d;
  --ink-soft: #3b3730;
  --muted: #746c60;
  --line: rgba(35, 33, 29, 0.14);
  --line-strong: rgba(35, 33, 29, 0.28);
  --accent: #e85b37;
  --accent-deep: #c74626;
  --accent-soft: #f6d3c6;
  --green: #3d5b49;
  --cream: #fffdf8;
  --nav-bg: rgba(247, 243, 235, 0.82);
  --shadow-sm: 0 2px 3px rgba(45, 35, 22, 0.04), 0 10px 24px -18px rgba(45, 35, 22, 0.28);
  --shadow-md: 0 4px 8px rgba(45, 35, 22, 0.05), 0 28px 55px -34px rgba(45, 35, 22, 0.38);
  --shadow-lg: 0 40px 90px -45px rgba(45, 35, 22, 0.55);
  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 34px;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #151411;
  --paper-2: #1c1a16;
  --paper-3: #26231d;
  --ink: #f3ede1;
  --ink-soft: #d7d0c3;
  --muted: #a49b8c;
  --line: rgba(243, 237, 225, 0.13);
  --line-strong: rgba(243, 237, 225, 0.26);
  --accent: #f2704f;
  --accent-deep: #ff8a68;
  --accent-soft: #40251d;
  --green: #8fa994;
  --cream: #1d1b17;
  --nav-bg: rgba(21, 20, 17, 0.82);
  --shadow-sm: 0 2px 3px rgba(0, 0, 0, 0.2), 0 10px 24px -18px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.22), 0 28px 55px -34px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 90px -45px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

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

[data-theme="dark"] body::after {
  opacity: 0.05;
}

::selection {
  background: var(--accent);
  color: #fff8ef;
}

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

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

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

.serif {
  font-family: var(--font-display);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.5s var(--ease), background 0.3s;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
  background: var(--accent);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.nav-links a {
  position: relative;
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(35, 33, 29, 0.055);
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(243, 237, 225, 0.08);
}

.nav-links a.is-current {
  color: var(--ink);
  font-weight: 600;
}

.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(35, 33, 29, 0.05);
  transform: translateY(-1px);
}

[data-theme="dark"] .icon-button:hover {
  background: rgba(243, 237, 225, 0.07);
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

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

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translate(3px, -1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -16px rgba(35, 33, 29, 0.7);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff8ef;
  box-shadow: 0 14px 28px -16px rgba(232, 91, 55, 0.7);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.btn-light {
  background: #f7f3eb;
  color: #20261f;
}

.btn-light:hover {
  background: var(--accent);
  color: #fff8ef;
}

.btn-sm {
  min-height: 42px;
  padding: 0 17px;
  font-size: 13px;
}

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

.hero {
  position: relative;
  padding: clamp(42px, 7vw, 82px) 0 clamp(46px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 13px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
}

[data-theme="dark"] .eyebrow {
  background: rgba(255, 255, 255, 0.025);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c8a5f;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(92, 138, 95, 0.4);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  75%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.hero h1 {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(46px, 4.9vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.17em;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.28;
  transform: rotate(-1.2deg);
}

.hero-lede {
  max-width: 31em;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.85;
}

.hero-lede strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.hero-note::before {
  content: "鉁?;
  color: var(--accent);
  font-size: 14px;
}

/* Hero stage */

.hero-stage {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}

.stage-sun {
  position: absolute;
  top: 12px;
  right: 2%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f7b47e 0, #eb7a4f 55%, #d95432 100%);
  opacity: 0.92;
  z-index: -1;
  animation: sun-drift 12s ease-in-out infinite alternate;
}

@keyframes sun-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-8px, 10px) scale(1.035);
  }
}

.stage-grid {
  position: absolute;
  top: -18px;
  right: -8px;
  width: 230px;
  height: 230px;
  z-index: -2;
  opacity: 0.4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 72%);
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.stage-card {
  position: absolute;
  top: 52%;
  left: 50%;
  width: min(360px, 86%);
  padding: 22px 24px 20px;
  border: 1px solid rgba(35, 33, 29, 0.12);
  border-radius: 26px;
  background: #fffdf8;
  color: #23211d;
  box-shadow: var(--shadow-lg);
  transform: translate(-52%, -50%) rotate(-4deg);
  transition: transform 0.7s var(--ease);
}

.hero-stage:hover .stage-card {
  transform: translate(-52%, -52%) rotate(-1.6deg);
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #746c60;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1e4;
  color: #45603f;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.live-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f9a62;
  box-shadow: 0 0 0 3px rgba(111, 154, 98, 0.16);
}

.stage-clock {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 6.2vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stage-date {
  margin-top: 8px;
  color: #746c60;
  font-size: 13px;
}

.stage-divider {
  height: 1px;
  margin: 20px 0 16px;
  background: repeating-linear-gradient(90deg, rgba(35, 33, 29, 0.22) 0 4px, transparent 4px 9px);
}

.stage-mini-apps {
  display: grid;
  gap: 8px;
}

.stage-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f6f1e7;
  font-size: 12px;
}

.stage-mini .mini-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fffdf8;
  font-size: 14px;
}

.stage-mini b {
  font-weight: 600;
}

.stage-mini span {
  margin-left: auto;
  color: #8c8376;
  font-family: var(--font-mono);
  font-size: 10px;
}

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  color: #968c7d;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.stage-bars i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: #d18a65;
  animation: bars 1.1s ease-in-out infinite alternate;
}

.stage-bars i:nth-child(2) {
  animation-delay: 0.18s;
}
.stage-bars i:nth-child(3) {
  animation-delay: 0.36s;
}
.stage-bars i:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes bars {
  from {
    height: 3px;
  }
  to {
    height: 12px;
  }
}

.float-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(35, 33, 29, 0.1);
  border-radius: 16px;
  background: #fffdf8;
  color: #23211d;
  box-shadow: 0 18px 35px -24px rgba(45, 35, 22, 0.5);
  animation: float 6s ease-in-out infinite;
}

.float-pomodoro {
  top: -1%;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 15px 11px 11px;
  transform: rotate(-5deg);
}

.float-pomodoro .float-emoji {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f6d3c6;
  font-size: 19px;
}

.float-pomodoro b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}

.float-pomodoro small {
  color: #8c8376;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.float-note {
  right: 2%;
  bottom: -12%;
  max-width: 180px;
  padding: 13px 16px;
  background: #f5e7b9;
  transform: rotate(4deg);
  font-family: "Kaiti SC", "KaiTi", var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  animation-delay: -2.4s;
}

.float-note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 42px;
  height: 14px;
  margin-left: -21px;
  background: rgba(255, 253, 248, 0.55);
  transform: rotate(-2deg);
}

.float-note span {
  display: block;
  margin-top: 4px;
  color: #9b7f37;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.float-chip {
  right: 3%;
  top: 2%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 11px;
  transform: rotate(3deg);
  animation-delay: -4s;
}

.float-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f9a62;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

.spin-stamp {
  position: absolute;
  left: 2%;
  bottom: 1%;
  width: 92px;
  height: 92px;
  color: var(--muted);
  opacity: 0.8;
  animation: spin 24s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee span::after {
  content: "鉁?;
  color: var(--accent);
  font-size: 13px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Section heading ---------- */

.section {
  padding: clamp(72px, 10vw, 118px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-title-wrap {
  max-width: 680px;
}

.section-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-title .count {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.42em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
}

.section-desc {
  max-width: 34em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.apps-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

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

.app-card {
  --card-bg: #f2d6c8;
  --card-ink: #43251c;
  --card-muted: rgba(67, 37, 28, 0.62);
  --card-line: rgba(67, 37, 28, 0.16);
  --card-accent: #cf4b2b;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--card-ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.app-card[data-tone="sage"] {
  --card-bg: #dbe5d3;
  --card-ink: #243528;
  --card-muted: rgba(36, 53, 40, 0.62);
  --card-line: rgba(36, 53, 40, 0.15);
  --card-accent: #4d6f55;
}

.app-card[data-tone="butter"] {
  --card-bg: #f2e3ba;
  --card-ink: #3f331b;
  --card-muted: rgba(63, 51, 27, 0.62);
  --card-line: rgba(63, 51, 27, 0.15);
  --card-accent: #9c711f;
}

.app-card[data-tone="sky"] {
  --card-bg: #d7e4e9;
  --card-ink: #1e333d;
  --card-muted: rgba(30, 51, 61, 0.62);
  --card-line: rgba(30, 51, 61, 0.15);
  --card-accent: #336e83;
}

.app-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 190px;
  height: 190px;
  border: 1px solid var(--card-line);
  border-radius: 50%;
  transition: transform 0.7s var(--ease);
}

.app-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: 0.55;
}

.app-card:hover::before {
  transform: scale(1.12) translate(-8px, 8px);
}

.app-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.55;
}

.app-kind {
  padding: 4px 9px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.app-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 30px 0 24px;
  border: 1px solid var(--card-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 37px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.55s var(--ease), background 0.4s;
}

.app-card:hover .app-icon {
  transform: rotate(-7deg) scale(1.06);
  background: rgba(255, 255, 255, 0.62);
}

.app-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.app-body h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.app-body p {
  max-width: 28em;
  margin-top: 7px;
  color: var(--card-muted);
  font-size: 13px;
  line-height: 1.7;
}

.app-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--card-line);
}

.app-card-foot .launch {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-card-foot .arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--card-line);
  border-radius: 50%;
  font-size: 15px;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}

.app-card:hover .arrow {
  transform: rotate(45deg);
  background: var(--card-ink);
  color: var(--card-bg);
}

.apps-empty {
  grid-column: 1 / -1;
  padding: 60px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.apps-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.apps-footnote a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
}

.apps-footnote a:hover {
  color: var(--accent);
}

/* ---------- About ---------- */

.about {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(35, 33, 29, 0.025));
}

[data-theme="dark"] .about {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018));
}

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.about-title {
  position: sticky;
  top: 110px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.about-title em {
  color: var(--accent);
  font-style: normal;
}

.about-lead {
  max-width: 38em;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.85;
}

.about-lead strong {
  font-weight: 600;
  box-shadow: inset 0 -0.45em 0 var(--accent-soft);
}

.about-copy {
  max-width: 38em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}

.fact {
  padding: 20px 18px;
  background: var(--paper);
}

.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.fact span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.manifesto {
  position: relative;
  margin-top: 40px;
  padding: 23px 26px 23px 30px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.75;
}

.manifesto cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
}

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

.cta-section {
  padding: 0 0 clamp(72px, 9vw, 112px);
}

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 70px);
  border-radius: var(--radius-lg);
  background: #203329;
  color: #f2eadb;
  isolation: isolate;
}

.cta::before {
  content: "MAKE";
  position: absolute;
  right: -18px;
  bottom: -58px;
  z-index: -1;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(150px, 22vw, 280px);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(242, 234, 219, 0.16);
  letter-spacing: -0.06em;
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  top: -110px;
  right: 10%;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 91, 55, 0.38), transparent 65%);
}

.cta .kicker {
  color: rgba(242, 234, 219, 0.62);
}

.cta h2 {
  max-width: 12em;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.cta h2 em {
  color: #f29a7c;
  font-style: normal;
}

.cta p {
  max-width: 34em;
  margin-top: 18px;
  color: rgba(242, 234, 219, 0.7);
  font-size: 14px;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta .btn-ghost {
  border-color: rgba(242, 234, 219, 0.28);
  color: #f2eadb;
}

.cta .btn-ghost:hover {
  border-color: #f2eadb;
  background: rgba(242, 234, 219, 0.08);
}

.cta-stamp {
  position: absolute;
  right: clamp(30px, 7vw, 90px);
  bottom: clamp(30px, 6vw, 60px);
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(242, 234, 219, 0.28);
  border-radius: 50%;
  color: rgba(242, 234, 219, 0.7);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.9;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
}

.cta-stamp::before {
  content: "鉁?;
  position: absolute;
  top: 17px;
  color: #f29a7c;
  font-size: 15px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
}

.footer-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer-meta b {
  display: block;
  color: var(--ink-soft);
  font-weight: 600;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-right a:hover {
  color: var(--accent);
}

.auth-logout {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  opacity: 0.75;
  transition: color 0.2s, opacity 0.2s;
}

.auth-logout:hover {
  color: var(--accent);
  opacity: 1;
}

.shell-foot .auth-logout {
  margin-left: auto;
  margin-right: 14px;
}

.footer-clock {
  font-variant-numeric: tabular-nums;
}

/* ---------- Page hero (workshop) ---------- */

.page-hero {
  padding: clamp(42px, 7vw, 86px) 0 clamp(38px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 12em;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.page-hero .lede {
  max-width: 40em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
}

.page-hero .lede strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.meta-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f9a62;
}

/* ---------- Workshop ---------- */

.workshop {
  padding: clamp(50px, 7vw, 84px) 0 clamp(70px, 9vw, 110px);
}

.workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: start;
}

.workshop-grid > * {
  min-width: 0;
}

.steps {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.step {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.step-num {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.step h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.step p strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.step-body {
  min-width: 0;
  margin-top: 20px;
  margin-left: 38px;
}

.inline-code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.86em;
  word-break: break-word;
}

.tree {
  overflow-x: auto;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-xs);
  background: #1d211c;
  color: #d8d2c4;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  white-space: pre;
}

.tree .c {
  color: #8e9c86;
}

.tree .y {
  color: #e7bd72;
}

.code-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  background: #1d211c;
  color: #e7e1d4;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a4ab9c;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.code-card pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  tab-size: 2;
}

.code-card code {
  font-family: inherit;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #c9cec3;
  font-size: 10px;
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.copy-btn.is-copied {
  border-color: rgba(143, 183, 137, 0.5);
  color: #b8d8b2;
}

/* Prompt builder */

.prompt-builder {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(26px, 3.2vw, 36px);
  border: 1px solid rgba(35, 33, 29, 0.1);
  border-radius: var(--radius);
  background: #f0e3c8;
  color: #33291a;
  box-shadow: var(--shadow-sm);
}

.prompt-builder::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -55px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(51, 41, 26, 0.13);
  border-radius: 50%;
}

.prompt-builder h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.prompt-builder .builder-desc {
  max-width: 32em;
  margin-top: 10px;
  color: rgba(51, 41, 26, 0.66);
  font-size: 13px;
  line-height: 1.8;
}

.field {
  margin-top: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: rgba(51, 41, 26, 0.62);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(51, 41, 26, 0.2);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.68);
  color: #33291a;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.field input {
  height: 46px;
  padding: 0 14px;
}

.field textarea {
  min-height: 92px;
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(51, 41, 26, 0.55);
  background: #fffdf8;
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(51, 41, 26, 0.38);
}

.builder-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.builder-actions .btn-primary {
  background: #33291a;
  color: #f7f3eb;
}

.builder-actions .btn-primary:hover {
  background: #cf4b2b;
}

.builder-note {
  margin-top: 12px;
  color: rgba(51, 41, 26, 0.52);
  font-size: 11px;
}

/* Sticky aside */

.workshop-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.aside-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.aside-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.aside-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.aside-list li {
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.aside-list .check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 700;
}

.aside-card.dark {
  border-color: transparent;
  background: #203329;
  color: #f2eadb;
}

.aside-card.dark p {
  color: rgba(242, 234, 219, 0.62);
}

.aside-card.dark h3 {
  color: #f2eadb;
}

.aside-card.dark .aside-list li {
  color: rgba(242, 234, 219, 0.82);
}

.aside-card.dark .aside-list .check {
  background: rgba(242, 234, 219, 0.12);
  color: #f29a7c;
}

.aside-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #f29a7c;
  font-size: 12px;
  font-weight: 600;
}

.aside-cta:hover {
  color: #ffb9a2;
}

/* FAQ */

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ---------- App shell ---------- */

.shell-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper-2);
}

.app-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.shell-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.shell-back .back-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.2s;
}

.shell-back:hover .back-icon {
  transform: translateX(-3px);
  background: var(--paper-2);
}

.shell-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.shell-app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shell-app-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--accent-soft);
  font-size: 19px;
}

.shell-app-meta h1 {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-app-meta p {
  overflow: hidden;
  max-width: 52vw;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.shell-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.shell-action:hover {
  border-color: var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
}

.shell-action svg {
  width: 15px;
  height: 15px;
}

.shell-main {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 14px;
}

.shell-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f3eb;
  box-shadow: var(--shadow-sm);
}

.shell-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f3eb;
}

.shell-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.shell-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loader-ring {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.shell-error {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 30px;
  text-align: center;
}

.shell-error .error-emoji {
  font-size: 44px;
}

.shell-error h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 26px;
}

.shell-error p {
  max-width: 26em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.shell-error .btn {
  margin-top: 22px;
}

.shell-body.is-focus .app-bar {
  display: none;
}

.shell-body.is-focus .shell-main {
  padding: 0;
}

.shell-body.is-focus .shell-frame {
  border: 0;
  border-radius: 0;
}

.shell-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  min-height: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.shell-foot .hint {
  opacity: 0.8;
}

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .hero h1 {
    max-width: 10em;
  }

  .hero-stage {
    min-height: 430px;
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .stage-card {
    width: 340px;
  }

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

  .about-title {
    position: static;
  }

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

  .workshop-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .cta-stamp {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav {
    height: 66px;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(30px, 9.4vw, 44px);
    line-height: 1.14;
    white-space: normal;
  }

  .hero h1 .line {
    white-space: nowrap;
  }

  .hero-lede {
    margin-top: 20px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .btn {
    min-height: 48px;
    padding: 0 19px;
    font-size: 14px;
  }

  .hero-note {
    margin-top: 20px;
    font-size: 11px;
  }

  .hero-stage {
    min-height: 400px;
    margin-top: 10px;
  }

  .stage-card {
    top: 52%;
    width: min(330px, 85%);
    padding: 20px;
  }

  .stage-sun {
    width: 210px;
    height: 210px;
    right: 4%;
  }

  .float-pomodoro {
    left: 0;
    top: -1%;
    transform: rotate(-4deg) scale(0.92);
    transform-origin: left top;
  }

  .float-note {
    right: 0;
    bottom: -10%;
    transform: rotate(3deg) scale(0.92);
    transform-origin: right bottom;
  }

  .float-chip {
    display: none;
  }

  .spin-stamp {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 26px;
  }

  .section-title {
    margin-top: 12px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-card {
    min-height: 300px;
    padding: 21px;
  }

  .app-icon {
    width: 66px;
    height: 66px;
    margin: 24px 0 20px;
    border-radius: 19px;
    font-size: 32px;
  }

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

  .fact {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 18px;
  }

  .fact b {
    font-size: 24px;
  }

  .fact span {
    margin-top: 0;
  }

  .manifesto {
    padding: 19px 20px;
    font-size: 17px;
  }

  .cta {
    border-radius: 24px;
  }

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

  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
  }

  .page-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .workshop-aside {
    grid-template-columns: 1fr;
  }

  .step-body {
    margin-left: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app-bar {
    min-height: 62px;
    gap: 12px;
    padding: 0 12px;
  }

  .shell-back span:last-child {
    display: none;
  }

  .shell-divider {
    display: none;
  }

  .shell-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 16px;
  }

  .shell-app-meta h1 {
    font-size: 15px;
  }

  .shell-app-meta p {
    display: none;
  }

  .shell-actions {
    gap: 4px;
  }

  .shell-action {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .shell-main {
    padding: 8px;
  }

  .shell-frame {
    border-radius: 14px;
  }

  .shell-foot {
    display: none;
  }
}

@media (max-width: 420px) {
  .eyebrow {
    font-size: 11px;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .hero-stage {
    min-height: 370px;
  }

  .stage-card {
    width: 300px;
    padding: 18px;
  }

  .stage-clock {
    font-size: 56px;
  }

  .float-note {
    display: none;
  }

  .apps-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

