@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap");

/* ---------- Tokens ---------- */
:root {
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #fdfdfb;
  --ink: #0d1728;
  --muted: #566177;
  --line: #dcdad2;
  --blue: #1a4f96;
  --soft: #ecebe4;
  --focus: #2f6fd0;
  --btn: #0d1728;
  --btn-fg: #f6f5f1;
  --btn-hover: #1a4f96;
  --btn-hover-fg: #fff;
  --stage: #070e19;
  --display: Inter, "Noto Sans SC", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080e18;
  --surface: #0f1827;
  --ink: #eef2f8;
  --muted: #a3b1c4;
  --line: #1f2c40;
  --blue: #8bbcf6;
  --soft: #0e1826;
  --focus: #67a8f5;
  --btn: #eef2f8;
  --btn-fg: #080e18;
  --btn-hover: #8bbcf6;
  --btn-hover-fg: #06101c;
  --stage: #04080f;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: clip;
}
:lang(zh-Hans) body {
  line-height: 1.7;
}
a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ink);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.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;
}
.wrap {
  width: min(100% - 3rem, 1240px);
  margin: auto;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin: auto;
}
.nav a,
.lang a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
  transition:
    color 0.2s,
    background-size 0.25s ease;
}
.nav a:hover,
.lang a:hover,
.nav a[aria-current],
.lang [aria-current="page"] {
  color: var(--ink);
  background-size: 100% 1px;
}
.nav a[aria-current] {
  background-image: linear-gradient(var(--blue), var(--blue));
}
.header-controls,
.lang {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang {
  gap: 0.5rem;
  white-space: nowrap;
}
.lang [aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}
.theme-control select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  padding: 0 0.5rem;
  max-width: 7.6rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.theme-control select:hover {
  border-color: var(--blue);
}
.search summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: color 0.2s;
}
.search summary:hover {
  color: var(--blue);
}
.search summary::-webkit-details-marker {
  display: none;
}
.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% - 1px);
  width: min(420px, 100%);
  max-height: min(70vh, 540px);
  overflow: auto;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px #09182b24;
}
.search-panel label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
}
.search-panel input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.search-results {
  display: grid;
  margin-top: 0.7rem;
}
.search-results a {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.search-results a:hover {
  color: var(--blue);
}
.search-panel p {
  color: var(--muted);
}
.mobile-nav {
  display: none;
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
}
:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3 {
  letter-spacing: 0;
  line-height: 1.25;
}
h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
}

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--btn);
  color: var(--btn-fg);
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--btn);
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.1s;
}
.button:hover,
.button:focus-visible {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--btn-hover-fg);
}
.button:active {
  transform: translateY(1px);
}
.arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.button:hover .arrow,
.button:focus-visible .arrow {
  transform: translateX(5px);
}
.text-link,
.section-link {
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
  padding-bottom: 0.15rem;
  transition:
    background-size 0.25s ease,
    color 0.2s;
}
.text-link:hover,
.section-link:hover,
.text-link:focus-visible,
.section-link:focus-visible {
  background-size: 100% 1px;
  color: var(--ink);
}
.text-link:hover .arrow,
.section-link:hover .arrow {
  transform: translate(3px, -3px);
}
.text-link:active,
.section-link:active {
  opacity: 0.7;
}

/* ---------- Home: shared structure ---------- */
.rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(var(--blue), var(--blue)) 0 0/2.5rem 2px no-repeat;
  background-origin: border-box;
  font-size: 0.88rem;
  color: var(--muted);
}
.rule > span:first-child {
  color: var(--ink);
  font-weight: 700;
}
.home h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.04;
}
:lang(zh-Hans) .home h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

