/* ==========================================================================
   求真软件（Truth Software）— portfolio site styles
   Clean, dependency-free, mobile-first. Accent palette mirrors the colorful
   circle motif of the original case-book cover (orange / pink / purple).
   ========================================================================== */

:root {
  --ink: #16181d;
  --ink-soft: #4b5058;
  --ink-faint: #8a8f98;
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --border: #e8e8ec;
  --accent-1: #f59e0b; /* orange */
  --accent-2: #ec4899; /* pink   */
  --accent-3: #8b5cf6; /* purple */
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --radius: 14px;
  --shadow: 0 8px 30px rgba(22, 24, 29, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.nav__logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--ink); }

.nav__cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.nav__cta:hover { opacity: 0.85; }

.lang-toggle {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.theme-toggle {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.theme-toggle:hover { border-color: var(--ink-faint); }

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

.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(500px 260px at 10% 0%, rgba(245, 158, 11, 0.10), transparent 60%);
}

.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.hero__title {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* English hero title is much longer than Chinese — shrink so it fits in 2 lines */
.hero__title:lang(en) {
  font-size: clamp(14px, 2.8vw, 30px);
  line-height: 1.3;
}

.hero__subtitle {
  max-width: 640px;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.hero__slogan {
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 26px;
}

.hero__slogan small {
  display: block;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 13px;
  margin-top: 6px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25);
}

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

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: #fff;
}

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

/* WeChat QR shown on hover over the phone number */
.wechat-hover {
  position: relative;
}

.wechat-hover img {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  background: #fff;
}

.wechat-hover:hover img {
  display: block;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.stat__num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.stat__label {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 6px;
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }

.section--alt { background: var(--bg-alt); }

.section__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
}

.section__subtitle {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 40px;
  font-size: 16px;
}

.section__kicker {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 8px;
}

.section__note {
  margin: 40px 0 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 16px;
}

.section--dark .section__note { color: rgba(255, 255, 255, 0.72); }

/* ---------- Grid & cards ---------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.card__icon { font-size: 26px; margin-bottom: 12px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- AI transformation steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 0 44px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step__num {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- Works ---------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter:hover { border-color: var(--ink-faint); color: var(--ink); }

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

.work__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.work__head h3 { margin: 0; }

.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag--miniapp { background: rgba(236, 72, 153, 0.10); color: #db2777; }
.tag--app     { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }
.tag--web     { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.tag--h5      { background: rgba(16, 185, 129, 0.10); color: #059669; }

.work__meta {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

.work__meta b {
  color: var(--ink-soft);
  font-weight: 600;
  margin-right: 4px;
}

/* English labels need a word space before their value (e.g. "Role design…") */
html[lang="en"] .work__meta b::after { content: " "; }

/* ---------- Clients ---------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.partner {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 160px;
}

.partner__logo {
  width: 160px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.partner__logo img {
  max-width: 84%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner figcaption {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
}

.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.clients li {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-soft);
  background: #fff;
}

/* ---------- Team ---------- */

.person__role {
  color: var(--accent-2) !important;
  font-weight: 600;
  font-size: 13.5px !important;
  margin-bottom: 8px !important;
}

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(500px 300px at 90% 110%, rgba(236, 72, 153, 0.10), transparent 60%),
    radial-gradient(500px 300px at 0% 110%, rgba(139, 92, 246, 0.10), transparent 60%);
  text-align: center;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section__subtitle { margin-left: auto; margin-right: auto; }

.contact__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.footer__inner p { margin: 0; }

/* ---------- AI-native (dark band) ---------- */

.section--dark {
  background:
    radial-gradient(620px 320px at 85% 0%, rgba(139, 92, 246, 0.35), transparent 62%),
    radial-gradient(520px 300px at 5% 100%, rgba(236, 72, 153, 0.25), transparent 62%),
    #12141a;
  color: #fff;
}

.section--dark .section__title { color: #fff; }
.section--dark .section__subtitle { color: rgba(255, 255, 255, 0.72); }

.section--dark .stats { margin-top: 0; margin-bottom: 40px; }

.section--dark .stat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.section--dark .stat__label { color: rgba(255, 255, 255, 0.6); }

.section--dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
}

.section--dark .card p { color: rgba(255, 255, 255, 0.72); }
.section--dark .card:hover { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); }

/* ---------- Chips (AI tools + tech stack) ---------- */

.chips-block { margin-top: 40px; }

.chips__label {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink-faint);
}

.section--dark .chips__label { color: rgba(255, 255, 255, 0.55); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  line-height: 1.5;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  white-space: nowrap;
}

.section--dark .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Tech stack ---------- */

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

.stack__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}

.stack__row:last-child { border-bottom: 0; padding-bottom: 0; }

