/* MATILA Signature 综合版
   Alt dark/light bands · sticky specialist nav · dual CTAs · tech story
   + manifesto/warm mid band · hierarchical capability cards
   + application strip · enterprise spacing · system framing
   Twist: numbered clinical-workflow steps with large numerals
   Palette: black / white / gray · #7B61FF CTAs only */

:root {
  --black: #0a0a0c;
  --charcoal: #121216;
  --charcoal-mid: #1a1a20;
  --gray-900: #222228;
  --gray-700: #3f3f46;
  --gray-500: #71717a;
  --gray-300: #d4d4d8;
  --gray-100: #f4f4f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  --cream: #f7f5f2;
  --warm-band: #f0ebe4;
  --text-dark: #121216;
  --text-muted: #5c5c66;
  --text-light: #f4f4f5;
  --text-dim: #a1a1aa;
  --accent: #7B61FF;
  --accent-deep: #5a3fd4;
  --accent-glow: rgba(123, 97, 255, 0.28);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --nav-h: 74px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.35rem, 4.8vw, 3.65rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }

/* —— Light sticky corporate nav + specialist CTA —— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 1.65rem;
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
}
.nav-links a:hover { color: var(--text-dark); }
.nav-cta {
  color: var(--white) !important;
  background: var(--black);
  padding: 0.58rem 1.25rem; border-radius: 999px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--black); margin: 5px 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; font-family: inherit; font-size: 0.9375rem; font-weight: 650;
  padding: 0.85rem 1.45rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-deep); transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-outline-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-outline-dark {
  background: transparent; color: var(--text-dark); border-color: rgba(0,0,0,0.2);
}
.btn-outline-dark:hover { border-color: var(--black); background: rgba(0,0,0,0.03); }
.btn-dark {
  background: var(--black); color: var(--white);
}
.btn-dark:hover { background: var(--accent); }
.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 650; font-size: 0.9375rem; color: var(--text-dark);
  border-bottom: 1.5px solid rgba(0,0,0,0.2); padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link-light {
  color: var(--text-light); border-bottom-color: rgba(255,255,255,0.35);
}
.text-link-light:hover { color: var(--accent); border-color: var(--accent); }

.eyebrow {
  font-size: 0.72rem; font-weight: 750; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 0.85rem;
}
.eyebrow.dark { color: var(--accent-deep); }
.eyebrow.muted { color: var(--gray-500); }
.eyebrow.light { color: var(--text-dim); }

/* —— Dark product hero + dual CTAs —— */
.hero {
  background: var(--black);
  color: var(--text-light);
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -20% -40% 40%;
  height: 70%; background: radial-gradient(ellipse, rgba(123,97,255,0.12), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; position: relative; z-index: 1;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--text-dim); max-width: 36rem; margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-meta {
  font-size: 0.8125rem; color: var(--gray-500); margin: 0;
  letter-spacing: 0.02em;
}
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-img {
  width: 100%; max-width: 520px;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.55));
}

/* —— Manifesto / story band (warmer cream) —— */
.manifesto {
  background: var(--warm-band);
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
}
.manifesto-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
}
.manifesto .eyebrow { color: #8a6b4a; }
.manifesto h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700; margin-bottom: 1.1rem; color: var(--text-dark);
}
.manifesto p {
  color: var(--text-muted); font-size: 1.0625rem; margin-bottom: 1.5rem;
}

/* —— Authoritative application / category strip —— */
.apps {
  background: var(--white);
  padding: clamp(3.75rem, 7vw, 5.25rem) 1.5rem;
  border-top: 1px solid var(--border-light);
}
.apps-inner { max-width: var(--max); margin: 0 auto; }
.section-head {
  max-width: 640px; margin: 0 auto 2.75rem; text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-sub {
  color: var(--text-muted); font-size: 1.05rem; margin: 0;
}
.section-sub.light { color: var(--text-dim); }
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.app-card {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.4rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.app-card:hover {
  border-color: rgba(123,97,255,0.35);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.app-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-500);
  margin-bottom: 0.85rem;
}
.app-card h3 { margin-bottom: 0.45rem; font-size: 1.05rem; }
.app-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* —— MATILA twist: numbered clinical workflow · large numerals —— */
.workflow {
  background: var(--charcoal);
  color: var(--text-light);
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}
.workflow-inner { max-width: var(--max); margin: 0 auto; }
.workflow .section-head { margin-bottom: 3rem; }
.workflow .section-head h2 { color: var(--white); }
.workflow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border-dark);
}
.workflow-step {
  display: grid;
  grid-template-columns: minmax(88px, 140px) 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--border-dark);
}
.workflow-num {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.28);
  text-stroke: 1.5px rgba(255,255,255,0.28);
}
.workflow-step:hover .workflow-num {
  -webkit-text-stroke-color: var(--accent);
  color: rgba(123,97,255,0.12);
}
.workflow-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem; color: var(--white);
}
.workflow-body p {
  margin: 0; max-width: 42rem; color: var(--text-dim); font-size: 1.02rem;
}

