/* Liyas Capital — Mobile H5 */
:root {
  --bg: #101011;
  --bg-card: #111111;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --max-w: 750px;
  --pad-x: 9.6%;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* Page shell — centered 750 design */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x) 16px;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  transition: background 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(16, 16, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__brand {
  height: 35px;
  width: auto;
  display: block;
}

.menu-btn {
  width: 33px;
  height: 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
  z-index: 110;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ─── Nav drawer ─── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #161617;
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  padding: 88px 32px 40px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--white-10);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__list {
  list-style: none;
  flex: 1;
}

.nav-drawer__list li + li {
  margin-top: 8px;
}

.nav-drawer__link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--white-80);
  border-bottom: 1px solid transparent;
  transition: color 0.25s, padding-left 0.25s var(--ease);
}

.nav-drawer__link:hover,
.nav-drawer__link.is-active {
  color: var(--white);
  padding-left: 8px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
}

.lang-switch__label {
  font-size: 14px;
  color: var(--white-50);
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--white-20);
  border-radius: 8px;
  overflow: hidden;
}

.lang-toggle button {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white-60);
  transition: background 0.25s, color 0.25s;
}

.lang-toggle button.is-active {
  background: var(--white);
  color: var(--bg);
}

/* Section scroll offset for fixed header */
#home,
#about,
#investment,
#incubation,
#ecosystem {
  scroll-margin-top: 72px;
}

/* ─── Sections common ─── */
.section {
  padding: 0 var(--pad-x);
  position: relative;
}

.section__title {
  font-size: clamp(26px, 8.5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;
}

.section__divider {
  width: 64px;
  height: 2px;
  background: var(--white);
  margin: 16px auto 0;
}

.section__subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--white-80);
  margin-top: 20px;
  letter-spacing: -0.3px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Hero ─── */
.hero {
  padding-top: 88px;
  text-align: center;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__sphere-wrap {
  position: relative;
  width: 58.5%;
  max-width: 439px;
  margin: 0 auto;
  padding-top: 8px;
}

.hero__sphere {
  width: 100%;
  animation: floatSphere 6s ease-in-out infinite;
}

.hero__gradient {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

@keyframes floatSphere {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.hero__title {
  font-size: clamp(36px, 10.2vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 2px;
  margin-top: 24px;
  padding: 0 8%;
}

.hero__title-line {
  display: block;
}

.hero__desc {
  margin-top: 28px;
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 500;
  color: var(--white-90);
  line-height: 1.45;
  padding: 0 6%;
}

.hero__tagline {
  margin-top: 16px;
  font-size: 16px;
  color: var(--white-70);
  letter-spacing: -0.3px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--white);
  color: var(--bg);
}

.btn--primary:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.btn--outline {
  border: 1px solid var(--white-30);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--white-60);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ─── About ─── */
.about {
  padding-top: 80px;
  padding-bottom: 60px;
}

.about__intro {
  font-size: 16px;
  color: var(--white-80);
  line-height: 24px;
  margin-top: 32px;
  letter-spacing: -0.3px;
}

.about__intro p + p {
  margin-top: 16px;
}

.about__features {
  position: relative;
  margin-top: 48px;
  min-height: 420px;
}

.about__bg-ellipse {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  animation: pulseEllipse 8s ease-in-out infinite;
}

.about__bg-ellipse--1 {
  width: 57%;
  left: -5%;
  top: 0;
}

.about__bg-ellipse--2 {
  width: 86%;
  right: -20%;
  top: 60px;
  animation-delay: -3s;
}

@keyframes pulseEllipse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.03); }
}

.feature-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feature-box {
  position: relative;
  width: 45.2%;
  min-height: 106px;
  padding: 25px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.35s var(--ease);
}

.feature-box:nth-child(1) {
  align-self: flex-end;
  margin-right: 0;
}

.feature-box:nth-child(2),
.feature-box:nth-child(3),
.feature-box:nth-child(4) {
  align-self: flex-start;
}

.feature-box--inactive {
  background: var(--bg-card);
  border: 1px solid var(--white-20);
}

.feature-box--active {
  background: var(--bg);
  border: 0.7px dashed var(--white);
  box-shadow:
    0 0 10.6px rgba(255, 255, 255, 0.23),
    inset 0 0 11.7px rgba(255, 255, 255, 0.25);
}

.feature-box__dot {
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.feature-box--active .feature-box__dot {
  opacity: 1;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 18px rgba(255, 255, 255, 0.9); }
}

.feature-box__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.45px;
}

.feature-box__desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--white-60);
  letter-spacing: -0.15px;
  transition: opacity 0.35s var(--ease);
}

.feature-box--inactive .feature-box__desc {
  opacity: 0.85;
}

.feature-box--active .feature-box__desc {
  opacity: 1;
}

.feature-box:hover {
  transform: translateY(-2px);
}

/* connector lines (decorative) */
.about__connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

.about__connector line {
  stroke: var(--white-30);
  stroke-width: 1;
  stroke-dasharray: 6 6;
  animation: marchAnts 20s linear infinite;
}

