:root {
  color-scheme: light;
  --bg: #fbfdfb;
  --paper: #ffffff;
  --paper-strong: #f4faf6;
  --ink: #0d1d17;
  --muted: #5b6c64;
  --subtle: #7b8982;
  --line: rgba(13, 29, 23, 0.1);
  --line-strong: rgba(13, 29, 23, 0.16);
  --green: #18b978;
  --green-dark: #0c7c59;
  --green-soft: #e4f8ee;
  --mint: #bdf7db;
  --amber: #f5a524;
  --blue: #4f8cff;
  --danger: #d85b45;
  --shadow: 0 22px 70px rgba(19, 72, 50, 0.12);
  --shadow-soft: 0 14px 46px rgba(25, 70, 52, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(42, 230, 168, 0.18), transparent 34rem),
    radial-gradient(circle at 83% 4rem, rgba(79, 140, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfdfb 0%, #f8fbf8 58%, #ffffff 100%);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(13, 29, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 29, 23, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

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

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

::selection {
  background: rgba(24, 185, 120, 0.22);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 720;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(13, 29, 23, 0.08);
  background: rgba(251, 253, 251, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
}

.nav {
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: url("/lianshi/assets/app-icon-256.png?v=20260617-appicon1") center / cover no-repeat;
  color: transparent;
  box-shadow: 0 12px 28px rgba(24, 185, 120, 0.18);
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

.logo-text {
  font-size: 19px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a,
.nav-actions a:not(.button) {
  color: rgba(13, 29, 23, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-actions a:not(.button):hover {
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
}

.container {
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  padding: 80px 0 58px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid rgba(24, 185, 120, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 12px 32px rgba(19, 72, 50, 0.06);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(24, 185, 120, 0.14);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 880;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, #18b978, #0b7f59);
  color: #fff;
  box-shadow: 0 18px 40px rgba(24, 185, 120, 0.24);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.button.text {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--green-dark);
}

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

.button.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.hero-note,
.micro-note,
.disclaimer {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.7;
}

.hero-note {
  max-width: 700px;
  margin: 18px 0 0;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), transparent 23%),
    linear-gradient(135deg, rgba(189, 247, 219, 0.86), rgba(79, 140, 255, 0.18));
  filter: blur(2px);
  opacity: 0.82;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(100%, 338px);
  padding: 12px;
  border-radius: 46px;
  background: #0a1511;
  box-shadow: 0 34px 90px rgba(10, 21, 17, 0.28);
}

.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background: #0a1511;
  z-index: 3;
}

.phone-screen {
  min-height: 680px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdfb, #eef8f2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.phone-top {
  padding: 44px 20px 12px;
}

.phone-title-row,
.phone-nav-row,
.food-row,
.metric-row,
.check-row,
.legal-row,
.kpi-row {
  display: flex;
  align-items: center;
}

.phone-title-row {
  justify-content: space-between;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: linear-gradient(135deg, #18b978, #8debc1);
}

.phone h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.phone-subtitle {
  margin: 4px 0 0;
  color: #75847d;
  font-size: 12px;
}

.scan-card {
  margin: 12px 14px 0;
  padding: 16px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(19, 72, 50, 0.11);
}

.scan-window {
  position: relative;
  height: 160px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 28%, #fbf0c1 0 12%, transparent 13%),
    radial-gradient(circle at 68% 30%, #88d9a7 0 12%, transparent 13%),
    radial-gradient(circle at 48% 68%, #f8b37a 0 18%, transparent 19%),
    linear-gradient(135deg, #f6f1e6, #dcf2e5);
}

.scan-window::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(13, 29, 23, 0.05);
}

.scan-pill {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #16382c;
  font-size: 12px;
  font-weight: 780;
  backdrop-filter: blur(10px);
}

.food-row {
  gap: 10px;
  padding: 12px 2px 0;
}

.food-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--green-soft);
}

.food-main {
  flex: 1;
}

.food-name {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 780;
}

.food-meta {
  margin: 0;
  color: #7d8a84;
  font-size: 12px;
}

.food-kcal {
  font-weight: 840;
  color: var(--green-dark);
}

.metric-card {
  margin: 12px 14px 0;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(135deg, #123e2c, #0c7c59);
  color: #ffffff;
}

.metric-row {
  justify-content: space-between;
}

.metric-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.metric-value {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.ring {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: conic-gradient(#ffffff 0 64%, rgba(255, 255, 255, 0.2) 64% 100%);
  display: grid;
  place-items: center;
}

.ring::before {
  content: "64%";
  width: 58px;
  height: 58px;
  border-radius: inherit;
  display: grid;
  place-items: center;
  background: #0c7c59;
  font-size: 13px;
  font-weight: 820;
}

.phone-list {
  margin: 12px 14px 18px;
  display: grid;
  gap: 10px;
}

.mini-card {
  padding: 12px;
  border: 1px solid rgba(13, 29, 23, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e7efe9;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18b978, #8debc1);
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #173127;
  box-shadow: 0 20px 48px rgba(13, 29, 23, 0.14);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 780;
}

.float-chip.one {
  top: 78px;
  left: 12px;
}

.float-chip.two {
  right: 0;
  bottom: 122px;
}

.float-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.stat-strip {
  margin-top: 22px;
}

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

.stat-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.stat-number {
  margin: 0 0 7px;
  font-size: 28px;
  font-weight: 860;
  letter-spacing: -0.05em;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 58px 0;
}

.section-header {
  max-width: 730px;
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.section-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

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

.card,
.legal-card,
.faq-item,
.policy-block,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 24px;
  min-height: 238px;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 21px;
  font-weight: 820;
}

.card h3,
.legal-card h3,
.faq-item h3,
.policy-block h2,
.support-card h2 {
  margin: 0 0 12px;
  letter-spacing: -0.035em;
}

.card h3 {
  font-size: 21px;
}

.card p,
.legal-card p,
.faq-item p,
.policy-block p,
.policy-block li,
.support-card p,
.support-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.card p:last-child,
.legal-card p:last-child,
.faq-item p:last-child,
.policy-block p:last-child,
.support-card p:last-child {
  margin-bottom: 0;
}

.showcase {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 185, 120, 0.18);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(228, 248, 238, 0.72)),
    radial-gradient(circle at 0 0, rgba(24, 185, 120, 0.18), transparent 24rem);
  box-shadow: var(--shadow);
}

.showcase-inner {
  padding: 34px 0;
}

.brand-marquee {
  display: grid;
  gap: 14px;
  margin: 0;
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 12px;
  animation: marquee 42s linear infinite;
}

.marquee-track.reverse {
  animation-direction: reverse;
  animation-duration: 48s;
}

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

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 11px 14px 11px 11px;
  border: 1px solid rgba(13, 29, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #173127;
  box-shadow: 0 10px 28px rgba(19, 72, 50, 0.08);
  font-size: 14px;
  font-weight: 780;
}

.brand-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #e7f8ef, #d8efe4);
  color: #0c7c59;
  font-size: 12px;
  font-weight: 880;
}

.brand-dot.has-logo {
  background: #fff;
  border: 1px solid rgba(13, 29, 23, 0.08);
  overflow: hidden;
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.showcase-caption {
  max-width: 880px;
  margin: 26px auto 0;
  padding: 0 26px;
  text-align: center;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.7;
}

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

.flow-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 18px;
  align-items: stretch;
}

.flow-panel {
  padding: 28px;
  border-radius: 32px;
  background: #102b21;
  color: #fff;
  box-shadow: var(--shadow);
}

.flow-panel .section-kicker,
.flow-panel .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.flow-panel .section-title {
  color: #fff;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.075);
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 840;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-size: 14px;
}

.privacy-stack {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: 24px;
}

.legal-card h3 {
  font-size: 20px;
}

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8f2;
  color: #0b7351;
  font-size: 12px;
  font-weight: 760;
}

.comparison {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.comparison-label,
.comparison-content {
  padding: 20px 22px;
}

.comparison-label {
  background: rgba(228, 248, 238, 0.54);
  font-weight: 820;
}

.comparison-content {
  color: var(--muted);
  line-height: 1.75;
}

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

.faq-item {
  padding: 24px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 36px;
  background: linear-gradient(135deg, #123e2c, #0c7c59 54%, #18b978);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -96px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cta-panel h2 {
  position: relative;
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.cta-panel p {
  position: relative;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.78;
}

.cta-panel .button.primary {
  background: #fff;
  color: #0c7c59;
  box-shadow: none;
}

.cta-panel .button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.page-hero {
  padding: 82px 0 42px;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.page-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 88px;
}

.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.toc a:hover {
  color: var(--green-dark);
}

.policy-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.policy-block {
  padding: 28px;
  min-width: 0;
  scroll-margin-top: 96px;
}

.policy-block h2 {
  font-size: 26px;
}

.policy-block h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.policy-block ul,
.policy-block ol {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.policy-table {
  width: 100%;
  margin: 18px 0 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  font-size: 14px;
}

.policy-table th,
.policy-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.policy-table th {
  background: #eef8f2;
  color: #15342a;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 88px;
}

.support-card {
  padding: 26px;
}

.support-card.wide {
  grid-column: 1 / -1;
}

.template-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f5faf7;
  color: #43534c;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.65;
}

.database-query-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.database-query-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.database-query-head .section-title {
  font-size: clamp(34px, 4.6vw, 58px);
}

.database-query-head .section-copy {
  max-width: 820px;
}

.database-number {
  margin: 0 0 6px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 880;
}

.database-meta-grid,
.database-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.database-meta-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.database-meta-item,
.database-coverage-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(244, 250, 246, 0.72);
}

.database-meta-grid.compact .database-meta-item {
  min-height: 86px;
  padding: 14px;
}

.database-meta-label,
.database-coverage-label {
  margin: 0 0 6px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 760;
}

.database-meta-value,
.database-coverage-value {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.database-search-form {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 24px;
}

.database-search-primary {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.database-filter-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.database-filter-group {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(13, 29, 23, 0.08);
  border-radius: 22px;
  background: rgba(247, 251, 248, 0.74);
}

.database-filter-group.is-wide {
  grid-column: 1 / -1;
}

.database-filter-label {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.database-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.catalog-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(13, 29, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(13, 29, 23, 0.76);
  box-shadow: 0 8px 18px rgba(25, 70, 52, 0.04);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.catalog-option:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 185, 120, 0.38);
  color: var(--green-dark);
}

.catalog-option.is-active {
  border-color: rgba(24, 185, 120, 0.42);
  background: linear-gradient(135deg, rgba(24, 185, 120, 0.96), rgba(12, 124, 89, 0.96));
  color: #fff;
  box-shadow: 0 14px 28px rgba(24, 185, 120, 0.2);
}

.catalog-option.grade-a.is-active,
.catalog-option.grade-b.is-active {
  background: linear-gradient(135deg, #24bd5a, #0c7c59);
}

.catalog-option.grade-c.is-active {
  background: linear-gradient(135deg, #f2b94b, #b5790d);
}

.catalog-option.grade-d.is-active {
  background: linear-gradient(135deg, #e28537, #b65019);
}

.catalog-option.grade-e.is-active {
  background: linear-gradient(135deg, #dc6656, #a9342b);
}

.category-options .catalog-option {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.database-range-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.database-range-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.database-range-row label span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 760;
}

.database-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.database-search-form input,
.database-search-form select {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.database-search-form input {
  padding: 0 16px;
}

.database-search-form select {
  padding: 0 36px 0 14px;
}

.database-search-form input:focus,
.database-search-form select:focus {
  outline: 3px solid rgba(24, 185, 120, 0.2);
  border-color: rgba(24, 185, 120, 0.55);
}

.database-search-primary .button {
  min-height: 50px;
  padding: 0 24px;
  white-space: nowrap;
}

.database-filter-actions .button {
  min-height: 42px;
}

.catalog-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.catalog-result {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.catalog-result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-result-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.catalog-title-block {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.catalog-title-block h3 {
  min-width: 0;
}

.catalog-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(13, 29, 23, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(19, 72, 50, 0.06);
}

.catalog-result-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-nutrients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.catalog-nutrients span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef8f2;
  color: #0b7351;
  font-size: 12px;
  font-weight: 760;
}

.catalog-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.catalog-rating {
  min-width: 92px;
  padding: 9px 12px;
  border-radius: 16px;
  border: 1px solid rgba(24, 185, 120, 0.18);
  background: #eef9ee;
  color: #229a43;
  box-shadow: 0 12px 26px rgba(12, 124, 89, 0.08);
}

.catalog-rating-label {
  display: block;
  color: #5f6670;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-rating strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.catalog-rating.grade-a,
.catalog-rating.nova-1 {
  background: #e8f8e8;
  color: #18a23f;
}

.catalog-rating.grade-b,
.catalog-rating.nova-2 {
  background: #eff8df;
  color: #49a832;
}

.catalog-rating.grade-c,
.catalog-rating.nova-3 {
  background: #fff6d8;
  color: #b68406;
}

.catalog-rating.grade-d,
.catalog-rating.nova-4 {
  background: #fff0df;
  color: #c0631d;
}

.catalog-rating.grade-e {
  background: #ffe8e5;
  color: #bd3a30;
}

.database-category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.database-api-list {
  display: grid;
  gap: 10px;
}

.database-api-list code {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f5faf7;
  color: #43534c;
  overflow-x: auto;
}

.database-note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(245, 165, 36, 0.28);
  border-radius: 20px;
  background: rgba(245, 165, 36, 0.1);
  color: #75500f;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}

.footer-brand p,
.footer-note,
.footer-legal {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
  max-width: 520px;
}

.footer-links a,
.footer-legal a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--green-dark);
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

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

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .mobile-nav[data-open] {
    display: grid;
    gap: 8px;
  }

  .mobile-nav a {
    padding: 11px 10px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 720;
  }

  .mobile-nav a:hover {
    background: var(--green-soft);
    color: var(--green-dark);
  }

  .hero-grid,
  .flow-grid,
  .database-query-head,
  .page-shell {
    grid-template-columns: 1fr;
  }

  .database-search-primary,
  .database-filter-board,
  .database-range-row,
  .catalog-result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .database-meta-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .database-search-primary .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone {
    width: min(100%, 320px);
  }

  .float-chip.one {
    left: 0;
  }

  .float-chip.two {
    right: 4px;
  }

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

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
}

@media (max-width: 680px) {
  .container,
  .nav,
  .footer-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.06em;
  }

  .section {
    padding: 68px 0;
  }

  .stat-grid,
  .card-grid,
  .faq-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .phone-screen {
    min-height: 640px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .database-search-primary,
  .database-filter-board,
  .database-filter-group,
  .database-range-row,
  .database-meta-grid,
  .database-meta-grid.compact,
  .catalog-result-list,
  .database-coverage-grid {
    grid-template-columns: 1fr;
  }

  .database-query-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .database-search-form .button,
  .database-filter-actions .button {
    width: 100%;
  }

  .database-filter-actions {
    align-items: stretch;
  }

  .comparison-label,
  .comparison-content {
    padding: 16px 18px;
  }

  .cta-panel {
    padding: 30px 24px;
    border-radius: 28px;
  }

  .policy-block,
  .support-card,
  .card,
  .legal-card,
  .faq-item {
    padding: 22px;
  }

  .policy-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}
