/* Lite3DReg landing page styles */
:root {
  --bg-dark: #030711;
  --bg-light: #f7f9fc;
  --bg-mid: #101828;
  --accent: #5fd6ff;
  --accent-2: #ff9df5;
  --accent-soft: rgba(95, 214, 255, 0.16);
  --accent-strong: rgba(95, 214, 255, 0.38);
  --text-primary: #0b1222;
  --text-secondary: #4b5565;
  --text-light: #d7def2;
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 60px rgba(7, 12, 32, 0.18);
  --shadow-card: 0 30px 60px rgba(3, 7, 17, 0.3);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 15% 20%, rgba(120, 200, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(255, 180, 220, 0.18), transparent 55%),
    linear-gradient(160deg, #050814 0%, #0b1428 55%, #121b35 100%);
  color: var(--text-primary);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: ambientDrift 18s ease-in-out infinite;
}

body::before {
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.35), transparent 65%);
}

body::after {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 180, 220, 0.3), transparent 60%);
  animation-direction: reverse;
  animation-duration: 22s;
}



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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease,
    color 200ms ease, border-color 200ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
}

.btn--primary {
  background: linear-gradient(135deg, #5fd6ff 0%, #77e7ff 40%, #ff9df5 100%);
  color: #f8fbff;
  box-shadow: 0 12px 30px rgba(95, 214, 255, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(95, 214, 255, 0.5);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  height: 44px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.button-download {
  --download-bg: #5fd6ff;
  --download-bg-dark: #2fb5e6;
  position: relative;
  width: 160px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--download-bg-dark);
  background-color: var(--download-bg);
  border-radius: 999px;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(95, 214, 255, 0.25);
}

.button-download,
.button-download .button__icon,
.button-download .button__text {
  transition: all 0.3s ease;
}

.button-download .button__text {
  transform: translateX(22px);
  color: #0b1222;
  font-size: 0.8rem;
}

.button-download .button__icon {
  position: absolute;
  transform: translateX(112px);
  height: 100%;
  width: 40px;
  background-color: var(--download-bg-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-download svg {
  width: 18px;
  height: 18px;
  fill: #0b1222;
}

.button-download:hover {
  background: var(--download-bg-dark);
}

.button-download:hover .button__text {
  color: transparent;
}

.button-download:hover .button__icon {
  width: 160px;
  transform: translateX(0);
}

.button-download:active .button__icon {
  background-color: #1c8fb9;
}

.button-download:active {
  border: 1px solid #1c8fb9;
}

.btn-whatsapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #ffffff;
  border: 1px solid #25d366;
  padding: 0.4rem 1.4rem;
  height: 44px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #25d366;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
  overflow: hidden;
}

.btn-whatsapp span {
  transition: transform 0.4s ease, color 0.4s ease;
}

.btn-whatsapp svg {
  width: 1rem;
  height: 1rem;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  fill: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #25d366;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-whatsapp:hover span {
  transform: translateX(-4px);
}

.btn-whatsapp:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.button-icon {
  --button-bg: #0f172a;
  --button-accent: #5fd6ff;
  --button-text: #f8fbff;
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  width: fit-content;
  height: 44px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  gap: 0;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 12px 24px rgba(5, 10, 24, 0.2);
  background: transparent;
}

.button-icon .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
}

.button-icon .icon svg {
  width: 22px;
  height: 22px;
}

.button-icon .cube {
  position: relative;
  transition: transform 0.45s ease;
  transform-style: preserve-3d;
  width: 170px;
  height: 44px;
}

.button-icon .side {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.65rem;
  border-radius: 999px;
  backface-visibility: hidden;
}

.button-icon .front {
  background: var(--button-bg);
  color: var(--button-text);
  transform: translateZ(18px);
}

.button-icon .top {
  background: var(--button-accent);
  color: #0b1222;
  transform: rotateX(-90deg) translateZ(18px);
}

.button-icon:hover {
  border-color: var(--button-accent);
  box-shadow: 0 18px 30px rgba(95, 214, 255, 0.2);
}

.button-icon:hover .cube {
  transform: rotateX(90deg);
}

.button-icon--github {
  --button-bg: #0f172a;
  --button-accent: #5fd6ff;
  --button-text: #f8fbff;
}

.button-icon--contact {
  --button-bg: #14121c;
  --button-accent: #ff9df5;
  --button-text: #fff5fb;
}

.button-icon--compact .cube {
  width: 120px;
}

.button-icon--compact .side {
  font-size: 0.62rem;
}

/* 确保这段代码放在 :root 和 .btn 定义之后 */

.btn--huggingface {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem; /* 保持与其他按钮一致的间距 */
    font-weight: 700;
    border-radius: 999px !important; /* 强制圆角与其他按钮统一 */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important; /* 强制取消边框 */
    cursor: pointer;
    
    /* 强力渐变：从明黄到鲜橙 */
    background: linear-gradient(135deg, #FFD21E 0%, #FF9D00 100%) !important;
    background-size: 200% auto; /* 用于平滑动画 */
    
    color: #000000 !important; /* 强制黑色文字 */
    box-shadow: 0 10px 25px rgba(255, 157, 0, 0.3);
    z-index: 1;
}

.btn--huggingface:hover {
    background-position: right center; /* 悬停时渐变色移动 */
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 157, 0, 0.45);
    color: #000000 !important;
}

.btn--huggingface:active {
    transform: translateY(-1px);
}

.hero {
  position: relative;
  background: radial-gradient(circle at top left, rgba(95, 214, 255, 0.22), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255, 157, 245, 0.2), transparent 50%),
    linear-gradient(180deg, #080e1f 0%, #030711 100%);
  padding: 2.5rem clamp(1.5rem, 3vw, 4rem) 5rem;
  color: var(--text-light);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 40%;
  background: conic-gradient(from 120deg, rgba(95, 214, 255, 0.35), rgba(255, 157, 245, 0.35), transparent 65%);
  filter: blur(2px);
  opacity: 0.5;
  animation: orbFloat 16s ease-in-out infinite;
  pointer-events: none;
}

.hero::before {
  top: -120px;
  right: -80px;
}

.hero::after {
  bottom: -160px;
  left: -100px;
  animation-delay: -6s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8ecff;
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
  color: rgba(220, 228, 255, 0.85);
}

.nav__links a {
  position: relative;
  padding-bottom: 0.3rem;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #7be4ff, #ff9df5);
  transition: width 200ms ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 4rem;
  padding-top: 2.5rem;
}

.hero__copy > *:not(.hero__title),
.hero__visual {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.hero__title {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.05em;
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotateX(30deg);
  animation: titleIn 700ms ease forwards;
  animation-delay: var(--char-delay, 0ms);
  animation-play-state: paused;
}

body.is-loaded .hero__title .char {
  opacity: 1;
  animation-play-state: running;
}

.hero__copy h1 {
  transition-delay: 120ms;
}

.hero__copy p {
  transition-delay: 240ms;
}

.hero__actions {
  transition-delay: 360ms;
}

.hero__stats {
  transition-delay: 480ms;
}

.hero__visual {
  transition-delay: 520ms;
  transform: translate3d(0, 18px, 0);
  animation: floatY 8s ease-in-out infinite;
}

body.is-loaded .hero__copy > *:not(.hero__title),
body.is-loaded .hero__visual {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero__copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin: 0 0 1.2rem;
  color: #f4f7ff;
  letter-spacing: -0.04em;
}

.hero__copy p {
  margin: 0 0 1.8rem;
  color: rgba(226, 233, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 0;
}

.hero__stats dt {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f3f6ff;
}

.hero__stats dd {
  margin: 0.2rem 0 0;
  color: rgba(226, 233, 255, 0.6);
  font-size: 0.95rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.fusion {
  position: relative;
  width: clamp(320px, 50vw, 520px);
  height: clamp(240px, 40vw, 360px);
  padding: 2.5rem clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 25% 20%, rgba(95, 214, 255, 0.18), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(255, 157, 245, 0.2), transparent 60%),
    rgba(6, 12, 28, 0.82);
  border: 1px solid rgba(95, 214, 255, 0.25);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  backdrop-filter: blur(18px);
  animation: floatY 7s ease-in-out infinite;
}

.fusion::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.12), transparent 70%);
  filter: blur(8px);
}

.fusion__path {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 2px;
  background: linear-gradient(90deg, rgba(83, 139, 255, 0), rgba(95, 214, 255, 0.85), rgba(255, 157, 245, 0));
  box-shadow: 0 0 30px rgba(95, 214, 255, 0.4);
  animation: pathPulse 6s infinite ease-in-out;
}

.cloud {
  position: relative;
  width: 40%;
  aspect-ratio: 1;
  transition: transform 500ms ease;
}

.cloud span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: float 5s infinite ease-in-out, particleExit 7s infinite ease-in-out;
}