@keyframes marchAnts {
  to { stroke-dashoffset: -120; }
}

/* ─── Investment ─── */
.investment {
  padding: 80px var(--pad-x) 60px;
}

.investment__intro {
  font-size: 16px;
  color: var(--white-80);
  margin-top: 28px;
  letter-spacing: -0.3px;
}

.investment__cards {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.invest-card {
  position: relative;
  border-left: 2px solid var(--white-30);
  padding-left: 24px;
}

.invest-card__icon {
  position: absolute;
  right: 0;
  top: -14px;
  width: 60px;
  height: 60px;
  opacity: 0.9;
}

.invest-card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.07px;
}

.invest-card__lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--white-70);
}

.invest-card__label {
  margin-top: 16px;
  font-size: 14px;
  color: var(--white-60);
}

.invest-card__list {
  margin-top: 8px;
  list-style: none;
}

.invest-card__list li {
  font-size: 14px;
  color: var(--white-60);
  padding: 4px 0;
  letter-spacing: -0.15px;
}

.investment__footer {
  margin-top: 48px;
  padding-top: 33px;
  border-top: 1px solid var(--white-20);
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: var(--white-80);
  letter-spacing: -0.45px;
}

.investment .section__divider {
  width: 55px;
  margin-left: 0;
  margin-right: auto;
}

.investment .section__title {
  text-align: left;
}

/* ─── Incubation ─── */
.incubation {
  padding: 80px var(--pad-x) 60px;
  position: relative;
}

.incubation__path {
  position: absolute;
  left: 14%;
  top: 200px;
  width: 76%;
  opacity: 0.12;
  pointer-events: none;
}

.incubation__steps {
  margin-top: 56px;
  position: relative;
  z-index: 2;
}

.incubation-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease);
}

.incubation-step.is-highlight {
  opacity: 1;
}

.incubation-step__num {
  width: 64px;
  height: 64px;
  border: 2px solid var(--white-30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.incubation-step.is-highlight .incubation-step__num {
  border-color: var(--white-60);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.incubation-step__title {
  font-size: 20px;
  font-weight: 500;
  padding-top: 8px;
}

.incubation-step__desc {
  font-size: 14px;
  color: var(--white-60);
  margin-top: 8px;
  line-height: 20px;
}

.incubation__visual {
  margin-top: 48px;
  position: relative;
  border: 1px solid var(--white-30);
  border-radius: 25px;
  padding: 20px;
  overflow: hidden;
}

.incubation__visual-inner {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.incubation__visual img {
  width: 100%;
  display: block;
}

.incubation__visual-label {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  padding: 4px 16px;
  font-size: 10px;
  letter-spacing: 4px;
  white-space: nowrap;
  color: var(--white);
}

.incubation__visual-label strong {
  font-weight: 600;
}

.incubation__timeline-dot {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

/* ─── Ecosystem ─── */
.ecosystem {
  padding: 80px var(--pad-x) 100px;
}

.ecosystem__intro {
  font-size: 16px;
  color: var(--white-80);
  margin-top: 28px;
  text-align: justify;
  line-height: 24px;
}

.eco-card {
  margin-top: 32px;
  border: 1px solid var(--white-20);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.3s;
}

.eco-card:hover {
  border-color: var(--white-30);
}

.eco-card__title {
  font-size: 20px;
  font-weight: 500;
}

.eco-card__subtitle {
  font-size: 12px;
  color: var(--white-50);
  margin-top: 8px;
}

.eco-card__logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.eco-logo {
  border: 1px solid var(--white-10);
  border-radius: 4px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.eco-logo:hover {
  transform: scale(1.02);
  border-color: var(--white-20);
}

.eco-logo img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

.eco-logo--full img {
  max-height: 26px;
  max-width: 90%;
  width: auto;
}

.eco-logo--text {
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}

.eco-logo--text img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  flex-shrink: 0;
}

.eco-logo__icons {
  position: relative;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}

.eco-logo__icons img:first-child {
  width: 27px;
  height: 27px;
  border-radius: 50%;
}

.eco-logo__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px !important;
  height: 15px !important;
  border-radius: 0;
}

/* ─── Footer ─── */
.footer {
  padding: 60px var(--pad-x) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer__bg {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  display: flex;
  justify-content: center;
  gap: 0;
  opacity: 0.2;
  pointer-events: none;
}

.footer__bg img {
  width: 86%;
  max-width: 644px;
  animation: footerFloat 12s ease-in-out infinite;
}

.footer__bg img:nth-child(2) {
  animation-delay: -4s;
}

.footer__bg img:nth-child(3) {
  animation-delay: -8s;
}

@keyframes footerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.footer__logo {
  width: 88px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: floatSphere 5s ease-in-out infinite;
}

.footer__slogan {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  font-size: clamp(18px, 5vw, 24px);
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__slogan-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.footer__slogan-light {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
}

.footer__slogan-strong {
  font-weight: 500;
}

/* body lock when nav open */
body.nav-open {
  overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
