@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #111111;
    --section-bg-color: #1A1A1A;
    --text-color: #EAEAEA;
    --highlight-color: #00FFD1;
    --font-main: 'Noto Sans SC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed lattice overlay (from second section onward) */
.fixed-lattice { position: fixed; inset: 0; pointer-events: none; z-index: 0; display: grid; place-items: stretch; }
.fixed-lattice > div { position: absolute; inset: 0; }
.fixed-lattice .fx-dots-silver { opacity: 1; --dot-step:26px; --dot-r:1px; --dot-r-hot:1.6px; --hot-alpha:.76; --abgx:0px; --abgy:0px; }

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Nav as a single rounded transparent container */
header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 8px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0;
    padding: .45rem .7rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--highlight-color);
}

main {
    width: 100%;
}

section {
    min-height: 100vh;
    padding: 8rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sections above global fixed lattice */
section { position: relative; z-index: 2; }

/* Pattern variants */
.fx-grid-thin { background-image:
  linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px; background-position: 0 0, 0 0; mix-blend-mode: overlay; }
.fx-grid-26 { background-image:
  linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px; background-position: 0 0, 0 0; mix-blend-mode: overlay; }
.fx-dots-fine { background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 24px 24px; mix-blend-mode: overlay; }
.fx-dots-silver { --sx:50%; --sy:50%; --mx:50vw; --my:50vh; --abgx:0px; --abgy:0px; --dot-step:26px; --dot-r:1px; --dot-r-hot:1.6px; --hot-alpha:.76;
  position: absolute; inset: 0; overflow: hidden;
  background-image: radial-gradient(rgba(220,220,220,.22) var(--dot-r), transparent var(--dot-r));
  background-size: var(--dot-step) var(--dot-step); background-position: var(--abgx) var(--abgy); mix-blend-mode: normal; }
/* cursor hotspot enlarges and brightens local dots via mask overlay */
.fx-dots-silver::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  /* bigger and brighter dots within hotspot; spacing unchanged */
  background-image: radial-gradient(rgba(255,255,255,var(--hot-alpha)) var(--dot-r-hot), transparent var(--dot-r-hot));
  background-size: var(--dot-step) var(--dot-step); background-position: var(--abgx) var(--abgy);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(220px 220px at var(--mx) var(--my), rgba(0,0,0,1) 0%, rgba(0,0,0,.9) 55%, rgba(0,0,0,.6) 72%, rgba(0,0,0,.28) 86%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(220px 220px at var(--mx) var(--my), rgba(0,0,0,1) 0%, rgba(0,0,0,.9) 55%, rgba(0,0,0,.6) 72%, rgba(0,0,0,.28) 86%, rgba(0,0,0,0) 100%); }
.fx-dots-bold { background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px); background-size: 34px 34px; mix-blend-mode: overlay; }
.fx-cross { background-image:
  linear-gradient(45deg, rgba(255,255,255,.06) 1px, transparent 1px),
  linear-gradient(-45deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px; mix-blend-mode: overlay; }
.fx-stripes { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 20px, rgba(255,255,255,0) 20px 40px); mix-blend-mode: overlay; }
.fx-test-grid { background-image:
  linear-gradient(rgba(255,0,0,.35) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,0,0,.35) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px; }
.fx-test-dots { background-image: radial-gradient(rgba(0,255,0,.45) 2px, transparent 2px); background-size: 34px 34px; mix-blend-mode: overlay; }
.fx-test-stripes { background-image: repeating-linear-gradient(135deg, rgba(0,128,255,.35) 0 18px, rgba(0,0,0,0) 18px 36px); }

/* Elements inside overlays */
.fx-spotlight { position: absolute; inset: 0; --sx:50%; --sy:50%;
  background: radial-gradient(520px 360px at var(--sx) var(--sy), rgba(255,255,255,.22) 0, rgba(255,255,255,0) 62%);
  mix-blend-mode: screen; }
.fx-scanbar { position: absolute; left: -10%; width: 120%; height: 2px; top: -10%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  box-shadow: 0 0 28px rgba(255,255,255,.35); opacity: .85; }
.fx-vignette { position: absolute; inset: 0; background: radial-gradient(900px 380px at 50% 0, rgba(255,255,255,.12), transparent 60%); mix-blend-mode: overlay; opacity: .45; }

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

p {
    max-width: 600px;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(234, 234, 234, 0.8);
}

.highlight {
    color: var(--highlight-color);
}

/* Hero Section */
#hero {
    justify-content: center;
    background-color: var(--bg-color);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob { position: absolute; width: 38vw; height: 38vw; min-width: 360px; min-height: 360px; filter: blur(40px); opacity: 0.28; will-change: transform; }
