:root {
  --bg: #050a11;
  --bg-soft: #08111d;
  --surface: rgba(16, 26, 39, 0.68);
  --surface-strong: rgba(12, 21, 33, 0.88);
  --text: #f4f6f8;
  --muted: #929cab;
  --dim: #5d6978;
  --line: rgba(124, 188, 214, 0.24);
  --line-bright: rgba(110, 202, 225, 0.46);
  --orange: #ff6a24;
  --cyan: #29bdd5;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1480px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #03080e 0%, #07101b 48%, #040910 100%);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; width: 100%; }

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), var(--max));
  height: 70px;
  padding: 0 22px 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(207, 225, 235, .22);
  border-radius: 22px;
  background: rgba(9, 15, 23, .64);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .28);
  transition: background .35s ease, top .35s ease;
}
.site-header.is-scrolled { top: 12px; background: rgba(6, 12, 20, .88); }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-weight: 650; letter-spacing: -.02em; }
.brand span { font-size: 18px; }
.brand i { width: 1px; height: 18px; background: var(--dim); }
.brand b { color: var(--orange); font-size: 18px; letter-spacing: .12em; }
.main-nav { display: flex; gap: 38px; align-items: center; }
.main-nav a { position: relative; padding: 25px 0; color: #c5cbd3; font-size: 14px; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 16px; height: 2px; background: var(--orange); transition: right .3s var(--ease); }
.main-nav a:hover, .main-nav a.is-active { color: white; }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.header-action { justify-self: end; padding: 12px 25px; border-radius: 12px; background: var(--orange); font-size: 14px; font-weight: 650; box-shadow: 0 8px 24px rgba(255, 106, 36, .22); }
.menu-button { display: none; background: transparent; border: 0; padding: 8px; }

.hero {
  position: relative;
  min-height: 930px;
  padding: 185px max(48px, calc((100vw - var(--max)) / 2 + 30px)) 92px;
  display: grid;
  grid-template-columns: minmax(390px, .78fr) minmax(650px, 1.4fr);
  align-items: center;
  gap: 34px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 76%;
  z-index: -1;
  background: radial-gradient(ellipse at 76% 30%, rgba(37, 97, 120, .2), transparent 55%);
}
.hero-copy { position: relative; z-index: 3; padding-bottom: 30px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(86px, 8.2vw, 142px); line-height: .92; letter-spacing: -.075em; font-weight: 760; }
.hero-statement { margin: 0 0 28px; font-size: clamp(25px, 2vw, 34px); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.hero-description { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.95; }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; }
.button { min-height: 56px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border-radius: 15px; font-size: 15px; font-weight: 650; transition: transform .3s var(--ease), border-color .3s ease, background .3s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--orange); box-shadow: 0 16px 35px rgba(255, 106, 36, .22); }
.button-secondary { border: 1px solid rgba(210, 225, 235, .35); background: rgba(17, 25, 36, .46); backdrop-filter: blur(14px); }
.button-secondary:hover { border-color: var(--line-bright); background: rgba(31, 47, 64, .58); }