/* ---------- Hero ---------- */
.home-hero {
  padding: 1rem 0 6rem;
}
.hero-masthead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.home .wordmark {
  margin: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(2rem, 4vw, 3.5rem);
  font-family: var(--display);
  font-size: min(16.4vw, 14.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.82;
  white-space: nowrap;
}
.wordmark span {
  color: var(--blue);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-explore {
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.hero-explore:hover { color: var(--blue); }
.hero-explore span { transition: transform 0.2s ease; }
.hero-explore:hover span { transform: translateY(4px); }
.hero-statement {
  max-width: 15ch;
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
:lang(zh-Hans) .hero-statement {
  max-width: none;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.hero-detail {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.hero-product {
  margin: 0 calc((100vw - min(100% - 3rem, 1240px) - 3rem) / -2 + 0px) 0 0;
  margin-right: calc((min(100vw - 3rem, 1240px) - 100vw) / 2);
}
.crop {
  position: relative;
  aspect-ratio: 100/64;
  overflow: hidden;
  background: #071323;
  border: 1px solid var(--line);
  border-right: 0;
  animation: wipe 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.crop img {
  position: absolute;
  display: block;
  width: 200%;
  max-width: none;
  height: auto;
  left: -98%;
  top: -76.5%;
}
.hero-product figcaption,
.product-shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}
@keyframes wipe {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0);
  }
}

/* ---------- BusinessOS showcase ---------- */
.product-section {
  margin-inline: calc(50% - 50vw);
  padding: clamp(3.5rem, 7vw, 6rem) calc(50vw - 50%);
  background: var(--stage);
  color: #eef3fa;
}
.product-section .rule {
  border-color: #22334b;
  color: #9fb1c7;
}
.product-section .rule > span:first-child {
  color: #eef3fa;
}
.product-section h2 {
  color: #f6f9fd;
}
.product-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin: clamp(2rem, 4vw, 3.2rem) 0;
}
.product-intro p {
  max-width: 30rem;
  margin: 0 0 1.6rem;
  color: #b9c8da;
  font-size: 1.06rem;
}
.product-section .button {
  --btn: #8bbcf6;
  --btn-fg: #06101c;
  --btn-hover: #c3ddfb;
  --btn-hover-fg: #06101c;
}
.product-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.product-copy p:not(.section-mark) { max-width: 30rem; color: #b9c8da; }
.plan-preview { min-width: 0; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid #bdd5f0; border-radius: 14px; background: #f5f9ff; color: #102b4d; box-shadow: 0 18px 48px #02091633; }
.plan-preview-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; }
.plan-preview-head strong { font-size: clamp(1.25rem, 2.1vw, 1.65rem); letter-spacing: -.03em; }
.plan-preview-head span { align-self: center; color: #54708e; font-size: .8rem; white-space: nowrap; }
.plan-preview-row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); align-items: center; gap: .75rem; padding: 1.1rem 0; border-top: 1px solid #d5e3f3; }
.plan-preview-row > div { display: grid; gap: .12rem; }
.plan-preview-row strong { font-size: 1.05rem; letter-spacing: -.02em; }
.plan-preview-row small { color: #54708e; font-size: .75rem; }
.plan-preview-row > span { font-size: clamp(.95rem, 1.7vw, 1.22rem); font-weight: 800; white-space: nowrap; }
.plan-preview-note { margin: 1.3rem 0; color: #476787; font-size: .82rem; line-height: 1.55; }
.plan-preview > a { display: inline-flex; justify-content: space-between; gap: 1.5rem; width: 100%; padding: .85rem 1rem; border-radius: 7px; background: #0d5db7; color: #fff; font-weight: 700; text-decoration: none; }
.plan-preview > a:hover, .plan-preview > a:focus-visible { background: #084988; color: #fff; }
.product-lines { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.product-lines div { display: grid; gap: .3rem; padding-top: 1rem; border-top: 1px solid #2a3b54; }
.product-lines span { color: #8bbcf6; font-size: .75rem; }
.product-lines strong { font-size: 1.05rem; }
.product-lines small { color: #a6b9cc; }
@media (max-width: 520px) { .plan-preview-head { align-items: flex-start; flex-direction: column; gap: .2rem; } .plan-preview-head span { align-self: flex-start; } .plan-preview-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-preview-row > div { grid-column: 1/-1; } }
.product-shot {
  margin: 0;
}
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #2a3b54;
  background: #071323;
}
.product-shot figcaption {
  color: #8fa3ba;
}
.product-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 2.6rem 0 0;
}
.product-features div {
  padding-top: 1rem;
  border-top: 1px solid #2a3b54;
  background: linear-gradient(#8bbcf6, #8bbcf6) 0 0/2.5rem 2px no-repeat;
  background-origin: border-box;
}
.product-features dt {
  font-size: 1.12rem;
  font-weight: 700;
}
.product-features dd {
  margin: 0.3rem 0 0;
  color: #a6b9cc;
  font-size: 0.92rem;
}

/* ---------- Learn ---------- */
.home-learn,
.home-tools {
  padding: clamp(4rem, 8vw, 7rem) 0 0;
}
.home-learn h2,
.home-tools h2 {
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}
:lang(zh-Hans) .home-learn h2,
:lang(zh-Hans) .home-tools h2 {
  max-width: none;
}
.editorial-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.editorial-feature article, .editorial-feature a, .story-list a > div { min-width: 0; }
.editorial-feature img { display: block; width: 100%; height: auto; }
.story-list a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; }
.editorial-feature a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.thumb {
  overflow: hidden;
  background: var(--soft);
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.editorial-feature a:hover .thumb img {
  transform: scale(1.035);
}
.lead-story .thumb {
  aspect-ratio: 1.55;
}
.story-meta {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.story-meta span:first-child {
  color: var(--blue);
  font-weight: 700;
}
.lead-story .story-meta {
  margin-top: 1.1rem;
}
.lead-story h3,
.story-list h3 {
  display: inline;
  font-family: var(--display);
  background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
  transition: background-size 0.3s ease;
}
.editorial-feature a:hover h3,
.editorial-feature a:focus-visible h3 {
  background-size: 100% 1px;
}
.lead-story h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.lead-story h3::after {
  content: "";
  display: block;
}
.lead-story .h {
  margin: 0.6rem 0 0;
}
.editorial-feature p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.6rem 0 0;
}
.lead-story p {
  max-width: 34rem;
  font-size: 1.02rem;
}
.story-list article {
  border-top: 1px solid var(--line);
}
.story-list article:first-child {
  background: linear-gradient(var(--blue), var(--blue)) 0 0/2.5rem 2px no-repeat;
  background-origin: border-box;
}
.story-list article:last-child {
  border-bottom: 1px solid var(--line);
}
.story-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 1.4rem;
  padding: 1.4rem 0;
  align-items: start;
}
.story-list .thumb {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1.2;
}
.story-list .h {
  margin: 0.5rem 0 0;
}
.story-list h3 {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.story-list p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- Tools ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tool-teaser { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.2rem; align-items: center; min-height: 9rem; padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tool-teaser:hover, .tool-teaser:focus-visible { background: var(--soft); box-shadow: inset 0 2px var(--blue); color: var(--ink); }
.tool-teaser strong, .tool-teaser small { display: block; }
.tool-teaser small { margin-top: .4rem; color: var(--muted); }
.tool-icon { font: 300 2.5rem var(--display); color: var(--blue); }
.brand-statement > span { grid-column: 1/-1; margin-bottom: 2rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.tool {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 260px;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.tool:hover,
.tool:focus-visible {
  background: var(--soft);
  box-shadow: inset 0 2px 0 var(--blue);
  color: var(--ink);
}
.tool:active {
  background: var(--line);
}
.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.glyph {
  font-family: var(--display);
  font-size: clamp(3.6rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--muted);
  transition: color 0.2s;
}
.tool:hover .glyph,
.tool:focus-visible .glyph {
  color: var(--blue);
}
.tool-arrow {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.22s ease;
}
.tool:hover .tool-arrow,
.tool:focus-visible .tool-arrow {
  transform: translate(5px, -5px);
}
.tool strong,
.tool small {
  display: block;
}
.tool strong {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.tool small {
  margin-top: 0.4rem;
  max-width: 26rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Brand statement ---------- */
.brand-statement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(var(--blue), var(--blue)) 0 0/2.5rem 2px no-repeat;
  background-origin: border-box;
}
.home .brand-statement h2 {
  grid-column: 1/-1;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
:lang(zh-Hans) .home .brand-statement h2 {
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.15;
  letter-spacing: 0;
}
.brand-statement .sign {
  grid-column: 1/5;
  align-self: end;
  margin-top: 3rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.brand-statement p {
  grid-column: 8/-1;
  max-width: 26rem;
  margin: 3rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- Inner pages (unchanged behavior) ---------- */
.page {
  padding: 3.5rem 0 5rem;
}
.page > h1 {
  max-width: 22ch;
}
.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}
.eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.card {
  padding: 1.4rem;
  border-top: 2px solid var(--blue);
  background: var(--surface);
}
.card h3 {
  margin-top: 0;
}
.card p,
.muted {
  color: var(--muted);
}
.prose {
  max-width: 72ch;
}
.prose h2 {
  margin-top: 2.4rem;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose li {
  margin: 0.4rem 0;
}
.prose strong {
  color: var(--ink);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem;
  text-align: left;
}
.related {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 3rem;
}
.related ul {
  padding-left: 1.2rem;
}
.editorial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  border-top: 1px solid var(--line);
}
.editorial-list > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.editorial-list > a span:first-child {
  font-weight: 700;
}
.editorial-list > a small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.9rem;
}
.editorial-list > a span:last-child {
  grid-column: 2;
  grid-row: 1/3;
  color: var(--blue);
}
.tool-list {
  max-width: 850px;
  grid-template-columns: 1fr;
}
.tool-form {
  max-width: 40rem;
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.result {
  max-width: 40rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.result strong {
  font-size: 1.5rem;
}
.error {
  color: #bf3040;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}
.footer-top p {
  color: var(--muted);
  max-width: 18rem;
}
.footer-top nav {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
}
.footer-top nav div {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}
.footer-top nav strong {
  margin-bottom: 0.4rem;
}
.footer-top nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer-top nav a:hover {
  text-decoration: underline;
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.2rem;
  color: var(--muted);
}
.footer-bottom a {
  color: var(--muted);
}

/* ---------- Motion (very light) ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
}
:root[data-theme="dark"] .thumb img {
  filter: brightness(0.9);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-header {
    gap: 1rem;
  }
  .story-list a {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .story-list p {
    display: none;
  }
}
@media (max-width: 900px) {
  .site-header {
    gap: 0.75rem;
    padding: 0.6rem 0;
  }
  .nav {
    display: none;
  }
  .header-controls {
    margin-left: auto;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav summary {
    list-style: none;
    cursor: pointer;
    min-height: 44px;
    padding: 0 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 0.2s;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav summary:hover,
  .mobile-nav[open] summary {
    border-color: var(--blue);
  }
  .mobile-nav summary::after {
    content: "";
    width: 14px;
    height: 8px;
    background:
      linear-gradient(currentColor, currentColor) 0 0/100% 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100%/100% 1.5px no-repeat;
  }
  .mobile-nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    padding: 0.3rem 1rem 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-top: 0;
    box-shadow: 0 18px 40px #09182b1f;
  }
  .mobile-nav nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav nav a:last-child {
    border-bottom: 0;
  }
  .mobile-nav nav a:active {
    color: var(--blue);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .hero-explore { justify-self: start; }
  .product-stage { grid-template-columns: 1fr; }
  .product-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-statement {
    max-width: 20ch;
  }
  .hero-product {
    margin-right: 0;
  }
  .crop {
    border-right: 1px solid var(--line);
  }
  .product-head {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .product-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 2rem;
  }
  .editorial-feature {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .story-list a {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .story-list p {
    display: -webkit-box;
  }
  .tool {
    min-height: 220px;
  }
  .brand-statement p {
    grid-column: 5/-1;
  }
  .brand-statement .sign {
    grid-column: 1/5;
  }
  .footer-top {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand search menu" "lang lang theme";
    gap: 0 0.6rem;
    align-items: center;
    padding: 0.4rem 0 0.6rem;
  }
  .header-controls {
    display: contents;
  }
  .brand {
    grid-area: brand;
    font-size: 0.95rem;
  }
  .search {
    grid-area: search;
  }
  .mobile-nav {
    grid-area: menu;
  }
  .lang {
    grid-area: lang;
    font-size: 0.88rem;
    gap: 0.7rem;
  }
  .theme-control {
    grid-area: theme;
  }
  .lang a {
    padding: 0.6rem 0;
  }
  .theme-control select {
    height: 40px;
    max-width: none;
    min-width: 6.4rem;
  }
  .search summary {
    min-width: 44px;
  }
  .wrap {
    width: min(100% - 2rem, 1240px);
  }
  .home-hero {
    padding: 0.8rem 0 4rem;
  }
  .hero-masthead span:last-child {
    display: none;
  }
  .hero-actions {
    gap: 1.2rem;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }
  .crop {
    aspect-ratio: 100/72;
  }
  .product-section {
    padding-block: 3.2rem;
  }
  .product-intro .button {
    width: 100%;
    justify-content: space-between;
  }
  .story-list a {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 1rem;
  }
  .story-list p {
    display: none;
  }
  .story-list h3 {
    font-size: 1.12rem;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-teaser { min-height: 0; }
  .tool {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    min-height: 0;
    padding: 1.2rem 1rem;
  }
  .tool-top {
    display: contents;
  }
  .glyph {
    order: 0;
    flex: 0 0 3.2rem;
    font-size: 3rem;
    text-align: center;
  }
  .tool-body {
    order: 1;
    flex: 1;
  }
  .tool-arrow {
    order: 2;
  }
  .tool small {
    font-size: 0.86rem;
  }
  .brand-statement {
    margin-top: 4rem;
  }
  .brand-statement p {
    grid-column: 1/-1;
    margin-top: 2rem;
  }
  .brand-statement .sign {
    grid-column: 1/-1;
    order: 3;
    margin-top: 2rem;
  }
  .page {
    padding: 2.5rem 0 4rem;
  }
  .editorial-list {
    grid-template-columns: 1fr;
  }
  .footer-top nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
  }
}
@media (max-width: 400px) {
  .product-features {
    grid-template-columns: 1fr;
  }
  .story-list a {
    grid-template-columns: minmax(0, 1fr) 84px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
