/**
 * Life science promo site — static, no build step
 * Primary green: #86C166
 */

:root {
  --color-primary: #86c166;
  --color-primary-dark: #6aa84f;
  --color-text: #1f2a24;
  --color-text-muted: #4a5c52;
  --color-bg: #eef1ee;
  --color-card: #ffffff;
  --color-card-border: rgba(134, 193, 102, 0.22);
  --shadow-card: 0 10px 30px rgba(31, 42, 36, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --maxw: 1120px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

/* Base wash (hex texture: assets/images/bg-hex.svg via .bg-pattern) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--color-bg);
}

/* Full-page PPT-style hex layer — replace assets/images/bg-hex.svg */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.42;
  border-radius: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(134, 193, 102, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(134, 193, 102, 0.08), transparent 50%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

img.bg-pattern,
img.logo {
  border-radius: 0;
}

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--color-card);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(134, 193, 102, 0.18);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.brand .logo {
  width: auto;
  height: 40px;
  max-height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: none;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-card-border);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.site-nav a:hover {
  background: rgba(134, 193, 102, 0.12);
  color: var(--color-text);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-card-border);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.25rem;
}

.lang-switch button {
  border: 0;
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.lang-switch button.is-active {
  background: rgba(134, 193, 102, 0.22);
  color: var(--color-text);
  font-weight: 600;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section {
  padding: 3.25rem 0;
  scroll-margin-top: 88px;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.section-title {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0 0 0.5rem;
  line-height: 1.25;
  color: var(--color-text);
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 70ch;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  padding: 1.35rem 1.5rem;
}

.hero {
  padding-top: 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.hero .lead {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(106, 168, 79, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.03);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--color-card-border);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-secondary {
  background: #fff;
  border: 2px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  background: rgba(134, 193, 102, 0.12);
  color: var(--color-text);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.chart-wrap {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  background: #fff;
}

.chart-wrap .chart {
  width: 100%;
  border-radius: 0;
}

.hero-banner {
  width: 100%;
  border-radius: var(--radius-lg);
}

.product-shot {
  width: 100%;
  border-radius: var(--radius-md);
}

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

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(134, 193, 102, 0.16);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.ingredient-card h3 {
  font-size: 1.15rem;
  margin-top: 0.25rem;
}

.ingredient-card h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.list-plain {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.list-plain li + li {
  margin-top: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  background: #fff;
  box-shadow: var(--shadow-card);
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.simple th,
table.simple td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(31, 42, 36, 0.06);
}

table.simple th {
  width: 28%;
  background: rgba(134, 193, 102, 0.1);
  color: var(--color-text);
  font-weight: 700;
}

table.simple tr:last-child td,
table.simple tr:last-child th {
  border-bottom: 0;
}

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.competitor-card {
  padding: 1rem;
}

.competitor-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.competitor-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 0.45rem;
}

.competitor-card p {
  font-size: 0.85rem;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.brand-list .card p {
  font-size: 0.9rem;
}

.disclaimer-box {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.1rem;
  background: rgba(134, 193, 102, 0.1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1.25rem;
}

.disclaimer-box p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.disclaimer-box strong {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid rgba(134, 193, 102, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.25rem 2.5rem;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.footer-legal p {
  margin: 0.4rem 0;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.media-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  background: #fff;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(134, 193, 102, 0.18);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .lang-switch {
    margin-left: 0;
    align-self: center;
  }

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

  table.simple th {
    width: 34%;
  }
}