.hero-stage { position: relative; height: 625px; min-width: 0; perspective: 1200px; }
.hero-media { position: absolute; overflow: hidden; border: 1px solid rgba(155, 204, 224, .27); background: #111; box-shadow: 0 34px 80px rgba(0, 0, 0, .45); }
.hero-media img { height: 100%; object-fit: cover; }
.hero-media-back { width: 67%; height: 58%; top: 4%; right: 1%; border-radius: 27px; transform: rotateY(-4deg) rotateZ(1.2deg); opacity: .68; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 34px 80px rgba(0,0,0,.45); }
.hero-media-front { width: 78%; height: 61%; left: 2%; bottom: 7%; border-radius: 30px; transform: rotateY(4deg) rotateZ(-1.4deg); }
.hero-media-front img { object-position: 50% center; }
.media-caption { position: absolute; left: 22px; bottom: 22px; width: 235px; padding: 17px 19px; display: grid; gap: 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(6, 12, 20, .68); backdrop-filter: blur(16px); }
.media-caption span { color: var(--orange); font-size: 11px; letter-spacing: .12em; }
.media-caption strong { font-size: 18px; }
.brush-ribbon { position: absolute; z-index: 4; width: 63%; height: 125px; left: -22%; top: 45%; transform: rotate(-8deg); filter: blur(.2px); pointer-events: none; }
.brush-ribbon::before, .brush-ribbon i, .brush-ribbon b { content: ""; position: absolute; left: 0; right: 0; height: 32px; border-radius: 50%; transform: skewX(-22deg); }
.brush-ribbon::before { top: 32px; background: linear-gradient(90deg, transparent, var(--orange) 25%, rgba(255,106,36,.18) 72%, transparent); filter: blur(5px); }
.brush-ribbon i { top: 60px; background: linear-gradient(90deg, transparent, rgba(41,189,213,.9) 22%, rgba(41,189,213,.18) 73%, transparent); filter: blur(7px); }
.brush-ribbon b { top: 9px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45) 33%, transparent 80%); height: 3px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 16px; color: var(--dim); font-size: 9px; letter-spacing: .22em; transform: translateX(-50%); }
.scroll-cue i { position: relative; width: 64px; height: 1px; background: #314252; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: translateX(-100%); animation: travel 2.4s infinite; }
@keyframes travel { 50%, 100% { transform: translateX(100%); } }

.section-shell { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }
.intro { padding: 145px 0 165px; border-top: 1px solid rgba(148, 185, 204, .1); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.section-index { display: block; margin-bottom: 28px; color: var(--orange); font-size: 12px; letter-spacing: .15em; }
.section-heading h2 { margin: 0; font-size: clamp(50px, 5.2vw, 86px); line-height: 1.08; letter-spacing: -.055em; }
.section-heading > p { max-width: 620px; margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.practice-chain { margin-top: 90px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.practice-chain div { position: relative; min-height: 178px; padding: 30px 25px 20px 0; border-right: 1px solid var(--line); }
.practice-chain div:last-child { border-right: 0; padding-left: 24px; }
.practice-chain div:not(:first-child) { padding-left: 24px; }
.practice-chain span { color: var(--cyan); font-size: 12px; letter-spacing: .1em; }
.practice-chain strong { display: block; margin: 28px 0 10px; font-size: 21px; }
.practice-chain small { color: var(--dim); font-size: 13px; }

.features { padding: 50px 0 170px; }
.compact-heading { grid-template-columns: .7fr 1fr; align-items: center; }
.compact-heading h2 { font-size: clamp(52px, 5vw, 78px); }
.compact-heading > p { justify-self: end; }
.feature-composer { margin-top: 70px; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 46px; align-items: stretch; }
.feature-rail { display: flex; flex-direction: column; justify-content: center; }
.feature-tab { position: relative; min-height: 89px; padding: 13px 12px 13px 64px; text-align: left; border: 0; border-left: 1px solid rgba(119, 147, 165, .3); background: transparent; color: #8893a1; cursor: pointer; transition: color .25s ease; }
.feature-tab::before { content: attr(data-index); position: absolute; left: -22px; top: 50%; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(132, 153, 168, .45); border-radius: 50%; background: var(--bg-soft); transform: translateY(-50%); color: #aab2bd; font-size: 13px; transition: all .3s var(--ease); }
.feature-tab strong { display: block; margin-bottom: 7px; font-size: 16px; font-weight: 520; }
.feature-tab span { display: block; color: var(--dim); font-size: 12px; line-height: 1.5; }
.feature-tab[aria-selected="true"] { color: var(--orange); }
.feature-tab[aria-selected="true"]::before { border-color: var(--orange); box-shadow: 0 0 0 7px rgba(255, 106, 36, .08); color: var(--orange); }
.glass-panel { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(19,31,45,.76), rgba(7,14,24,.7)); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 35px 90px rgba(0,0,0,.22); }
.feature-stage { position: relative; min-height: 560px; padding: 26px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 30px; align-items: center; border-radius: var(--radius-lg); overflow: hidden; }
.feature-visual { width: 100%; min-height: 0; aspect-ratio: 16 / 9; padding: 10px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(132, 180, 202, .16); border-radius: 20px; background: linear-gradient(145deg, rgba(2,6,11,.98), rgba(8,16,25,.98)); box-shadow: inset 0 0 45px rgba(30, 87, 108, .08); }
.feature-visual img, .feature-visual video { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; border-radius: 13px; transition: opacity .25s ease, transform .6s var(--ease); }
.feature-visual video { display: none; }
.feature-visual.is-video img { display: none; }
.feature-visual.is-video video { display: block; }
.feature-detail { align-self: center; padding: 20px 26px 20px 8px; }
.feature-number { color: var(--orange); font-size: 12px; letter-spacing: .1em; }
.feature-detail h3 { margin: 27px 0 22px; font-size: clamp(30px, 2.8vw, 46px); line-height: 1.2; letter-spacing: -.035em; }
.feature-detail p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.feature-detail ul { margin: 32px 0 0; padding: 0; list-style: none; }
.feature-detail li { position: relative; padding: 11px 0 11px 27px; color: #b6bec8; font-size: 13px; border-bottom: 1px solid rgba(130, 158, 177, .12); }
.feature-detail li::before { content: ""; position: absolute; left: 1px; top: 17px; width: 8px; height: 8px; border: 1px solid var(--cyan); border-radius: 50%; }
.feature-progress { position: absolute; left: 26px; right: 26px; bottom: 12px; height: 2px; background: rgba(137,164,180,.15); }
.feature-progress span { display: block; width: 16.66%; height: 100%; background: linear-gradient(90deg, var(--orange), var(--cyan)); transition: width .5s var(--ease); }

.scenarios { padding: 50px 0 165px; }
.scenario-gallery { height: 500px; margin-top: 70px; display: flex; gap: 10px; }
.scenario-item { position: relative; flex: 1 1 0; min-width: 0; padding: 9px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 9px; overflow: hidden; border: 1px solid rgba(137, 180, 201, .2); border-radius: 18px; cursor: pointer; transition: flex .75s var(--ease), border-color .35s ease, transform .35s ease; background: linear-gradient(160deg, rgba(16,29,42,.92), rgba(5,11,18,.98)); }
.scenario-item:hover { transform: translateY(-4px); }
.scenario-item.is-active { flex: 5.2 1 0; border-color: var(--line-bright); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.scenario-media { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 12px; isolation: isolate; background: radial-gradient(circle at 50% 45%, rgba(39,72,91,.4), rgba(3,8,13,.98) 75%); }
.scenario-media::before { content: ""; position: absolute; inset: -24px; z-index: -1; background-image: linear-gradient(rgba(5,10,17,.38), rgba(5,10,17,.6)), var(--scenario-bg); background-position: center; background-size: cover; filter: blur(18px) saturate(.72); opacity: .58; transform: scale(1.08); }
.scenario-item img, .scenario-item video { position: relative; z-index: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; opacity: .72; transition: opacity .4s ease, transform .8s var(--ease); }
.scenario-item:not(.is-active) img, .scenario-item:not(.is-active) video { object-fit: cover; }
.scenario-item video { display: none; }
.scenario-item.is-video video { display: block; }
.scenario-item.is-video img { display: none; }
.scenario-item.is-active img, .scenario-item.is-active video { opacity: 1; }
.scenario-label { min-height: 96px; padding: 14px 12px; overflow: hidden; border: 1px solid transparent; border-radius: 12px; background: rgba(5,11,18,.76); }
.scenario-item.is-active .scenario-label { padding: 17px 19px; border-color: rgba(255,255,255,.11); background: rgba(10, 20, 30, .78); backdrop-filter: blur(18px); }
.scenario-label span { color: var(--orange); font-size: 11px; letter-spacing: .1em; }
.scenario-label h3 { margin: 8px 0 0; font-size: 14px; line-height: 1.35; word-break: break-all; }
.scenario-label p { display: none; max-width: 590px; margin: 10px 0 0; color: #bac2cc; font-size: 13px; line-height: 1.7; }
.scenario-item.is-active .scenario-label h3 { font-size: 25px; word-break: normal; }
.scenario-item.is-active .scenario-label p { display: block; }
.scenario-controls { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.round-control { width: 44px; height: 44px; border: 1px solid rgba(173, 198, 211, .35); border-radius: 50%; background: transparent; cursor: pointer; transition: border .2s ease, background .2s ease; }
.round-control:hover { border-color: var(--orange); background: rgba(255,106,36,.1); }
.scenario-dots { display: flex; gap: 18px; }
.scenario-dot { width: 35px; padding: 9px 0; border: 0; border-bottom: 2px solid rgba(133, 153, 168, .28); background: transparent; color: var(--dim); font-size: 11px; cursor: pointer; }
.scenario-dot.is-active { border-color: var(--orange); color: var(--orange); }

.manifesto { padding-bottom: 110px; }
.manifesto-inner { position: relative; min-height: 330px; padding: 55px 70px; display: flex; align-items: center; justify-content: space-between; gap: 70px; border-radius: var(--radius-lg); overflow: hidden; }
.manifesto-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; background: url("./assets/scene-poetry.png") center 40% / cover no-repeat; mask-image: linear-gradient(90deg, transparent 0%, black 28%, black 78%, transparent); }
.manifesto p { margin: 0; max-width: 1020px; font-size: clamp(27px, 3vw, 46px); line-height: 1.55; letter-spacing: -.035em; font-weight: 580; }
.button-outline { flex: 0 0 auto; border: 1px solid var(--orange); color: var(--orange); background: rgba(5, 10, 17, .48); }
.button-outline:hover { background: var(--orange); color: white; }
.site-footer { min-height: 150px; display: flex; align-items: center; gap: 35px; border-top: 1px solid rgba(132,169,190,.13); color: var(--dim); font-size: 12px; }
.site-footer p:last-child { margin-left: auto; }

@media (max-width: 1180px) {
  .main-nav { gap: 22px; }
  .hero { grid-template-columns: .8fr 1.2fr; padding-left: 40px; padding-right: 40px; }
  .hero-stage { height: 540px; }
  .feature-composer { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
  .feature-stage { grid-template-columns: minmax(0, 1.4fr) minmax(250px, .72fr); }
  .feature-detail { padding-right: 8px; }
}

@media (max-width: 900px) {
  .site-header { width: calc(100% - 24px); top: 12px; height: 62px; padding: 0 15px 0 19px; grid-template-columns: 1fr auto; }
  .header-action { display: none; }
  .menu-button { display: grid; gap: 7px; }
  .menu-button span { width: 24px; height: 1px; background: white; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 18px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,14,23,.96); backdrop-filter: blur(20px); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px; }
  .main-nav a::after { display: none; }
  .hero { min-height: auto; padding: 140px 24px 95px; grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(76px, 22vw, 110px); }
  .hero-stage { height: 510px; }
  .hero-media-back { width: 74%; }
  .hero-media-front { width: 86%; }
  .brush-ribbon { left: -10%; }
  .scroll-cue { display: none; }
  .section-shell { width: calc(100% - 40px); }
  .section-heading, .compact-heading { grid-template-columns: 1fr; gap: 28px; }
  .compact-heading > p { justify-self: start; }
  .practice-chain { grid-template-columns: repeat(2, 1fr); }
  .practice-chain div { border-bottom: 1px solid var(--line); }
  .feature-composer { grid-template-columns: 1fr; }
  .feature-rail { overflow-x: auto; flex-direction: row; padding: 8px 3px 16px 24px; scrollbar-width: none; -ms-overflow-style: none; }
  .feature-rail::-webkit-scrollbar { display: none; }
  .feature-tab { flex: 0 0 190px; min-height: 65px; padding: 8px 15px 8px 44px; border-left: 0; border-bottom: 1px solid rgba(119,147,165,.3); }
  .feature-tab::before { left: 0; width: 34px; height: 34px; }
  .feature-tab span { display: none; }
  .feature-stage { grid-template-columns: 1fr; }
  .feature-detail { padding: 8px 8px 22px; }
  .scenario-gallery { height: auto; overflow-x: auto; align-items: stretch; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
  .scenario-gallery::-webkit-scrollbar { display: none; }
  .scenario-item, .scenario-item.is-active { flex: 0 0 min(82vw, 610px); min-height: 440px; scroll-snap-align: center; }
  .scenario-media { aspect-ratio: 16 / 9; min-height: auto; }
  .scenario-item:not(.is-active) img, .scenario-item:not(.is-active) video { object-fit: contain; }
  .scenario-label { min-height: 154px; }
  .scenario-label h3 { font-size: 22px; word-break: normal; }
  .scenario-label p { display: block; }
  .manifesto-inner { padding: 45px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand span, .brand b { font-size: 15px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-statement { font-size: 24px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-stage { height: 390px; }
  .hero-media-back { width: 80%; height: 48%; }
  .hero-media-front { width: 93%; height: 60%; left: 1%; }
  .media-caption { left: 12px; bottom: 12px; width: 190px; padding: 12px; }
  .brush-ribbon { width: 80%; top: 42%; left: -20%; }
  .intro { padding: 100px 0 120px; }
  .practice-chain { margin-top: 55px; grid-template-columns: 1fr; }
  .practice-chain div, .practice-chain div:not(:first-child), .practice-chain div:last-child { min-height: 130px; padding: 24px 8px; border-right: 0; }
  .practice-chain strong { margin: 14px 0 7px; }
  .features, .scenarios { padding-bottom: 120px; }
  .feature-stage { min-height: 0; padding: 14px; }
  .feature-visual { min-height: 0; aspect-ratio: 16 / 9; padding: 6px; }
  .scenario-gallery { height: auto; }
  .scenario-item, .scenario-item.is-active { flex-basis: 86vw; min-height: 410px; }
  .scenario-label, .scenario-item.is-active .scenario-label { min-height: 168px; padding: 16px; }
  .manifesto-inner { padding: 34px 24px; }
  .site-footer { padding: 40px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer p { margin: 0; }
  .site-footer p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