.cloud--source {
  animation: converge-left 6s infinite ease-in-out;
  transform-origin: center;
}

.cloud--target {
  animation: converge-right 6s infinite ease-in-out;
  transform-origin: center;
}

.fusion:hover .cloud--source {
  transform: translateX(26px) rotate(0deg) scale(1.04);
}

.fusion:hover .cloud--target {
  transform: translateX(-26px) rotate(0deg) scale(1.04);
}

.cloud--source span {
  background: radial-gradient(circle at top left, rgba(95, 214, 255, 0.95), rgba(47, 152, 255, 0.55));
  box-shadow: 0 0 22px rgba(95, 214, 255, 0.45);
}

.cloud--target span {
  background: radial-gradient(circle at top left, rgba(255, 157, 245, 0.95), rgba(190, 98, 255, 0.55));
  box-shadow: 0 0 22px rgba(255, 157, 245, 0.4);
}

.cloud span:nth-child(1) { top: 6%; left: 18%; }
.cloud span:nth-child(2) { top: 24%; left: 60%; animation-delay: 0.6s; }
.cloud span:nth-child(3) { top: 48%; left: 12%; animation-delay: 1.2s; }
.cloud span:nth-child(4) { top: 72%; left: 38%; animation-delay: 1.8s; }
.cloud span:nth-child(5) { top: 14%; left: 78%; animation-delay: 2.2s; }
.cloud span:nth-child(6) { top: 56%; left: 82%; animation-delay: 2.8s; }
.cloud span:nth-child(7) { top: 82%; left: 64%; animation-delay: 3.4s; }
.cloud span:nth-child(8) { top: 36%; left: 32%; animation-delay: 4s; }