.stack__label {
  padding-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Finance / banking ---------- */

.finance {
  background:
    radial-gradient(520px 300px at 90% 0%, rgba(245, 158, 11, 0.13), transparent 62%),
    radial-gradient(520px 300px at 0% 100%, rgba(139, 92, 246, 0.10), transparent 62%);
}

.tag--fin { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }

/* ---------- Portfolio page ---------- */

.nav__links a.is-active { color: var(--ink); font-weight: 600; }

.hero--portfolio {
  padding: 72px 0 56px;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(500px 260px at 10% 0%, rgba(245, 158, 11, 0.10), transparent 60%);
}

.pgrid .pcase { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

.pcase__thumb {
  position: relative;
  display: block;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f4f6, #eef0f3);
  border-bottom: 1px solid var(--border);
}

.pcase__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.pcase:hover .pcase__thumb img { transform: scale(1.05); }

.pcase__cover-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.72);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(6px);
}

.pcase__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

.pcase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pcase__head h3 { margin: 0; }
.pcase__head h3 a { color: inherit; text-decoration: none; }
.pcase__head h3 a:hover { color: var(--accent-2); }
.pcase__tags { display: flex; gap: 6px; align-items: center; }

.pcase__sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.pcase__meta { margin-top: 14px; }

.pcase__link {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
}

.pcase__link:hover { text-decoration: underline; }

/* ---------- Case study sub-pages ---------- */

.case { padding: 40px 0 72px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink-soft); font-weight: 600; }

.case__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: start;
  padding: 6px 0 44px;
}

.case__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}

.case__sub {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--ink-soft);
}

.case__tags { display: flex; gap: 8px; }

.case__meta { margin-top: 18px; padding-top: 16px; }

.case__desc {
  margin: 0;
  padding-top: 42px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  border-top: 1px dashed var(--border);
}

.case__gallery-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.gallery {
  columns: 3;
  column-gap: 20px;
}

.gallery__item {
  break-inside: avoid;
  margin: 0 0 20px;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 4px 18px rgba(22, 24, 29, 0.06);
}

.case__switch {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
}

.case-switch { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.case-switch:hover { color: var(--accent-2); }
.case-switch--next { margin-left: auto; }

/* ---------- Works thumbs on the landing page ---------- */

.work:has(.work__thumb) { padding: 0; overflow: hidden; }
.work:has(.work__thumb) .work__body { padding: 22px 24px 24px; }

.work__thumb {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f4f6, #eef0f3);
  border-bottom: 1px solid var(--border);
}

.work__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.work:hover .work__thumb img { transform: scale(1.05); }

.work__thumb-more {
  position: absolute;
  inset: auto 14px 14px auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work:hover .work__thumb-more { opacity: 1; transform: translateY(0); }

.section__more {
  margin: 40px 0 0;
}

.section__more a {
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
}

.section__more a:hover { text-decoration: underline; }

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

@media (max-width: 900px) {
  .gallery { columns: 2; }
  .case__head { grid-template-columns: 1fr; gap: 10px; }
  .case__desc { padding-top: 22px; }
}

@media (max-width: 640px) {
  .gallery { columns: 1; }
  .pcase__thumb { height: 340px; }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Dark mode ---------- */

html[data-theme="dark"] {
  --ink: #f2f4f7;
  --ink-soft: #b7bdc8;
  --ink-faint: #7e8591;
  --bg: #101218;
  --bg-alt: #161922;
  --border: #282d39;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

html[data-theme="dark"] .nav {
  background: rgba(16, 18, 24, 0.88);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .filter,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .clients li,
html[data-theme="dark"] .btn--ghost,
html[data-theme="dark"] .step {
  background: #181b24;
}

html[data-theme="dark"] .filter { color: var(--ink-soft); }

html[data-theme="dark"] .filter:hover { color: var(--ink); }

html[data-theme="dark"] .nav__cta {
  background: var(--gradient);
  color: #fff;
}

html[data-theme="dark"] .btn--ghost { color: var(--ink); }

html[data-theme="dark"] .pcase__thumb,
html[data-theme="dark"] .work__thumb {
  background: linear-gradient(160deg, #1a1e28, #141720);
}

html[data-theme="dark"] .gallery__item img {
  border-color: var(--border);
  background: #fafbfc;
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(500px 260px at 10% 0%, rgba(245, 158, 11, 0.14), transparent 60%);
}

html[data-theme="dark"] .contact {
  background:
    radial-gradient(500px 300px at 90% 110%, rgba(236, 72, 153, 0.14), transparent 60%),
    radial-gradient(500px 300px at 0% 110%, rgba(139, 92, 246, 0.12), transparent 60%);
}

html[data-theme="dark"] .finance {
  background:
    radial-gradient(520px 300px at 90% 0%, rgba(245, 158, 11, 0.12), transparent 62%),
    radial-gradient(520px 300px at 0% 100%, rgba(139, 92, 246, 0.10), transparent 62%);
}

html[data-theme="dark"] .section--dark {
  background:
    radial-gradient(620px 320px at 85% 0%, rgba(139, 92, 246, 0.28), transparent 62%),
    radial-gradient(520px 300px at 5% 100%, rgba(236, 72, 153, 0.20), transparent 62%),
    #0c0e13;
}

@media (max-width: 1000px) {
  .nav__links { gap: 8px; }
  .nav__links a { font-size: 13px; }
  .nav__cta { padding: 7px 12px; }
}

@media (max-width: 800px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding-top: 64px; }
  .section { padding: 60px 0; }
  .stack__row { grid-template-columns: 1fr; gap: 8px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