.blob-1 { left: -10vw; top: -6vw; background: radial-gradient(closest-side, rgba(0,255,209,.85), rgba(0,255,209,0) 60%); }
.blob-2 { right: -8vw; bottom: -8vw; background: radial-gradient(closest-side, rgba(255,255,255,.25), rgba(255,255,255,0) 60%); }
.grid-overlay { position: absolute; inset: -10% -10% -10% -10%;
  --mx: 50%;
  --my: 50%;
  /* base grid only */
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: 0 0, 0 0;
  mix-blend-mode: overlay;
  opacity: .7;
  pointer-events: none;
}

.grid-overlay::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  /* brighter grid cloned, masked by radial area at cursor */
  background-image:
    linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: 0 0, 0 0;
  mix-blend-mode: overlay;
  -webkit-mask-image: radial-gradient( circle at var(--mx) var(--my), rgba(0,0,0,1) 0, rgba(0,0,0,1) 160px, rgba(0,0,0,0) 280px );
  mask-image: radial-gradient( circle at var(--mx) var(--my), rgba(0,0,0,1) 0, rgba(0,0,0,1) 160px, rgba(0,0,0,0) 280px );
  will-change: transform, opacity, mask-image;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.hero-content { position: relative; z-index: 1; }

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 300;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    opacity: 0.7;
}

/* Marquee */
.marquee { height: 60px; display: grid; place-items: center; border-block: 1px solid rgba(255,255,255,0.08); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); }
.marquee__inner { display: inline-flex; gap: 1.2rem; white-space: nowrap; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .9rem; border-radius: 9999px; background: transparent; color: var(--text-color); letter-spacing: .02em; opacity: .95; }
.marquee__item:hover { filter: saturate(1.04); }

/* What We Do Section */
#what-we-do { background: transparent; }

.card-container-what {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.card-what {
    background: linear-gradient(180deg, #202022, #1b1b1d);
    padding: 2.2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1;
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card-what h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.tilt { will-change: transform; transform-style: preserve-3d; }
.card-what:hover { border-color: rgba(0,255,209,0.35); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* How It Works Section */
.steps-container {
    width: 100%;
    max-width: 800px;
    margin-top: 4rem;
    position: relative;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    text-align: left;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.step-number-container {
    flex-shrink: 0;
    width: 100px;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--highlight-color);
    line-height: 1;
}

.step-content {
    padding: 0 2rem;
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Use Cases Section */
#use-cases { background: transparent; }

.card-container-use-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
}

.card-use-case {
    background: linear-gradient(180deg, #202022, #1b1b1d);
    padding: 1.8rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card-use-case i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.card-use-case h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.card-use-case:hover { border-color: rgba(0,255,209,0.35); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.comparison-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.comparison-item ul {
    list-style: none;
}

.comparison-item li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.comparison-item i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    margin-top: 2px;
}

.comparison-item:first-child i {
    color: var(--highlight-color);
}

.comparison-item:last-child i {
    color: #ff6b6b;
}

/* Who Uses Section */
#who-uses { background: transparent; }

.user-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.user-type {
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--highlight-color);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type:hover {
    background-color: var(--highlight-color);
    color: var(--bg-color);
}

.user-description {
    margin-top: 2rem;
    font-size: 1.2rem;
}

/* Smoke video at bottom with black-to-transparent using blend */
/* Fullscreen smoke overlay (shown only while #who-uses is pinned)
   Rule: darker pixels => more transparent (via blend lighten), then apply a global alpha on the video
*/
.smoke-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: transparent !important; isolation: isolate;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 65%, rgba(0,0,0,.65) 82%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 65%, rgba(0,0,0,.65) 82%, rgba(0,0,0,0) 100%);
}
.smoke-overlay video { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100vh; object-fit: cover; mix-blend-mode: lighten; filter: brightness(1.0) contrast(1.08); opacity: 0; transition: opacity .6s ease; will-change: opacity; }
.smoke-overlay.is-visible video { opacity: var(--smoke-alpha, .75); }

/* Ring carousel */
.ring-stage { position: relative; width: 100%; max-width: 1100px; height: 400px; margin: 1rem auto 0; perspective: 1200px; overflow: visible; }
.ring { position: absolute; inset: 0; margin: auto; width: 108%; height: 100%; left: -4%; transform-style: preserve-3d; overflow: visible; }
.ring .tag { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform, opacity; }
.ring .chip { padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: var(--text-color); font-weight: 600; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.16); backdrop-filter: blur(3px) saturate(1.05); -webkit-backdrop-filter: blur(3px) saturate(1.05); text-shadow: none; -webkit-font-smoothing: antialiased; }
/* 去掉前排聚焦高亮，改为纯粹依赖 scale/opacity 的深度感 */
.ring .chip.is-front { box-shadow: none; border-color: rgba(255,255,255,.25); }

@media (max-width: 768px) {
  .ring-stage { height: 300px; }
}

/* CTA Section */
#cta h2 {
    font-size: 3.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--bg-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 209, 0.5);
}

/* Hide the original header; we will mount a standalone liquid glass bar instead */
header { display: none !important; }

/* Liquid glass nav content */
#liquid-glass-host { overflow: hidden; }
#liquid-glass-host nav {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 10px;
    white-space: nowrap;
}
#liquid-glass-host a {
    color: var(--text-color) !important;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    padding: 6px 10px;
    border-radius: 9999px;
    transition: color .2s ease, opacity .2s ease, background-color .2s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}