.cloud--target span:nth-child(1) { top: 12%; left: 26%; }
.cloud--target span:nth-child(2) { top: 30%; left: 70%; }
.cloud--target span:nth-child(3) { top: 64%; left: 16%; }
.cloud--target span:nth-child(4) { top: 78%; left: 48%; }
.cloud--target span:nth-child(5) { top: 18%; left: 80%; }
.cloud--target span:nth-child(6) { top: 52%; left: 86%; }
.cloud--target span:nth-child(7) { top: 86%; left: 68%; }
.cloud--target span:nth-child(8) { top: 42%; left: 38%; }

.fusion::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(95, 214, 255, 0.2), transparent 70%);
}

@keyframes pathPulse {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scaleX(0.7);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scaleX(1);
  }
}

@keyframes converge-left {
  0%, 65% {
    transform: translateX(-32px) rotate(-3deg);
    opacity: 1;
  }
  80% {
    transform: translateX(-50px) rotate(-6deg);
    opacity: 0.35;
  }
  100% {
    transform: translateX(-32px) rotate(-3deg);
    opacity: 1;
  }
  40% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes converge-right {
  0%, 65% {
    transform: translateX(32px) rotate(3deg);
    opacity: 1;
  }
  80% {
    transform: translateX(50px) rotate(6deg);
    opacity: 0.35;
  }
  100% {
    transform: translateX(32px) rotate(3deg);
    opacity: 1;
  }
  40% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes particleExit {
  0%, 70% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  85% {
    opacity: 0.15;
    transform: translate3d(0, 8px, 0) scale(0.6);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(20px, -30px, 0) rotate(20deg);
  }
}

@keyframes ambientDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, -30px, 0);
  }
}

