:root {
  --bg: #f6f9f7;
  --bg-card: #ffffff;
  --bg-muted: #e8f0eb;
  --text: #152030;
  --text-muted: #5c6775;
  --accent: #3d9468;
  --accent-dark: #2d7552;
  --accent-soft: rgba(61, 148, 104, 0.12);
  --border: #d4e0d9;
  --shadow: 0 8px 32px rgba(21, 32, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(21, 32, 48, 0.14);
  --header-bg: rgba(246, 249, 247, 0.94);
  --header-h: 4.25rem;
  --max-w: 76rem;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-top: var(--header-h);
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; gap: 1.5rem;
}
.logo {
  display: flex; align-items: baseline; gap: 0.15rem;
  font-weight: 700; color: var(--text); text-decoration: none;
  font-size: 1.35rem; letter-spacing: 0.04em; white-space: nowrap;
}
.logo-mark { color: var(--accent); }
.logo-en {
  color: var(--text-muted); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.18em;
  margin-left: 0.55rem; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links > li > a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-links > li > a.active {
  color: var(--accent);
  font-weight: 600;
}
.nav-sub-mobile { display: none; }
.header-actions { display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-size: 1.2rem; cursor: pointer; padding: 0.35rem 0.55rem;
}

/* ── Page sub-navigation (horizontal child links) ── */
.page-subnav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(21, 32, 48, 0.04);
}
.page-subnav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.65rem 1.5rem;
}
.page-subnav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.page-subnav a:hover {
  color: var(--accent);
  border-color: var(--border);
  background: var(--bg);
}
.page-subnav a.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.page-subnav-secondary {
  top: calc(var(--header-h) + 3.05rem);
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.35rem; border-radius: 10px;
  font-size: 0.925rem; font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(61, 148, 104, 0.35);
}
.btn-ghost { background: rgba(255,255,255,0.85); color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* ── Typography ── */
.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 0.5rem;
}
h1 {
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  font-weight: 700; line-height: 1.18; margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700; margin-bottom: 0.85rem; letter-spacing: 0.02em;
}
h3 { font-size: 1.08rem; font-weight: 600; color: var(--accent); margin-bottom: 0.4rem; }
.lead { font-size: 1.08rem; color: var(--text-muted); max-width: 44rem; line-height: 1.65; }
.accent { color: var(--accent); }

/* ── Home hero (split layout) ── */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
  background: linear-gradient(135deg, #e8f4ed 0%, #f6f9f7 45%, #dceee4 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(61,148,104,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(45,117,82,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  width: 100%; padding: 3.5rem 1.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #2a6b4a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.35rem 0 0.75rem; }
.hero-pill {
  padding: 0.4rem 0.95rem; border-radius: 999px; font-size: 0.82rem;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border);
  color: var(--text-muted); backdrop-filter: blur(4px);
}
.hero-cta { margin-top: 1.35rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-meta { margin-top: 1.25rem; color: var(--text-muted); font-size: 0.88rem; }

.hero-visual { position: relative; }
.hero-visual-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.8);
}
.hero-visual-main img {
  width: 100%; height: clamp(280px, 38vw, 420px);
  object-fit: cover;
}
.hero-float {
  position: absolute;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-float-1 { width: 38%; bottom: -8%; left: -6%; }
.hero-float-2 { width: 34%; top: -6%; right: -4%; }
.hero-float img { border-radius: 8px; max-height: 140px; object-fit: cover; width: 100%; }

/* ── Inner page hero with image ── */
.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-muted);
}
.page-hero.has-image { min-height: 320px; display: flex; align-items: center; }
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(246,249,247,0.96) 0%, rgba(246,249,247,0.88) 42%, rgba(232,240,235,0.75) 100%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 2.75rem 1.5rem 2.5rem;
  width: 100%;
}
.page-hero-split {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 2.5rem; align-items: center;
}
.page-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.page-hero-media img {
  width: 100%; height: 220px; object-fit: cover;
}
.page-hero .lead { margin-bottom: 0; }
.breadcrumb {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ── Visual sections ── */
.band { padding: 4rem 1.5rem; }
.band-muted { background: var(--bg-muted); }
.band-inner { max-width: var(--max-w); margin: 0 auto; }
.band-header { margin-bottom: 2rem; max-width: 42rem; }
.band-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.band-header.center .lead { margin-left: auto; margin-right: auto; }

.media-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }
.media-block-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.media-block-img img {
  width: 100%; height: clamp(240px, 32vw, 360px); object-fit: cover;
}
.media-block-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(21,32,48,0.08) 100%);
  pointer-events: none;
}
.media-block-caption {
  margin-top: 0.65rem; font-size: 0.82rem; color: var(--text-muted); text-align: center;
}

