@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500;6..72,600&family=Source+Sans+3:wght@400;600&display=swap");

:root {
  --text: #f4efe6;
  --muted: #b7aa98;
  --link: #e2b56a;
  --bg: #1a1814;
  --alt: #241f1a;
  --line: rgba(244, 239, 230, 0.14);
  --max: 1040px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a:hover {
  color: #f0d7a4;
}

.bar {
  background: #12100d;
}

.bar__inner {
  max-width: var(--max);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  --brand-size: 20px;
  --brand-leading: 1.15;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}

.brand::after {
  content: "Meridian\AInnovation";
  white-space: pre;
  margin-left: 10px;
  font-family: var(--display);
  font-size: var(--brand-size);
  line-height: var(--brand-leading);
  letter-spacing: 0;
}

.brand img {
  width: calc(var(--brand-size) * var(--brand-leading) * 2);
  height: calc(var(--brand-size) * var(--brand-leading) * 2);
  border-radius: 10px;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

.menu > a,
.langs a {
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  padding: 6px 0;
}

.menu > a:hover,
.langs a:hover,
.tabs a:hover {
  color: var(--text);
  text-decoration: none;
}

.menu > a[aria-current="page"],
.langs a.is-on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--link);
}

.subnav {
  background: #12100d;
  border-bottom: 1px solid var(--line);
}

.tabs {
  position: relative;
  display: flex;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px 0;
}

.tabs a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 2px 0 0;
}

.tabs a[aria-current="page"] {
  color: var(--text);
}

.tabs__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--link);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-leaving main {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

body.is-entering main {
  animation: rise 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.langs {
  margin-left: auto;
  display: flex;
  gap: 14px;
  flex: 0 0 auto;
}

.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(76px, 11vw, 132px) 22px clamp(72px, 10vw, 116px);
  text-align: left;
  position: relative;
}

.hero--product::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  left: -18%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 181, 106, 0.14), transparent 68%);
  filter: blur(10px);
  animation: ambient-drift 10s ease-in-out infinite alternate;
}

.hero h1,
.page h1,
.chapter h2,
.foot-cols h2,
.page h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(52px, 8.2vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--link);
  font-weight: inherit;
}

.hero .sub {
  margin: 28px 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 181, 106, 0.38);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.button--primary {
  background: var(--link);
  border-color: var(--link);
  color: #17120b;
}

.button--primary:hover {
  background: #efd29f;
  color: #17120b;
}

.button--quiet {
  background: rgba(244, 239, 230, 0.035);
}

.feature-section {
  padding: clamp(72px, 9vw, 112px) 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(226, 181, 106, 0.08), transparent 25%),
    var(--alt);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-heading > p:last-child:not(.eyebrow) {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center > p:last-child:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.feature-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  min-height: 238px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(244, 239, 230, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(226, 181, 106, 0.12), transparent 42%),
    rgba(18, 16, 13, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 181, 106, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.feature-number {
  display: block;
  margin-bottom: 34px;
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.format-note {
  max-width: var(--max);
  margin: 24px auto 0;
  color: #8f8374;
  font-size: 14px;
}

.showcase {
  padding: clamp(72px, 9vw, 112px) 0 0;
}

.film {
  display: flex;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 22px 88px;
  align-items: flex-start;
}

.film figure {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.film figure:hover {
  transform: translateY(-6px);
}

.film img,
.film video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.film figcaption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.chapter {
  background: var(--alt);
  padding: 56px 22px 64px;
}

.chapter__inner {
  max-width: 680px;
  margin: 0 auto;
}

.chapter h2 {
  margin: 0 0 16px;
  font-size: 32px;
}

.chapter p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.chapter p:last-child {
  margin-bottom: 0;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 22px 88px;
}

.page h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.15;
}

.page h2 {
  margin: 28px 0 8px;
  font-size: 26px;
  font-weight: 500;
}

.page .sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
}

.page p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.55;
  color: #ddd4c6;
}

.reach {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.reach li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.reach li:last-child {
  border-bottom: 1px solid var(--line);
}

.reach span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.reach a {
  font-size: 20px;
}

.foot {
  background: #12100d;
  color: var(--muted);
  font-size: 15px;
  padding: 8px 22px 36px;
  border-top: 1px solid var(--line);
}

.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding: 22px 0 16px;
}

.foot-cols > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}

.foot-cols h2 {
  margin: 0 8px 0 0;
  color: var(--text);
  font-size: 16px;
}

.foot-cols a,
.legal-row a,
.foot a {
  color: var(--muted);
}

.foot-cols a {
  display: inline;
  padding: 0;
}

.foot-cols a:hover,
.legal-row a:hover,
.foot a:hover {
  color: var(--text);
}

.fine {
  margin: 12px 0 0;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.lang-zh {
  --display: "Noto Sans SC", "PingFang SC", sans-serif;
  font-family: "Noto Sans SC", "PingFang SC", var(--font);
}

.lang-zh .brand::after {
  content: "启明\A科创";
}

.lang-es {
  font-family: var(--font);
}

@media (max-width: 734px) {
  .bar__inner {
    min-height: 0;
    padding: 12px 16px 10px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 10px;
    align-items: center;
  }

  .menu {
    display: contents;
  }

  .brand {
    --brand-size: 17px;
    grid-column: 1 / 3;
    grid-row: 1;
    justify-self: start;
  }

  .menu > a:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .menu > a:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .langs {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
    gap: 12px;
  }

  .menu > a,
  .langs a {
    padding: 4px 0;
  }

  .hero {
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

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

  .feature-card {
    min-height: 0;
  }
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film {
    flex-direction: column;
    gap: 28px;
    overflow: visible;
  }

  .film figure {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 734px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* flow:start — built by scripts/flow-line.mjs */
.flowline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 181, 106, 0.8) 35%, rgba(226, 181, 106, 0.8) 65%, transparent);
}
/* flow:end */

@keyframes ambient-drift {
  from {
    transform: translate3d(-2%, -2%, 0) scale(0.96);
  }
  to {
    transform: translate3d(8%, 5%, 0) scale(1.08);
  }
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.motion-ready .feature-card:nth-child(2),
.motion-ready .film figure:nth-child(2) {
  --reveal-delay: 90ms;
}

.motion-ready .feature-card:nth-child(3),
.motion-ready .film figure:nth-child(3) {
  --reveal-delay: 180ms;
}

.motion-ready .feature-card:nth-child(5) {
  --reveal-delay: 90ms;
}

.motion-ready .feature-card:nth-child(6) {
  --reveal-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero--product::before {
    animation: none;
  }

  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tabs__bar,
  body.is-leaving main {
    transition: none;
  }

  body.is-entering main {
    animation: none;
  }
}

/* features-motion:start — built by scripts/flow-line.mjs */
.motion-ready .feature-card:nth-child(1) { --reveal-delay: 0ms; }
.motion-ready .feature-card:nth-child(2) { --reveal-delay: 90ms; }
.motion-ready .feature-card:nth-child(3) { --reveal-delay: 180ms; }
.motion-ready .feature-card:nth-child(4) { --reveal-delay: 0ms; }
.motion-ready .feature-card:nth-child(5) { --reveal-delay: 90ms; }
.motion-ready .feature-card:nth-child(6) { --reveal-delay: 180ms; }
/* features-motion:end */