@keyframes floatY {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

.section {
  padding: clamp(3rem, 5vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  perspective: 1200px;
}


.section--light {
  background: var(--bg-light);
  color: var(--text-primary);
}

.section--dark {
  background: linear-gradient(180deg, #040813 0%, #070c1d 100%);
  color: var(--text-light);
}

.section--demo {
  background: radial-gradient(circle at 30% 20%, rgba(95, 214, 255, 0.15), transparent 55%),
    #0a0f1f;
  color: var(--text-light);
}

.section--cta {
  background: linear-gradient(135deg, #5fd6ff 0%, #ff9df5 100%);
  color: #f8fbff;
  padding: clamp(3rem, 5vw, 6rem);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: rgba(95, 214, 255, 0.18);
  color: #4f8bff;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.badge-link:hover {
  background: rgba(95, 214, 255, 0.3);
  color: #5fd6ff;
  transform: translateY(-1px);
}

.section__header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__header h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section__header p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.85;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(8, 15, 35, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(8, 16, 40, 0.18);
}

.feature:nth-child(1) { --delay: 80ms; }
.feature:nth-child(2) { --delay: 160ms; }
.feature:nth-child(3) { --delay: 240ms; }
.feature:nth-child(4) { --delay: 320ms; }

.section--light .feature p {
  color: var(--text-secondary);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(95, 214, 255, 0.2), rgba(255, 157, 245, 0.35));
  position: relative;
}

.feature__icon::after,
.feature__icon::before {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.55);
}

.feature__icon--solver::after {
  width: 18px;
  height: 4px;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  border-radius: 999px;
}

.feature__icon--solver::before {
  width: 4px;
  height: 18px;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  border-radius: 999px;
}

.feature__icon--fusion::before {
  width: 28px;
  height: 4px;
  top: 24px;
  left: 10px;
}

.feature__icon--fusion::after {
  width: 4px;
  height: 28px;
  left: 24px;
  top: 10px;
}

.feature__icon--realtime::before {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  top: 11px;
  left: 11px;
  background: rgba(87, 149, 255, 0.7);
}

.feature__icon--realtime::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 17px;
  left: 17px;
  background: rgba(124, 92, 255, 0.75);
  box-shadow: 0 0 15px rgba(124, 92, 255, 0.65);
}

.feature__icon--pipeline::before,
.feature__icon--pipeline::after {
  width: 4px;
  height: 18px;
  background: rgba(87, 149, 255, 0.9);
}

.feature__icon--pipeline::before {
  top: 12px;
  left: 14px;
}

.feature__icon--pipeline::after {
  top: 12px;
  left: 30px;
  height: 26px;
  background: rgba(124, 92, 255, 0.9);
}

.grid--columns {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.diagram {
  display: grid;
  gap: 1.4rem;
}

.diagram__layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.6rem;
  background: rgba(9, 15, 30, 0.75);
  border-radius: var(--radius-md);
  border: 1px solid rgba(95, 214, 255, 0.25);
  box-shadow: 0 18px 30px rgba(4, 9, 20, 0.35);
}

.diagram__layer:nth-child(1) { --delay: 100ms; }
.diagram__layer:nth-child(2) { --delay: 180ms; }
.diagram__layer:nth-child(3) { --delay: 260ms; }
.diagram__layer:nth-child(4) { --delay: 340ms; }

.diagram__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(95, 214, 255, 0.35);
  font-weight: 600;
}

.callout {
  display: grid;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
}

.callout__layer {
  background: rgba(9, 15, 32, 0.75);
  border: 1px solid rgba(95, 214, 255, 0.2);
}

.callout__layer:nth-child(1) { --delay: 140ms; }
.callout__layer:nth-child(2) { --delay: 220ms; }
.callout__layer:nth-child(3) { --delay: 300ms; }

.callout__layer h3 {
  margin: 0 0 0.4rem;
  color: rgba(222, 232, 255, 0.92);
}

.callout__layer p {
  margin: 0;
  color: rgba(208, 222, 255, 0.75);
}

.section--demo .demo__panel {
  background: rgba(9, 14, 28, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(95, 214, 255, 0.28);
  padding: clamp(2rem, 4vw, 3.4rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  box-shadow: 0 25px 60px rgba(3, 9, 25, 0.5);
}

.demo__screen {
  background: linear-gradient(135deg, rgba(95, 214, 255, 0.2), rgba(255, 157, 245, 0.15));
  border-radius: var(--radius-md);
  border: 1px solid rgba(95, 214, 255, 0.25);
  position: relative;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(10, 16, 36, 0.45);
  box-shadow: 0 15px 40px rgba(10, 16, 36, 0.45);
}

.demo__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(8, 18, 40, 0.35);
  animation: floatY 9s ease-in-out infinite;
}

.demo__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08) 45%, transparent 70%);
  opacity: 0.4;
  transform: translateX(-60%);
  animation: shimmer 6s ease-in-out infinite;
}

