:root {
  --bg: #10201c;
  --bg-soft: #17312b;
  --panel: rgba(21, 42, 37, 0.78);
  --panel-strong: rgba(24, 48, 42, 0.94);
  --border: rgba(78, 156, 112, 0.2);
  --border-strong: rgba(78, 156, 112, 0.38);
  --text: #edf7f2;
  --muted: #adc2bb;
  --accent: #4e9c70;
  --accent-strong: #76c694;
  --signal: #8dd3a6;
  --shadow: 0 32px 90px rgba(4, 12, 10, 0.34);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(118, 198, 148, 0.14), transparent 32%),
    radial-gradient(circle at right 18%, rgba(78, 156, 112, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(62, 120, 92, 0.16), transparent 26%),
    linear-gradient(180deg, #122420 0%, #17302a 38%, #11231f 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(141, 211, 166, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 211, 166, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.95));
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

main > [data-section] {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 40px;
}

[data-section]:not(.active) {
  display: none;
}

[data-section].active {
  display: block;
  animation: pageFadeIn 0.25s ease;
}

.hero[data-section].active,
.about[data-section].active,
.split-layout[data-section].active,
.product[data-section].active {
  display: grid;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 18px rgba(118, 198, 148, 0.45);
}

.brand-sub,
.topnav a,
.hero-text,
.section-heading p,
.section-intro p,
.insight-card p,
.intelligence-copy p,
.intel-item p,
.clinic-panel p,
.cta p {
  color: var(--muted);
}

.topnav {
  display: flex;
  gap: 20px;
}

.topnav a {
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.topnav a:hover {
  color: var(--text);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(118, 198, 148, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(180deg, rgba(23, 48, 42, 0.95), rgba(17, 35, 31, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.hero {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 30px;
  min-height: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
.section-heading h2,
.section-intro h2,
.intelligence-copy h2,
.clinic-panel h2,
.cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 16px 0 0;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero-text {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, rgba(78, 156, 112, 0.44), rgba(78, 156, 112, 0.16));
  box-shadow: inset 0 0 0 1px rgba(141, 211, 166, 0.12);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.hero-terminal {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(78, 156, 112, 0.22);
  background:
    radial-gradient(circle at top left, rgba(141, 211, 166, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(78, 156, 112, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(180deg, rgba(22, 46, 40, 0.92), rgba(18, 37, 33, 0.97));
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(78, 156, 112, 0.18);
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(141, 211, 166, 0.1);
  color: var(--signal);
  border: 1px solid rgba(141, 211, 166, 0.2);
}

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

.metric-card {
  min-height: 168px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-card.emphasis {
  border-color: rgba(78, 156, 112, 0.34);
  background: linear-gradient(180deg, rgba(78, 156, 112, 0.2), rgba(255, 255, 255, 0.04));
}

.report-window {
  margin-top: 16px;
  border: 1px solid rgba(141, 211, 166, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 14px;
}

.report-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(141, 211, 166, 0.12);
}

.report-window-head span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-window-note {
  color: rgba(141, 211, 166, 0.86);
}

.report-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
}

.report-preview {
  padding-right: 6px;
}

.report-title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.report-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.report-list {
  display: grid;
  gap: 8px;
}

.report-link {
  display: block;
  text-decoration: none;
  color: #c8ddd5;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(141, 211, 166, 0.14);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.report-link:hover {
  color: var(--text);
  border-color: rgba(141, 211, 166, 0.3);
}

.report-link.muted {
  color: rgba(173, 194, 187, 0.68);
  border-style: dashed;
}

.metric-label,
.intel-type {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.metric-value {
  margin: 0;
  color: var(--accent-strong);
  line-height: 1.5;
}

.section-heading {
  position: relative;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 34px;
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-heading {
  padding: 54px 12px 18px;
  max-width: 880px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}

.section-heading p {
  margin: 0;
  line-height: 1.8;
  font-size: 1.02rem;
}

.about {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 48px;
  border-radius: 28px;
}

.about-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.about-role {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-body p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.lang-divider {
  width: 40px;
  height: 1px;
  background: var(--border-strong);
  margin: 22px 0;
}

.lang-cn {
  font-size: 0.96rem !important;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}

.stat-card {
  padding: 24px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card.emphasis {
  border-color: rgba(78, 156, 112, 0.34);
  background: linear-gradient(180deg, rgba(78, 156, 112, 0.15), rgba(255,255,255,0.03));
}

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-strong);
}

.stat-suffix {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.stat-desc-cn {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.75;
}

.split-layout,
.cta,
.product {
  border-radius: 28px;
}

/* Product / Zentite section */
.product {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 48px;
}

.product-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.product-sub {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.expert-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.expert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expert-item {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
  background: rgba(255,255,255,0.02);
}

/* STEP protocol */
.step-panel {
  display: flex;
  flex-direction: column;
}

.step-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin: 0 0 8px;
}

.step-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.step-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
}

.step-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.step-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Partnership criteria list */
.criteria-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Contact */
.cta-cn {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 8px auto 0;
  max-width: 56ch;
}

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.split-layout {
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  padding: 34px;
}

.section-intro h2,
.intelligence-copy h2,
.clinic-panel h2,
.cta h2 {
  font-size: clamp(2.3rem, 3.3vw, 3.6rem);
  line-height: 1.02;
  margin-bottom: 14px;
}

.section-intro p,
.intelligence-copy p,
.clinic-panel p,
.cta p {
  line-height: 1.8;
}

.card-column {
  display: grid;
  gap: 16px;
}

.insight-card,
.intel-item {
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-index {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid rgba(88, 171, 129, 0.28);
  color: var(--accent);
  font-size: 0.82rem;
}

.insight-card h3,
.intel-item h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.intelligence-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 34px;
}

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

.clinic-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 34px;
}

.tool-list {
  display: grid;
  gap: 14px;
}

.tool-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.tool-row span {
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.tool-row strong {
  font-size: 1.04rem;
  line-height: 1.55;
}

.cta {
  padding: 42px 34px;
  text-align: center;
}

.cta .button {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero,
  .about,
  .product,
  .split-layout,
  .intelligence-band,
  .clinic-section {
    grid-template-columns: 1fr;
  }

  .intel-board,
  .metric-grid {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: 100%;
  }
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Enhanced brand mark animation */
@keyframes brandPulse {
  0%, 100% { 
    box-shadow: 0 0 18px rgba(118, 198, 148, 0.45);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 8px rgba(118, 198, 148, 0.25);
    transform: scale(1.05);
  }
}

.brand-mark {
  animation: brandPulse 3s ease-in-out infinite;
}

/* Enhanced button interactions */
.button {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 156, 112, 0.3);
}

.button:active {
  transform: translateY(0);
}

/* Enhanced card hover effects */
.insight-card,
.intel-item,
.metric-card {
  transition: all 0.3s ease;
}

.insight-card:hover,
.intel-item:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 156, 112, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 211, 166, 0.4);
}

/* Section transitions are handled by [data-section].active pageFadeIn */

/* Improved typography hierarchy */
h1 {
  background: linear-gradient(135deg, var(--text), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading h2,
.section-intro h2,
.intelligence-copy h2,
.clinic-panel h2,
.cta h2 {
  position: relative;
}

.section-heading h2::after,
.section-intro h2::after,
.intelligence-copy h2::after,
.clinic-panel h2::after,
.cta h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* Enhanced metric cards */
.metric-card.emphasis {
  position: relative;
  overflow: hidden;
}

.metric-card.emphasis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--signal), var(--accent));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Improved tool rows */
.tool-row {
  transition: all 0.2s ease;
}

.tool-row:hover {
  background: linear-gradient(180deg, rgba(78, 156, 112, 0.1), rgba(255, 255, 255, 0.05));
  border-color: rgba(78, 156, 112, 0.3);
  transform: translateX(4px);
}

/* Enhanced status indicators */
.status-pill {
  position: relative;
  overflow: hidden;
}

.status-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: statusShimmer 2s infinite;
}

@keyframes statusShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive improvements */
@media (max-width: 980px) {
  .hero {
    gap: 24px;
    padding: 40px;
  }
  
  .split-layout,
  .intelligence-band,
  .clinic-section {
    gap: 20px;
    padding: 28px;
  }
  
  h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
  }
}

@media (max-width: 720px) {
  .hero,
  .split-layout,
  .intelligence-band,
  .clinic-section,
  .cta {
    padding: 20px;
  }
  
  .tool-row {
    padding: 16px;
  }
  
  .metric-card {
    min-height: 140px;
    padding: 16px;
  }
}

/* Navigation active state */
.topnav a.active,
.topnav a[aria-current="page"] {
  color: var(--text);
  position: relative;
}

.topnav a.active::after,
.topnav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Enhanced focus states for accessibility */
.button:focus-visible,
.topnav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