#liquid-glass-host a:hover { opacity: 1; }
#liquid-glass-host a.active { color: var(--highlight-color); }

#liquid-glass-host { color: var(--text-color); }

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(234, 234, 234, 0.5);
}

/* Features */
#features { background: transparent; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 1.6rem; margin-top: 2.2rem; width: 100%; max-width: 1100px; }
.feature-card { background: linear-gradient(180deg, #202022, #1b1b1d); padding: 1.8rem; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); text-align: left; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feature-card i { font-size: 1.8rem; color: var(--highlight-color); }
.feature-card h3 { margin-top: .6rem; font-size: 1.3rem; }
.feature-card p { margin-top: .3rem; font-size: .98rem; max-width: none; }
.feature-card:hover { border-color: rgba(0,255,209,0.35); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Dialogue */
#dialogue { background: transparent; }
.dialogue { overflow: hidden; }
.dialogue-inner { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; width: 100%; max-width: 1100px; align-items: start; margin-top: 2.4rem; }
.chat-window { position: relative; width: 100%; background: rgba(20,20,22,0.28); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 1.2rem; overflow: hidden; backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 8px 28px rgba(0,0,0,.28); }
.message { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; align-items: start; margin: 1rem 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #222; color: var(--text-color); font-weight: 700; border: 1px solid rgba(255,255,255,0.08); }
.avatar i { font-size: 24px; color: var(--text-color); opacity: .9; }
.bubble { position: relative; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: .9rem 1.1rem; text-align: left; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }
.from-a .avatar { background: linear-gradient(180deg, #2a2a2d, #1b1b1d); }
.from-b .avatar { background: linear-gradient(180deg, #23312d, #1b1f1d); }
.message.from-b { grid-template-columns: 1fr 42px; }
.message.from-b .bubble { order: 1; justify-self: end; }
.message.from-b .avatar { order: 2; }
.typing { position: absolute; top: 10px; right: 10px; display: inline-flex; gap: 4px; opacity: .6; }
.typing span { width: 6px; height: 6px; background: var(--text-color); border-radius: 50%; animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2){ animation-delay: .15s; }
.typing span:nth-child(3){ animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0) } 40% { transform: translateY(-4px) } }
.chat-meta { text-align: left; opacity: .9; }
.chat-meta h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.chat-meta p { max-width: none; }

/* Responsive */
@media (max-width: 1024px) {
  .card-container-what { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .card-container-use-cases { grid-template-columns: 1fr 1fr; }
  .dialogue-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .card-container-use-cases { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
}

/* Additional responsive tuning */
@media (max-width: 900px) {
  section { padding: 7rem 6%; }
}
@media (max-width: 768px) {
  h2 { font-size: 2.3rem; }
  p { font-size: 1rem; }
  .dialogue-inner { margin-top: 1.4rem; }
  .chat-window { padding: 1rem; }
  .message { grid-template-columns: 36px 1fr; }
  .avatar { width: 36px; height: 36px; font-size: .9rem; }
  #liquid-glass-host nav { gap: 8px; padding: 0 8px; }
  #liquid-glass-host a { padding: 6px 8px; font-size: 0.95rem; }
  .marquee { height: 52px; }
  html, body { max-width: 100%; overflow-x: hidden; touch-action: pan-y; overscroll-behavior-y: contain; }
  main, section, .marquee, .marquee__inner { overflow-x: clip; }
  /* 缩短移动端整体页高，特别是底部区域 */
  section { min-height: 92vh; min-height: 92svh; }
  #cta { min-height: 66vh; padding-bottom: 2rem; }
  footer { padding: 1.25rem; }
  /* 移动端舞台去掉左右留白，并允许胶囊超出屏幕 */
  #who-uses { padding-left: 0; padding-right: 0; }
  #who-uses .ring-stage { width: 100vw; max-width: none; left: 50%; transform: translateX(-50%); overflow: visible; position: relative; }
  #who-uses .ring { width: 130vw; left: -15vw; overflow: visible; }
  /* 移动端与桌面一致：满屏但不固定 */
  #hero { position: relative; inset: auto; z-index: 2; width: 100%; height: auto; min-height: 100vh; min-height: 100svh; pointer-events: auto; }
  #what-we-do { z-index: 2; }
}