.demo__legend {
  display: grid;
  gap: 1.4rem;
}

.legend__stats {
  display: grid;
  gap: 0.8rem;
}

.legend__stats div {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 19, 36, 0.85);
  border: 1px solid rgba(95, 214, 255, 0.2);
}

.legend__label {
  color: rgba(214, 226, 255, 0.75);
}

.legend__value {
  font-weight: 600;
  color: #dfe7ff;
}

.legend__value--good {
  color: #53f3c3;
}

.grid--docs {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-block {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.media-block:last-of-type {
  margin-bottom: 0;
}

.media-block__intro h3 {
  margin-bottom: 0.6rem;
}

.media-block__intro p {
  margin: 0;
  color: var(--text-secondary);
}

.media-block--nonrigid .media-block__intro p {
  color: var(--text-secondary);
}

.media-grid {
  display: grid;
  gap: 1.2rem;
}

.media-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.media-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.media-grid__item {
  background: rgba(4, 12, 30, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(8, 18, 40, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.media-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
  animation: floatY 10s ease-in-out infinite;
}


.media-grid__item:nth-child(1) { --delay: 80ms; }
.media-grid__item:nth-child(2) { --delay: 160ms; }
.media-grid__item:nth-child(3) { --delay: 240ms; }
.media-grid__item:nth-child(4) { --delay: 320ms; }

.doc-card {
  background: white;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 18, 40, 0.08);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(8, 16, 40, 0.18);
}

.doc-card:nth-child(1) { --delay: 100ms; }
.doc-card:nth-child(2) { --delay: 200ms; }
.doc-card:nth-child(3) { --delay: 300ms; }

.doc-card ul {
  margin: 0 0 1rem 1.2rem;
  color: var(--text-secondary);
}

.doc-card ul li {
  margin-bottom: 0.3rem;
}

.doc-card pre {
  background: #0b1020;
  color: #f1f6ff;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.doc-card code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.grid--quotes {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quote {
  margin: 0;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(10, 18, 38, 0.9);
  border: 1px solid rgba(95, 214, 255, 0.25);
  box-shadow: 0 16px 45px rgba(3, 7, 20, 0.45);
}

.quote:nth-child(1) { --delay: 100ms; }
.quote:nth-child(2) { --delay: 200ms; }
.quote:nth-child(3) { --delay: 300ms; }

.quote blockquote {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 239, 255, 0.88);
}

.quote figcaption {
  color: rgba(164, 189, 255, 0.7);
  font-size: 0.95rem;
}

.cta {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.cta p {
  margin: 1.2rem auto 2rem;
  max-width: 600px;
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer {
  background: #030711;
  color: rgba(193, 205, 236, 0.65);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.9rem;
  border-top: 1px solid rgba(95, 214, 255, 0.2);
}

.footer__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 239, 255, 0.9);
}

.footer__meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer__meta a {
  color: rgba(193, 205, 236, 0.65);
  transition: color 180ms ease;
}

.footer__meta a:hover {
  color: rgba(232, 239, 255, 0.85);
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98) rotateX(8deg);
  filter: blur(8px);
  transition: opacity 600ms ease, transform 600ms ease, filter 600ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  filter: blur(0);
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav__links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav__cta {
    margin-left: auto;
  }

  .hero {
    padding-bottom: 6rem;
  }
}

@media (max-width: 680px) {
  .nav__links {
    display: none;
  }

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

  .section__header {
    text-align: left;
  }

  .cta {
    text-align: left;
  }

  .cta__actions {
    justify-content: flex-start;
  }

  .hero__visual {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .nav__cta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .button-icon {
    width: 100%;
    justify-content: center;
  }

  .button-icon .cube {
    width: 100%;
  }

  .demo__panel {
    padding: 1.5rem;
  }
}

@keyframes shimmer {
  0%, 100% {
    transform: translateX(-60%);
    opacity: 0.15;
  }
  50% {
    transform: translateX(60%);
    opacity: 0.5;
  }
}

@keyframes titleIn {
  0% {
    opacity: 0;
    transform: translateY(28px) rotateX(50deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

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