.visual-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.visual-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.visual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.visual-card-img { height: 160px; overflow: hidden; }
.visual-card-img img { width: 100%; height: 100%; object-fit: cover; }
.visual-card-body { padding: 1.25rem 1.35rem; }
.visual-card-body h3 { color: var(--text); font-size: 1rem; }
.visual-card-body p { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ── Grids & cards ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.card p { font-size: 0.925rem; color: var(--text-muted); margin-top: 0.4rem; }
.card-link {
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.product-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; border-top: none; }
.product-tile-thumb {
  height: 130px; overflow: hidden; background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}
.product-tile-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.product-tile-body { padding: 1.15rem 1.25rem 1.25rem; border-top: 3px solid var(--accent); flex: 1; display: flex; flex-direction: column; }
.product-tile .tile-more {
  margin-top: auto; padding-top: 0.85rem;
  font-size: 0.85rem; color: var(--accent); font-weight: 600;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; align-items: center; }
.split-wide { grid-template-columns: 1.08fr 0.92fr; }
.split-top { align-items: start; }

.arch-layer {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.9rem 1.25rem; margin-bottom: 0.55rem;
}
.arch-layer.highlight { border-color: var(--accent); background: var(--accent-soft); }
.arch-label { font-size: 0.75rem; font-weight: 700; color: var(--accent); min-width: 4rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { border: 1px solid var(--border); padding: 0.65rem 0.9rem; text-align: left; }
th { background: var(--bg-muted); color: var(--accent); font-weight: 600; }

figure { margin: 0; }
figure img {
  width: 100%; max-height: 420px; object-fit: contain;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card);
}
figure.app-shot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
figure.app-shot img {
  width: auto; max-width: min(100%, 320px);
  max-height: min(560px, 72vh);
  height: auto; object-fit: contain;
}
figure.product-shot img { max-height: min(480px, 62vh); object-fit: contain; }
figcaption { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.65rem; }

ul.bullets { list-style: none; }
ul.bullets li {
  position: relative; padding-left: 1.3rem; margin-bottom: 0.6rem; font-size: 0.96rem;
}
ul.bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.feature-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 1.15rem; }
.feature-mini .card { padding: 0.9rem 1rem; border-top-width: 2px; }
.feature-mini .card h3 { font-size: 0.9rem; }
.feature-mini .card p { font-size: 0.82rem; }

.timeline-item {
  display: flex; gap: 1rem; margin-bottom: 1rem;
  padding: 1.1rem; background: var(--bg-card);
  border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
.timeline-phase { font-weight: 700; color: var(--accent); min-width: 7rem; font-size: 0.875rem; }
.roadmap-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: center; }

.compliance-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem 1.5rem; border-left: 4px solid var(--accent);
}

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/visual-tech.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark) !important; box-shadow: none; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.1); }

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; border-top: 3px solid var(--accent);
}

/* ── Footer ── */
.site-footer {
  background: #152030;
  color: rgba(255,255,255,0.75);
  padding: 2.75rem 1.5rem 1.5rem;
}
.footer-logo { color: #fff; font-size: 1.1rem; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
}
.footer-brand p { font-size: 0.875rem; margin-top: 0.5rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; color: #fff; margin-bottom: 0.85rem; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.875rem; }
.footer-col a:hover { color: #7fd4a8; }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--header-bg); padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open > li > a {
    padding: 0.75rem 1rem; font-size: 1.02rem;
    border-radius: 8px;
  }
  .nav-sub-mobile {
    display: block;
    padding: 0.35rem 0 0.5rem 0.75rem;
    border-left: 2px solid var(--accent-soft);
    margin: 0.25rem 0 0.5rem 1rem;
  }
  .nav-sub-mobile a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    border-radius: 6px;
  }
  .nav-sub-mobile a:hover, .nav-sub-mobile a.active { color: var(--accent); background: var(--accent-soft); }
  .menu-toggle { display: block; }
  .header-inner { position: relative; }
  .hero-grid, .page-hero-split, .media-block, .media-block.reverse {
    grid-template-columns: 1fr; direction: ltr;
  }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .hero-float { display: none; }
  .page-hero-media { display: none; }
  .grid-2, .grid-3, .grid-4, .split, .split-wide, .roadmap-layout,
  .feature-mini, .footer-inner, .contact-grid, .visual-card-grid {
    grid-template-columns: 1fr;
  }
  .page-subnav-inner { padding: 0.5rem 1rem; }
  .page-subnav, .page-subnav-secondary { position: relative; top: auto; }
  figure.app-shot img { max-height: min(440px, 55vh); }
}

@media (max-width: 480px) {
  .band { padding: 2.5rem 1rem; }
  .hero-grid, .page-hero-inner { padding-left: 1rem; padding-right: 1rem; }
  .logo-en { display: none; }
  .nav-links > li > a { letter-spacing: 0.04em; }
}