/* —— Tech storytelling · hierarchical cards (not flat) —— */
.tech {
  background: var(--gray-50);
  padding: clamp(4rem, 8vw, 5.75rem) 1.5rem;
}
.tech-inner { max-width: var(--max); margin: 0 auto; }
.tech-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.15rem;
  margin-top: 2.75rem;
}
.tech-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem;
}
.tech-card.featured {
  background: var(--black);
  color: var(--text-light);
  border-color: transparent;
  grid-row: span 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 1.75rem;
  min-height: 280px;
  position: relative; overflow: hidden;
}
.tech-card.featured::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(123,97,255,0.18), transparent 55%);
  pointer-events: none;
}
.tech-card.featured h3 { color: var(--white); font-size: 1.45rem; position: relative; }
.tech-card.featured p { color: var(--text-dim); margin: 0; position: relative; }
.tech-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
  position: relative;
}
.tech-card:not(.featured) .tech-label { color: var(--gray-500); }
.tech-card h3 { margin-bottom: 0.4rem; }
.tech-card p { margin: 0; font-size: 0.935rem; color: var(--text-muted); }
.tech-side {
  display: grid; gap: 1.15rem;
}

/* —— Product system framing · finishes —— */
.system {
  background: var(--white);
  padding: clamp(4rem, 8vw, 5.75rem) 1.5rem;
  border-top: 1px solid var(--border-light);
}
.system-inner { max-width: var(--max); margin: 0 auto; }
.finish-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.15rem;
  margin-top: 2.75rem;
}
.finish-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column;
}
.finish-media {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.finish-media.obsidian { background: #0e0e12; }
.finish-media.pearl { background: #f0f0f2; }
.finish-media img { max-height: 280px; width: auto; }
.finish-card.primary .finish-media img { max-height: 340px; }
.finish-body {
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--white);
  flex: 1;
}
.finish-body h3 { margin-bottom: 0.3rem; }
.finish-body p { margin: 0 0 0.85rem; color: var(--text-muted); font-size: 0.95rem; }
.finish-card.primary {
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* —— Warmer partner energy —— */
.partners {
  background: var(--cream);
  padding: clamp(4rem, 8vw, 5.5rem) 1.5rem;
}
.partners-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: stretch;
}
.partner-points {
  margin: 1.25rem 0 0;
  display: grid; gap: 0.65rem;
}
.partner-points li {
  padding-left: 1.35rem; position: relative;
  color: var(--text-muted); font-size: 0.98rem;
}
.partner-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.partners-cta {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.85rem 1.65rem;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.05);
}
.partners-cta h3 { margin-bottom: 0.5rem; }
.partners-cta p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.markets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.market {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  background: var(--black); color: var(--white);
}

/* —— Contact (dark band) —— */
.contact {
  background: var(--black);
  color: var(--text-light);
  padding: clamp(4rem, 8vw, 5.5rem) 1.5rem;
}
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact .section-head { text-align: left; margin: 0 0 2rem; max-width: none; }
.contact h2 { color: var(--white); }
.contact-form { display: grid; gap: 1rem; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.contact-form label {
  display: grid; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 650; color: var(--text-dim);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; color: var(--text-light);
  background: var(--charcoal-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.contact-form select { appearance: none; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.85rem; color: var(--gray-500); margin: 0.25rem 0 0;
}
.form-note a { color: var(--accent); text-decoration: underline; }

/* —— Footer —— */
.footer {
  background: #060608;
  color: var(--text-dim);
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem;
  align-items: flex-end;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 0.75rem; }
.footer-brand p { margin: 0; font-size: 0.85rem; }
.footer-loc { color: var(--gray-500); margin-top: 0.2rem !important; }
.footer-meta { text-align: right; font-size: 0.85rem; }
.footer-meta a:hover { color: var(--white); }
.footer-meta p { margin: 0.35rem 0 0; }

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-inner,
  .tech-layout,
  .finish-grid,
  .partners-inner { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .tech-card.featured { grid-row: auto; min-height: 220px; }
  .workflow-step { grid-template-columns: 72px 1fr; gap: 1rem; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.25rem; gap: 0; border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--border-light); }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .nav-toggle { display: block; }
  .nav { position: sticky; }
  .nav-inner { position: relative; }
  .app-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .hero { padding-top: 2.75rem; }
}

/* —— Multi-page: current nav link —— */
.nav-links a[aria-current="page"] { color: var(--text-dark); }

/* —— Inner page hero —— */
.page-hero {
  background: var(--black);
  color: var(--text-light);
  padding: clamp(3.25rem, 7vw, 5rem) 1.5rem;
  position: relative; overflow: hidden;
}
.page-hero.compact { padding: clamp(2.75rem, 6vw, 4rem) 1.5rem; }
.page-hero::after {
  content: ""; position: absolute; inset: auto -20% -40% 40%;
  height: 70%; background: radial-gradient(ellipse, rgba(123,97,255,0.12), transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max); margin: 0 auto; position: relative; z-index: 1;
  max-width: 720px;
}
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--text-dim); max-width: 40rem; margin-bottom: 1.5rem;
}
.inline-accent { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.inline-accent:hover { color: var(--white); }

/* —— Content bands —— */
.content-band {
  background: var(--white);
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
}
.content-band.alt { background: var(--gray-50); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.content-inner { max-width: var(--max); margin: 0 auto; }
.content-inner.narrow { max-width: 880px; }

.split-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.split-copy h2 { margin-bottom: 1rem; }
.split-copy p { color: var(--text-muted); }
.split-media {
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; align-items: center; justify-content: center;
}
.split-media.obsidian { background: #0e0e12; }
.split-media.pearl { background: #f0f0f2; }
.split-media img { max-height: 360px; width: auto; }

.feature-list {
  margin: 1.5rem 0 0; display: grid; gap: 0.7rem;
}
.feature-list li {
  padding-left: 1.35rem; position: relative;
  color: var(--text-muted); font-size: 0.98rem;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.feature-list.dense { margin-top: 0.5rem; }

.card-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}
.content-band.alt .info-card { background: var(--white); }
.content-band:not(.alt) .info-card { background: var(--gray-50); }
.info-card h3 { margin-bottom: 0.45rem; font-size: 1.05rem; }
.info-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }
.info-card a { color: var(--accent); font-weight: 650; }

.info-panel {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0 1.25rem;
}
.meta-dl { display: grid; gap: 1.15rem; margin: 0; }
.meta-dl dt {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-500); margin: 0 0 0.25rem;
}
.meta-dl dd { margin: 0; font-weight: 600; color: var(--text-dark); }
.meta-dl a { color: var(--accent); }
.fine-print {
  font-size: 0.875rem; color: var(--text-muted); max-width: 40rem;
}

/* —— CTA bands —— */
.cta-band {
  background: var(--warm-band);
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  text-align: center;
}
.cta-band.dark {
  background: var(--black); color: var(--text-light);
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band .eyebrow { color: #8a6b4a; }
.cta-band.dark .eyebrow { color: var(--accent); }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band.dark h2 { color: var(--white); }
.cta-band p { color: var(--text-muted); margin-bottom: 1.5rem; }
.cta-band.dark p { color: var(--text-dim); }
.cta-band .hero-actions { justify-content: center; }

.section-cta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; margin: 2.5rem 0 0;
}
.section-cta-row.left { justify-content: flex-start; margin-top: 0; }

/* —— Footer nav —— */
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: 0.875rem; font-weight: 600;
}
.footer-nav a:hover { color: var(--white); }

@media (max-width: 960px) {
  .split-feature,
  .card-grid-3 { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
}
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { order: 2; }
  .footer-meta { order: 3; }
}
